580
HOUR, HOURP
[Operation]
• Time data read operation triggered by DATERDP instruction.
• Conversion to seconds as triggered by the SECONDP instruction.
: 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)
F
unct
i
on
(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:
Operat
i
on
E
rror
(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.
7.15.6
HOUR, HOURP
Time data conversion (from Second to Hour/Minute/
Second)
7.15.6
HOUR, HOURP
Setting
Data
Internal Devices
R, ZR
J \
U \G
Zn
Constants
K, H
Other
Bit
Word
Bit
Word
––
––
––
––
––
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
The value set for is not within the setting range.
––
––
––
––
4101
The range of the device specified by exceeds the range of the
corresponding device.
––
––
––
––
C
l
ock
de
vi
ce
95
4
20
D11
D12
Y
ear
Day
Month
20
21
23
5
D10
D13
D1
4
D15
D16
H
our
M
i
nute
Second
Day
of
w
eek
Ti
me
data
20
21
23
D1
4
D15
73283
D13
D101,D100
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
H
O
U
RP
S
D
S
D
HOURP
HOUR
H
O
U
R
S
D
S
D
S
D
Second
H
our
M
i
nute
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
4
5325
+
1
12
35
25
+
1
+
2
S
S
D
D
D
S
D