Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 708

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

Advertisement

Processing details
• These instructions compare the time data in the devices 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 in the device specified by (s2) in accordance with the
conditions set by (s3). (Devices are used as a normally open contact.)
(s1)
hour
(s1)+1
minute
(s1)+2
second
• Comparing specified time data with 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
(s1)+1
minute
second
(s1)+2
• Set each data in binary.
• Set the "hour" data as in the 24-hour clock in the devices specified by (s1) and (s2) within the range 0 to 23.
• Set the "minute" data in the devices specified by (s1)+1 and (s2)+1 within the range 0 to 59.
• Set the "second" data in the devices specified by (s1)+2 and (s2)+2 within the range 0 to 59.
• 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)
• When 0 is set to the 0 to 2 bits, the time data (hour, minute, and second) are not compared. When 1 is set, the entire time
data (hour, minute, and second) are compared.
• When 0 is set to the 15 bit, the data in the device specified by (s1) and the time data in the device specified by (s2) are
compared. When 1 is set, the data in the device specified by (s1) is compared with the current time. The time data in the
device specified by (s2) is ignored.
• The following table lists processing details of each bit.
(s3) value when
comparing two
specified time data
0001H
0002H
0003H
0004H
0005H
0006H
0007H
Other than 0001H to 0007H, 8001H to 8007H
8 APPLICATION INSTRUCTION
706
8.24 Clock Instruction
(0 to 23)
Relational
(0 to 59)
operator
(0 to 59)
(0 to 23)
Relational
(0 to 59)
operator
(0 to 59)
b3
b2
b1
b0
0/1 0/1 0/1
(3)
(2) (1)
(s3) value when
Comparison
comparing the
target
specified time data
with the current time
8001H
Second data
8002H
Minute data
8003H
Minute and
second data
8004H
Hour data
8005H
Hour and second
data
8006H
Hour and minute
data
8007H
Hour, minute, and
second data
None
(0 to 23)
(s2)
hour
(s2)+1
(0 to 59)
minute
(s2)+2
second
(0 to 59)
Current time
(Hour/minute/second)
(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.
Contents of processing
Only data in the device specified by (s1)+2 is compared.
Only data in the device specified by (s1)+1 is compared.
Data in the device areas specified by (s1)+2 and (s1)+2 are compared.
Only data in the device specified by (s1) is compared.
Data in the device areas specified by (s1) and (s1)+2 are compared.
Data in the device areas specified by (s1) and (s1)+1 are compared.
The entire time data in the device areas specified by (s1), (s1)+1, and (s1)+2
are compared.
The entire time data in the device areas specified by (s1), (s1)+1, and (s1)+2
are not compared. (The operation result will be non-continuity.)
Comparison
operation
result
Comparison
operation
result

Hide quick links:

Advertisement

loading