12.2 SHMS (Conversion: Seconds Data → Time Data (Hours, Minutes and
Seconds))
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
■
Available devices (●: Available)
Operan
d
W
W
X
Y
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
* 2 words
DT0・DT1
12-4
"19.2 Clock and Time Data"
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
●
●
●
●
●
●
●
●
●
●
[D]...DT10
(seconds)
K 12345
32-Bit
device:
TS
TE
U
W
WI
IX
C
C
M
O
S
E
●
●
●
●
●
* 1 word
DT10
Convert
DT11
DT12
Real
St
Integer
numbe
rin
r
g
D
K
U
H
SF
" "
F
K 3
(hours)
(minutes)
K 25
(seconds)
K 45
WUME-FP7CPUPGR-12
Index
modifie
r
●
●