Fnc165 - Stoh / Second To Hour Conversion - Mitsubishi Electric FX3G SERIES Programming Manual

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
21.6
FNC165 – STOH / Second to Hour Conversion
Outline
This instruction converts the time data in units of "second" into data in units of "hour, minute, and second".
1. Instruction format
FNC 165
D
STOH
2. Set data
Operand type
S
S
1
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS
S
S
1
S
D
2
Explanation of function and operation
1. 16-bit operation (STOH and STOHP)
The time data in units of "second" stored in
stored to
D
Command
input
FNC165
STOH
S
Second (0 to 32767)
For example, when "29,011 seconds" is specified, the operation is as follows:
S
29011
574
Mnemonic
16-bit Instruction
P
5 steps STOH
STOHP
Device number storing the time data (second) before conversion
Head device number storing the time data (hour, minute and second) after conversion
Digit Specification
,
D
+1, and
D
+2 (hour, minute, and second).
S
D
D
D
+1
D
+2
D
8
D
+1
3
D
+2
31
21 Real Time Clock Control – FNC160 to FNC169
21.6 FNC165 – STOH / Second to Hour Conversion
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
Word Devices
Special
System User
Unit
T
C D R U \G
S
is converted into data in units of "hour, minute, and second", and
Hour
(0 to 9)
Minute
(0 to 59)
Second
(0 to 59)
Mnemonic
Operation Condition
DSTOH
9 steps
DSTOHP
16- or 32-bit binary
Others
Con-
Real
Index
stant
Number
V
Z Modify K
H
E
Continuous
Operation
Pulse (Single)
Operation
Data type
16-bit binary
Charac-
Pointer
ter String
" "
P

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents