Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1020

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s1)
(s2)
(s3)
Processing details
• These instructions compare the time data in the device specified by (s1) and (s2), or compare the time data in the device
specified by (s1) with the current time. Set the comparison target by (s3).
• Comparing two specified time data
These instructions compare the time data in the device specified by (s1) with the time data (hour, minute, second) in the device specified by (s2) in accordance
with the conditions set by (s3). (Devices are used as a normally open contact.)
(s1)
hour
(0 to 23)
(s1)+1
minute
(0 to 59)
(s1)+2
second
(0 to 59)
(1)Relational operator
(2)Comparison result
• Comparing the specified time data with the current time data
These instructions compare the time data in the device specified by (s1) with the current time data in accordance with the conditions set by (s3). (Devices are
used as a normally open contact.) The time data in the device specified by (s2) is regarded as dummy data and ignored.
(s1)
hour
(0 to 23)
(s1)+1
minute
(0 to 59)
second
(0 to 59)
(s1)+2
(1)Relational operator
(2)Current time data
(3)Comparison result
• Set each data in binary.
• Set the hour data in the range from 0 to 23 in 24-hour format in the devices specified by (s1) and (s2).
• Set the minute data in the range from 0 to 59 in the devices specified by (s1)+1 and (s2)+1.
• Set the second data in the range from 0 to 59 in the devices specified by (s1)+2 and (s2)+2.
• Set the following in (s3) as comparison target setting values. The following shows the bit configuration of (s3).
b15 b14
∙∙∙
0/1
0
(5)
(4)
7 APPLICATION INSTRUCTIONS
1018
7.25 Clock Instructions
Word
J\
T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
(s2)
hour
(1)
(s2)+1
minute
(s2)+2
second
(2)
hour
(1)
minute
second
b3
b2
b1
b0
0/1 0/1 0/1
(3)
(2) (1)
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
(0 to 23)
(2)
(0 to 59)
(0 to 59)
(3)
(1) Set "second" as comparison target.
(2) Set "minute" as comparison target.
(3) Set "hour" as comparison target.
(4) Set 0. If a value other than 0 is set, the operation result will be non-
continuity.
(5) When 1 is set to the 15 bit, the data in the device specified by (s1) is
compared with the current time in accordance with the conditions set in the
0 to 2 bits.
Constant
specification
LZ
K, H E
Others
$

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents