Download Print this page

Clock Instruction - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

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.
Ladder diagram
(d)
FBD/LD
EN
ENO
d
Setting data
■Descriptions, ranges, and data types
Operand
Description
(d)
Head device number where the read clock data is stored
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(d)
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.
Device
Special
SD210
registers
SD211
SD212
SD213
SD214
SD215
SD216
8 APPLICATION INSTRUCTION
686
8.24 Clock Instruction
Word
T, ST, C, D, W,
U\G
SD, SW, R
Item
Clock data
Year
1980 to 2079 (year, four digits)
Month
1 to 12
Day
1 to 31
Hour data
0 to 23
Minute data
0 to 59
Second data
0 to 59
Day-of-the-week data
0 (Sunday) to 6 (Saturday)
Structured text
ENO:=TRD(EN,d);
ENO:=TRDP(EN,d);
Range
Data type
16-bit signed binary
Bit
Bit
Double word Indirect
specification
Z
LC
LZ
Data type (label)
ANY16_ARRAY
(Number of elements: 7)
BOOL
BOOL
Constant
K, H
E
$
Device
Item
(d)
Year
(d)+1
Month
(d)+2
Day
(d)+3
Hour data
(d)+4
Minute data
(d)+5
Second data
(d)+6
Day-of-the-week data
Others

Hide quick links:

Advertisement

loading