Mitsubishi Electric MELSEC FX3U Programming Manual page 590

Melsec fx series programmable logic controllers
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
time data (hour, minute, and second) stored in
turn ON or OFF according to the comparison result.
D
Command
input
FNC160
D
D
D
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 real time clock built in a PLC
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.
588
S
S
1
2
TCMP
Turns ON in the case of "
+1
Turns ON in the case of "
+2
Turns ON in the case of "
D
D
D
,
+1 and
S
S
1
2
K10
K30
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
S
1
,
+1, and
S
S
S
S
D
3
S
(hour)
1
>
S
(minute)
2
S
(second)
3
S
(hour)
1
=
S
(minute)
2
S
(second)
3
S
(hour)
1
<
S
(minute)
2
S
(second)
3
+2 hold the status before the command
and
S
D
S
S
D
3
K50
D0
M0
D0 (hour)
D1 (minute)
D2 (second)
D0 (hour)
D1 (minute)
D2 (second)
D0 (hour)
D1 (minute)
D2 (second)
21.1 FNC160 – TCMP / RTC Data Compare
,
, and
is compared with the
S
S
2
3
+2. Three devices starting from
S
S
(hour)
"
S
+1(minute)
S
+2(second)
S
(hour)
"
S
+1(minute)
S
+2(second)
S
(hour)
"
S
+1(minute)
S
+2(second)
.
"
: Specifies "hour" of the comparison
S
1
time.
: Specifies "minute" of the
S
2
comparison time.
"
: Specifies "second" of the comparison
S
3
time.
S
: Specifies "hour" of the time data.
S
+1
: Specifies "minute" of the time data.
"
S
+2
: Specifies "second" of the time data.
D
,
D
+1,
D
+2
: Three bit devices turn ON or OFF
according to the comparison result.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents