Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 711

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions compare the time specified by (s1), (s2), and (s3) with the time data specified by (s4), and turn on/off the
bit device specified by (d) depending on the size match.
hour
(s1)
(0 to 23)
(s2)
minute
(0 to 59)
(s3)
second
(0 to 59)
(0 to 23)
(s1)
hour
minute
(0 to 59)
(s2)
second
(0 to 59)
(s3)
(s1)
hour
(0 to 23)
(0 to 59)
(s2)
minute
(0 to 59)
(s3)
second
• (d), (d)+1, and (d)+2 hold the state before the command contact is turned off even if, the TCMP instruction is not executed
by switching on  off the command contact.
Precautions
• Three devices are occupied by (s4) and (d). Make sure that these devices are not used by other machine controls.
• Specify each operand of the word device after reading the value of the special register used in the TRD(P) instruction when
the time (hour, minute, second) of the clock data of the built-in real time clock in the CPU module is used.
Operation error
Error code
Description
(SD0/SD8067)
2820H
The device range specified exceeds the corresponding device range.
3405H
The value specified by (s1) and (s4) is outside the following range.
0 to 23
The value specified by (s2), (s3), (s4)+1, and (s4)+2 is outside the following range.
0 to 59
hour
(0 to 23)
(s4)
(s4)+1
minute
(0 to 59)
(0 to 59)
(s4)+2
second
(0 to 23)
(s4)
hour
=
minute
(0 to 59)
(s4)+1
second
(0 to 59)
(s4)+2
(s4)
hour
(0 to 23)
(0 to 59)
(s4)+1
minute
(0 to 59)
(s4)+2
second
(d) = ON
(d) +1 = ON
(d) +2 = ON
8 APPLICATION INSTRUCTION
8.24 Clock Instruction
8
709

Hide quick links:

Advertisement

loading