172
4-10
.
RTC Instructions
Mnemonic
Function
Chapter
TRD
Clock data read
4-10-1
TWR
Clock data write
4-10-2
TCMP
Clock compare
4-10-3
※
1: To use the instructions, The Model should be equipped with RTC function;
※
2: There are some errors in the clock of XD/XL series PLC, which is about
±
5 minutes per
month. It can be calibrated regularly by HMI or in the PLC program.
4-10-1
.
Read the clock data [TRD]
1. Instruction Summary
Read the clock data:
Read the clock data: [TRD]
16 bits
TRD
32 bits
-
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
Software
requirement
-
2. Operands
Operands Function
Data Type
D
Register address to save clock data
16 bits, BIN
3. Suitable Soft Components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS.
TRD
D0
X0
D·
The current time and date of the real time clock are read and stored in the 7 data devices
specified by the head address D.
Read PLC’s real time clock according to the following format.
Read the special data register (SD013~SD019).
Word
Operand
System
Constant Module
D
*
FD
TD
*
CD
*
DX
DY
DM
*
DS
*
K /H
ID
QD
D
●
●
●
Description
Содержание XD Series
Страница 1: ...XD XL series PLC User manual Instruction WUXI XINJE ELECTRIC CO LTD Data No PD05 20201022 3 5 ...
Страница 210: ...209 ...
Страница 314: ...313 B Double click the middle part to modify ...