7-336
7.15 Clock Instructions
7.15.6 Time data conversion (seconds to hour/minute/second format)
HOUR
O
peration Error
In any of the following cases, an operation error occurs, the error flag (SM0) is turned ON, and
the corresponding error code is stored to SD0.
• The value set for
is outside of the setting range.
(Error code: 4100)
• The device specified for
exceeds the corresponding device range. (For Universal
model QCPU only)
(Error code: 4101)
Program Example
In the following program, the value in seconds stored in Var_D0 is converted to Hour/Minute/
Second format when X20 turns ON, and the result is stored to Var_D100 and the following
devices.
[Structured ladder]
[ST]
HOURP(X20,Var_D0,Var_D100);
[Operation]
• Conversion to Hour/Minute/Second format by the HOURP instruction (when the value
40000 seconds has been specified for Var_D0).
s
d
40000
Var
_
D
0
11
6
40
Var
_
D
100[1]
Var
_
D
100[2]
Var
_
D
100[0]
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......