2 CPU MODULE INSTRUCTIONS
2.3 Application Instructions
115
2
■Reading expansion clock data
■Adding expansion clock data
■Subtracting expansion clock data
Timing check instructions
■Generating timing pulses
■Measuring time of the specified data
Instruction symbol Processing details Reference
S.DATERD Reads clock data including millisecond from the clock elements in the CPU module.
(d): Year
(d)+1: Month
(d)+2: Day
(d)+3: Hour
(d)+4: Minute
(d)+5: Second
(d)+6: Day of week
(d)+7: Millisecond
Page 1025
S(P).DATERD
SP.DATERD
Instruction symbol Processing details Reference
S.DATE+ Adds time data. Page 1027
S(P).DATE+
SP.DATE+
Instruction symbol Processing details Reference
S.DATE- Subtracts time data. Page 1029 S(P).DATE-
SP.DATE-
Instruction symbol Processing details Reference
DUTY Turns on the user timing clock for the specified number of scans and off for the specified number of
scans.
(n1): (n1) scans
(n2): (n2) scans
(d): SM420 to SM424
Page 1031 DUTY
Instruction symbol Processing details Reference
TIMCHK Measures the on time of the input condition and, if the on time has continued as specified or longer,
turns on the device specified by (d).
Page 1033 TIMCHK
(d)+7
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(s1)
— — —
(s2) (d)
+
hour hour hour
minute
second
1/1000 second
minute
second
1/1000 second
minute
second
1/1000 second
(s1) (s2) (d)
-
—
hour
minute
second
1/1000 second
—
hour
minute
second
1/1000 second
—
hour
minute
second
1/1000 second