12.1 HMSS (Conversion: Time Data (Hours, Minutes and Seconds) →
Seconds Data)
■
Ladder diagram
■
List of operands
Operand Description
S
Starting device address of time data (available data range: 0 to 9999 (hours), 0 to 59 (minutes), 0
to 59 (seconds))
D Device address of seconds data
(Note 1) For details of time data, refer to “"19.2 Clock and Time Data"”
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX K U H SF
D
F
" "
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 [D]…DT10
* 1 word
DT0
(hours)
* 2 words
DT1
(minutes)
(seconds)
DT2
Convert
K 54
K 3
K 19
DT10・DT11
(seconds)
K 14059
12.1 HMSS (Conversion: Time Data (Hours, Minutes and Seconds) →
Seconds Data)
12-2 WUME-FP7CPUPGR-12