21 Applied Instructions (Real Time Clock Control)
21.6 STOH / Second to Hour Conversion
554
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21.6 STOH / Second to Hour Conversion
Outline
This instruction converts the time data in second unit into time data in "hour, minute, second" unit.
1. Format and operation, execution form
2. Set data
3. Applicable devices
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
STOH 16 bits Continuous STOH(EN,s,d);
STOHP 16 bits Pulse STOHP(EN,s,d);
DSTOH 32 bits Continuous DSTOH(EN,s,d);
DSTOHP 32 bits Pulse DSTOHP(EN,s,d);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Device for storing the time data in second unit before conversion ANY16 ANY32
Output
variable
ENO Execution state Bit
Device for storing the time data in "hour, minute, second" unit after
conversion (3 points occupied)
ARRAY [0..2] OF ANY16
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D
.b
KnX KnY KnM KnS T C D R
U\G
VZModifierKH E
""
P
z z z z zzzz z z
zzzzzzzz z
STOH
EN
s
ENO
d
STOHP
EN
s
ENO
d
DSTOH
EN
s
ENO
d
DSTOHP
EN
s
ENO
d