7-352
SECOND(P)
7.15.5 Time data conversion (from Hour/Minute/Second to Second)
(SECOND(P))
SECOND(P)
Function
(1) Converts the time data stored in the area starting from the device designated by to
seconds and stores the conversion result into the device designated by .
For example, if the value were 4 hours, 29 minutes, and 31 seconds, the conversion would
be made as follows:
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
• The data set by and is outside the setting range. (Error code: 4100)
• The device specified by exceeds the range of the corresponding device.
(For the Universal model QCPU only.) (Error code: 4101)
: Head number of the devices where the clock data before conversion is stored (BIN 16 bits)
: Head number of the devices where the clock data after conversion will be stored (BIN 32 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn Constants Other
Bit Word Bit Word
–– –– ––
––
Basic
Process
High
performance
Redundant
Universal
Command
Command
SECONDP
S
D
S D
SECONDP
SECOND
SECOND
S
D
S
D
S
D
Hour
Minute
Second
+1
+2
(0 to 23)
(0 to 59)
(0 to 59)
Second
+1
S
D
S
S
D
Data range
4
29
31
16171
1
D
S
S
S
D
+1
+2
S
S