12.2 SHMS (Conversion: Seconds Data → Time Data (Hours, Minutes
and Seconds))
■
Ladder diagram
■
List of operands
Operand Description
S Device address of seconds data (available data range: 0 to 35,999,999)
D Starting device address of time 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
● 2-word integer data representing seconds, which is stored in the area starting with [S], is
converted into time data comprised of 1 word for hours, 1 word for minutes and 1 word for
seconds.
● The calculation result is stored in the area starting with [D].
■
Processing
Example) Convert 12,345 seconds
[S]…DT0 [D]…DT10
* 1 word
DT10
(hours)
DT11
(minutes)
(seconds)
DT12
Convert
K 25
K 3
K 45
* 2 words
DT0・DT1
(seconds)
K 12345
12.2 SHMS (Conversion: Seconds Data → Time Data (Hours, Minutes and
Seconds))
12-4 WUME-FP7CPUPGR-12