686
8 APPLICATION INSTRUCTION
8.24 Clock Instruction
8.24
Clock Instruction
Reading clock data
TRD(P)
These instructions read the clock data from the built-in real time clock in the CPU module.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
Processing details
• These instructions read the clock data (SD210 to SD216) from the built-in real time clock in the CPU module to the device
numbers (d) to (d)+6 in the following format.
Ladder diagram
Structured text
ENO:=TRD(EN,d);
ENO:=TRDP(EN,d);
FBD/LD
Operand
Description
Range
Data type
Data type (label)
(d)
Head device number where the read clock data is stored
16-bit signed binary
ANY16_ARRAY
(Number of elements: 7)
EN
Execution condition
Bit
BOOL
ENO
Execution result
Bit
BOOL
Operand
Bit
Word
Double word Indirect
specification
Constant
Others
X, Y, M, L, SM,
F, B, SB, S
T, ST, C, D, W,
SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(d)
Device
Item
Clock data
Device
Item
Special
registers
SD210
Year
1980 to 2079 (year, four digits)
(d)
Year
SD211
Month
1 to 12
(d)+1
Month
SD212
Day
1 to 31
(d)+2
Day
SD213
Hour data
0 to 23
(d)+3
Hour data
SD214
Minute data
0 to 59
(d)+4
Minute data
SD215
Second data
0 to 59
(d)+5
Second data
SD216
Day-of-the-week data
0 (Sunday) to 6 (Saturday)
(d)+6
Day-of-the-week data
(d)
EN
ENO
d
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......