7.15 Clock Instructions
7.15.5 Time data conversion (hour/minute/second format to seconds)
7-333
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
SECO
N
D
SECOND
7.15.5
Time data conversion (hour/minute/second format to
seconds)
SECOND
Function
Converts the time data stored in
and the following devices to the data in seconds and stores
the conversion result to the device specified for
.
For example, if the value were 4 hours, 29 minutes and 31 seconds, the conversion
operation would be performed as follows.
SECOND(P)
P: Executing condition
:
indicates any of the following
instructions.
SECOND
SECONDP
Input argument,
EN:
Executing condition
:Bit
s:
Clock data before the conversion
:Array of ANY16 (0..2)
Output argument,
ENO:
Execution result
:Bit
d:
Clock data after the conversion
:ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
−
−
−
−
Universal
UD
High
Performance
Structured ladder
ST
SECON
D
EN
ENO
s
d
SECON
D
(EN,
s
, d);
ENO:=
s
d
s
d
Hour
M
inute
S
econ
d
(0
to
23)
(0
to
59)
(0
to
59)
S
econ
d
s
s
s
d
[
1
]
[
0
]
[
2
]
Data range
4
29
31
16171
s
s
s
d
[
1
]
[
0
]
[
2
]
Содержание 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: ......