Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 117

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

Advertisement

■Reading expansion clock data
Instruction symbol
Processing details
S.DATERD
Reads clock data including millisecond from the clock elements in the CPU module.
SP.DATERD
(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
■Adding expansion clock data
Instruction symbol
Processing details
S.DATE+
Adds time data.
SP.DATE+
(s1)
1/1000 second
■Subtracting expansion clock data
Instruction symbol
Processing details
S.DATE-
Subtracts time data.
SP.DATE-
(s1)
Timing check instructions
■Generating timing pulses
Instruction symbol
Processing details
DUTY
Turns on the user timing clock for the specified number of scans and off for the specified number of
scans.
(d)
(n1): (n1) scans
(n2): (n2) scans
(d): SM420 to SM424
■Measuring time of the specified data
Instruction symbol
Processing details
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).
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(s2)
hour
hour
minute
minute
+
second
second
1/1000 second
(s2)
hour
hour
minute
minute
-
second
second
1/1000 second
1/1000 second
(n1)
(n2)
(d)
hour
minute
second
1/1000 second
(d)
hour
minute
second
1/1000 second
2 CPU MODULE INSTRUCTIONS
Reference
Page 1025
S(P).DATERD
Reference
Page 1027
S(P).DATE+
Reference
Page 1029 S(P).DATE-
Reference
Page 1031 DUTY
Reference
Page 1033 TIMCHK
2.3 Application Instructions
2
115

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents