299
D PS T O H
S
D
1
2
M
3
○○
FNC
165
○
X Y M S
D.b R.b
KnX KnY
KnM KnS
T C
D,R
V,Z
UnG
K,H
E
" $"
S
D
S : the decimal seconds to be transferred
D : the transferred head register of the
time combination result
STOH D10 D20
X0
D
D
S
S
In case of the 32-bit instruction is used, the component is by the format of 32-bit and that occupies 2 registers.
S
S
D
X0=ON
D10
S
D
S
DSTOHP D10 D20
X0
(D11, D10)
D
X0=OFF→ON
○
S
S
D
Convert Second to Hour
D occupies 3 components
11748 (Second)
D20 = 03 (Hour)
D21 = 15 (Minute)
D22 = 48 (Second)
145293 (Second)
D20 = 40 (Hour)
D21 = 21 (Minute)
D22 = 33 (Second)
The decimal seconds at transfers to the Hours, Minutes and Seconds then respectively store those into three
registers , +1 and +2.
When X0 = “ON”, the instruction will be performed. The decimal seconds at D10 will convert to equal time
combination by Hours, Minutes and Seconds and store those results into the D20, D21 and D22.
D
For the 16-bit instruction, = 0~32,767. If the content value of the register exceeding the range, the PLC will be
regarded as an operating error.
For the 32-bit instruction, = 0~117,964,799. If the content value of the register exceeding the range, the PLC
will regard that as an operational error.
Operand
Devices