Mitsubishi Electric FX3G SERIES Programming Manual page 567

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Explanation of function and operation
1. 16-bit operation (TCMP)
The comparison time (hour, minute, and second) stored in
(hour, minute, and second) stored in
OFF according to the comparison result.
Command
input
FNC160
TCMP
D
D
+1
D
+2
Even if the command contact turns OFF from ON and TCMP instruction is not
executed,
contact turned OFF.
Cautions
1)
Number of occupied devices
Three devices are occupied respectively by
Make sure that these devices are not used in other controls for the machine.
2)
When utilizing the time (hour, minute, and second) of the built-in PLC real time clock
Read the values of special data registers by TRD (FNC166) instruction, and then specify those word devices as
the operands.
Program example
X000
FNC160
TCMP
M0
M1
M2
Even if X000 is OFF and TCMP instruction is not executed, M0 to
M2 hold the status before X000 turned OFF.
S
,
S
S
S
S
1
2
Turns ON in the case of "
Turns ON in the case of "
Turns ON in the case of "
D
D
D
,
+1 and
+2 hold the status before the command
S
S
S
1
2
3
K10
K30
K50
10:30:50
Turns ON in the case of "10:30:50 >
Turns ON in the case of "10:30:50 =
Turns ON in the case of "10:30:50 <
21 Real Time Clock Control – FNC160 to FNC169
21.1 FNC160 – TCMP / RTC Data Compare
S
,
S
, and
1
2
+1, and
S
+2. Three devices starting from
S
D
3
S
(hour)
S
1
>
S
(minute)
S
2
S
(second)
S
3
S
(hour)
S
1
=
S
(minute)
S
2
S
(second)
S
3
S
(hour)
S
1
<
S
(minute)
S
2
S
(second)
S
3
S
and
D
.
S
D
D0
M0
D0 (hour)
D1 (minute)
"
S
1
D2 (second)
S
2
D0 (hour)
D1 (minute)
"
S
3
D2 (second)
S
D0 (hour)
S
+1
D1 (minute)
"
S
+2
D2 (second)
D
,
S
is compared with the time data
3
D
(hour)
"
+1(minute)
+2(second)
(hour)
"
+1(minute)
+2(second)
(hour)
"
+1(minute)
+2(second)
: Specifies "hour" of the comparison
time.
: Specifies "minute" of the
comparison time.
: Specifies "second" of the comparison
time.
: Specifies "hour" of the time data.
: Specifies "minute" of the time data.
: Specifies "second" of the time data.
D
+1,
D
+2
: Three bit devices turn ON or OFF
according to the comparison result.
21
turn ON or
22
23
24
25
26
27
28
29
30
565

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents