Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1008

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

Advertisement

Processing details
• These instructions add the time data in the device specified by (s2) to the time data in the device specified by (s1), and
store the addition result in the device number specified by (d) and later.
(s1)
hour
(0 to 23)
(s1)+1
minute
(0 to 59)
(s1)+2
second
(0 to 59)
Ex.
7:48:10 is added to 6:32:40.
(s1)
6
(s1)+1
32
40
(s1)+2
• If the time obtained as the result of addition exceeds 24 hours, 24 hours are subtracted from the resultant time to produce
the operation result. For example, when 20:20:20 is added to 14:20:30, the operation result is 10:40:50 rather than
34:40:50.
(s1)
14
(s1)+1
20
30
(s1)+2
Operation error
Error code
Description
(SD0)
3405H
The data in the device specified by (s1) or (s2) is out of range.
7 APPLICATION INSTRUCTIONS
1006
7.25 Clock Instructions
(s2)
hour
(s2)+1
minute
+
(s2)+2
second
(s2)
7
(s2)+1
48
+
10
(s2)+2
(s2)
20
(s2)+1
20
+
20
(s2)+2
(0 to 23)
(d)
hour
(0 to 59)
(d)+1
minute
(0 to 59)
(d)+2
second
(d)
(d)+1
(d)+2
(d)
(d)+1
(d)+2
(0 to 23)
(0 to 59)
(0 to 59)
14
20
50
10
40
50

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents