7-354
HOUR(P)
7.15.6 Time data conversion (from Second to Hour/Minute/Second )
(HOUR(P))
HOUR(P)
Function
(1) Converts the data in seconds stored in the device number designated by to an hour/
minute/second format, and stores the conversion result into the area starting from the device
designated by .
For example, if 45325 seconds were the value designated, the conversion operation would
be conducted 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 clock data before conversion is stored (BIN 32 bits)
: Head number of the devices where the clock data after conversion will be stored (BIN 16 bits)
Setting
Data
Internal Devices
R, ZR
J\
U\G
Zn
Constants
K, H
Other
Bit Word Bit Word
––
–– –– –– ––
Basic
Process
High
performance
Redundant
Universal
Command
Command
HOURP
S
D
S D
HOURP
HOUR
HOUR
S
D
S
D
S
D
Second
Hour
Minute
Second
(0 to 23)
(0 to 59)
(0 to 59)
(0 to 86399)
S
D
D
D
S
Data range Data range
1
+1
+2
45325
+1
12
35
25
+1
+2
S S
D
D
D
S
D