7.15 Clock Instructions
7.15.6 Time data conversion (seconds to hour/minute/second format)
7-335
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
HOUR
HOUR
7.15.6
Time data conversion (seconds to hour/minute/second
format)
HOUR
Function
Converts the data in seconds stored in the device specified for
to an hour/minute/second
format, and stores the conversion result to
and the following devices.
For example, if 45325 seconds were the value specified, the conversion operation would be
performed as follows.
HOUR(P)
P: Executing condition
:
indicates any of the following
instructions.
HOUR
HOURP
Input argument,
EN:
Executing condition
:Bit
s:
Clock data before the conversion
:ANY32
Output argument,
ENO:
Execution result
:Bit
d:
Clock data after the conversion
:Array of ANY16 (0..2)
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
HO
U
R
EN
ENO
s
d
HO
U
R
(EN,
s
, d);
ENO:=
s
d
s
d
S
econ
d
Hour
M
inute
S
econ
d
(0
to
23)
(0
to
59)
(0
to
59)
(0
to
86399)
d
d
d
s
Data range
Data range
[
2
]
[
1
]
[
0
]
4
5325
12
35
25
d
d
d
s
[
2
]
[
1
]
[
0
]
Summary of Contents for MELSEC Q Series
Page 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Page 2: ......
Page 14: ...A 12 MEMO ...
Page 340: ...6 178 MEMO MTR ...
Page 708: ...7 368 MEMO ...
Page 776: ...8 68 MEMO ...
Page 796: ...9 20 MEMO ...
Page 804: ...App 8 MEMO ...
Page 812: ...Index 8 MEMO ...
Page 815: ......