Converting Time Data From Second To Hour/Minute/Second - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Converting time data from second to hour/minute/second

SEC2TIME(P)
RnPCPU
RnPCPU
RnCPU RnENCPU
(Process)
(Redundant)
These instructions convert second data to time data (hour, minute, second).
Ladder
(s)
(d)
FBD/LD
EN
ENO
s
d
■Execution condition
Instruction
SEC2TIME
SEC2TIMEP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Start device where the time data to be converted is stored
(d)
Start device for storing the clock data after conversion
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
J\
SM, F, B, SB,
FX, FY
(s)
(d)
RnSFCPU RnSFCPU
(Standard)
(Safety)
Execution condition
Word
T, ST, C, D, W,
U\G, J\,
SD, SW, FD, R,
U3E\(H)G
ZR, RD
ST
ENO:=SEC2TIME(EN,s,d);
ENO:=SEC2TIMEP(EN,s,d);
Range
Data type
0 to 86399
32-bit signed binary
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LT, LST,
LZ
LC
7 APPLICATION INSTRUCTIONS
Data type (label)
ANY32
ANY16_ARRAY
(Number of elements: 3)
BOOL
BOOL
Constant
Others
K, H E
$
1011
7.25 Clock Instructions
7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents