Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1010

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

Advertisement

Processing details
• These instructions subtract the time data in the device specified by (s2) from the time data in the device specified by (s1),
and store the subtraction result in the device number specified by (d) and later.
(s1)
hour
(0 to 23)
(0 to 59)
(s1)+1
minute
second
(0 to 59)
(s1)+2
Ex.
3:50:10 is subtracted from 10:40:20.
(s1)
10
(s1)+1
40
20
(s1)+2
• If the time obtained as the result of subtraction becomes a negative value, 24 hours are added to the resultant time to
produce the operation result. For example, when 10:42:12 is subtracted from 4:50:32, the operation result is 18:8:20 rather
than -6:8:20.
(s1)
4
50
(s1)+1
32
(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
1008
7.25 Clock Instructions
(s2)
hour
(s2)+1
minute
-
second
(s2)+2
(s2)
3
(s2)+1
50
-
10
(s2)+2
(s2)
10
42
(s2)+1
-
12
(s2)+2
(0 to 23)
(d)
hour
(0 to 59)
(d)+1
minute
(0 to 59)
second
(d)+2
(d)
(d)+1
(d)+2
(d)
(d)+1
(d)+2
(0 to 23)
(0 to 59)
(0 to 59)
6
50
10
18
8
20

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents