Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
21 Applied Instructions (Real Time Clock Control)
21.1 TCMP / RTC Data Compare
542
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation (TCMP)
The time of comparison time (hour, minute, second) , , is compared with the time data (hour,
minute, second) of the device specified by , and the device specified by is turned ON or OFF
depending on the magnitude of difference.
Cautions
1) Number of devices occupied
Three devices are occupied each in and .
Be careful not to overlap with the devices used in machine control.
2) When using the time (hour, minute, second) of the clock data of the real time clock built in the PLC, first
read out the value of the special data register by using TRD, TRDP, and specify the word device in each
operand.
3) Some restrictions to applicable devices.
S1: The FX
3U and FX3UC PLCs only are applicable, index (V, Z) decoration is disabled.
S2: The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S3: The FX
3U and FX3UC PLCs only are applicable.
and then turned ON
= and then turned ON
and then turned ON
If TCMP is not executed when command contact is changed from ON to OFF, , +1, +2
are holding the state before the command contact is turned OFF.
+1 (minute)
(hour)
+2 (second)
+1
(minute)
(hour)
(second)
TCMP
EN
s1
s2
ENO
d
s3
s
Command input
Comparison time "hour"
Time data (hour, minute,
second) "hour"
Comparison time "minute"
Comparison time "second"
Device to be turned ON or OFF
depending on the comparison result.
(minute)
(hour)
(second)
(minute)
(hour)
(second)
+1 (minute)
(hour)
+2 (second)
+1 (minute)
(hour)
+2 (second)
d
d
d
d
s
s
s
s
s
s
s
s
s
s1
s1
s1
s2
s2
s3
s3
s2
s3
+2
d d
>
<