EasyManua.ls Logo

Xinje XD5 - RTC Instructions; Read the Clock Data [TRD]

Xinje XD5
389 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
172
4-10RTC 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-1Read 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

Table of Contents

Related product manuals