12.1 HMSS (Conversion: Time Data (Hours, Minutes and Seconds) →
Seconds Data)
12.1 HMSS (Conversion: Time Data (Hours, Minutes and Seconds) →
Seconds Data)
■
Ladder diagram
■
List of operands
Operand
Description
Starting device address of time data (available data range: 0 to 9999 (hours), 0 to 59 (minutes), 0
S
to 59 (seconds))
D
Device address of seconds data
(Note 1)
For details of time data, refer to
■
Available devices (●: Available)
Operan
d
W
W
X
Y
S
●
●
D
●
●
■
Outline of operation
● Time data comprised of 1 word for hours, 1 word for minutes and 1 word for seconds, which
is stored in the area starting with [S], is converted into a 2-word integer data representing
seconds.
● The calculation result is stored in the area starting with [D].
■
Processing
Example) Convert 3 hours, 54 minutes and 19 seconds
[S]...DT0
* 1 word
DT0
K 3
DT1
K 54
DT2
K 19
12-2
""19.2 Clock and Time
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
●
●
[D]...DT10
(hours)
Convert
(minutes)
(seconds)
Data""
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
●
●
●
●
●
* 2 words
DT10・DT11
Real
St
Integer
numbe
rin
r
g
D
K
H
SF
" "
U
F
(seconds)
K 14059
WUME-FP7CPUPGR-12
Index
modifie
r
●
●