
7 APPLICATION INSTRUCTION
7.19 Clock instruction
579
7
7.19
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.
• The table below shows the related devices. The clock data stored in these special registers is updated during the END
processing.
Ladder diagram
Structured text
ENO:=TRD(EN,d);
ENO:=TRDP(EN,d);
Operand
Description
Range
Data type
Data type (label)
(d)
Head device number where the read clock data is stored
16-bit signed binary
ANY16
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
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)
D0
Year
SD211
Month
1 to 12
D1
Month
SD212
Day
1 to 31
D2
Day
SD213
Hour data
0 to 23
D3
Hour data
SD214
Minute data
0 to 59
D4
Minute data
SD215
Second data
0 to 59
D5
Second data
SD216
Day-of-the-week data
0 (Sunday) to 6 (Saturday)
D6
Day-of-the-week data
Device
Name
Description
Binary code
SD210
Binary clock data (year)
The year data in the clock data is stored as a four-digit binary code.
SD211
Binary clock data (month)
The month data in the clock data is stored as a binary code.
SD212
Binary clock data (day)
The day data in the clock data is stored as a binary code.
SD213
Binary clock data (hour)
The hour data in the clock data is stored as a binary code.
SD214
Binary clock data (minute)
The minute data in the clock data is stored as a binary code.
SD215
Binary clock data (second)
The second data in the clock data is stored as a binary code.
SD216
Binary clock data (day of the week)
The day-of-a-week data in the clock data (0: Sunday, 1: Monday, ..., 6: Saturday) is stored as a binary code.
Binary code (FX3 compatible area)
SD8013
Binary clock data (second)
The second data in the clock data is stored as a binary code.
SD8014
Binary clock data (minute)
The minute data in the clock data is stored as a binary code.
SD8015
Binary clock data (hour)
The hour data in the clock data is stored as a binary code.
SD8016
Binary clock data (day)
The day data in the clock data is stored as a binary code.
SD8017
Binary clock data (month)
The month data in the clock data is stored as a binary code.
(d)
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......