173
The RTC (real time clock) value is in BCD code format (SD013 to SD019). Please choose
hex format to monitor the RTC value in XDPpro software. The value can be transformed to
decimal format by BIN instruction. After reading the RTC by TRD instruction, the value will
show in decimal format.
After reading the RTC by TRD, the value becomes decimal value.
after executing TRD instruction, D0 to D6 are occupied.
4-10-2
.
Write Clock Data [TWR]
1. Instruction Summary
Write the clock data:
Write clock data [TWR]
16 bits
-
32 bits
TWR
Execution
condition
Normally ON/OFF,
rising/falling edge
Suitable
Models
XD, XL
Hardware
requirement
Software
requirement
-
2. Operands
Operands Function
Data Type
S
Write the clock data to the register
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.
Unit
Item
D0
Year
D1
Month
D2
Date
D3
Hour
D4
Minute
D5
Second
D6
Week
Unit
Item
Clock data
Sp
ecial d
ata re
g
is
ter
f
o
r r
eal
tim
e clo
ck
t
SD018
Year
0-99
SD017
Month
1-12
SD016
Date
1-31
SD015
Hour
0-23
SD014
Minute
0-59
SD013
Second
0-59
SD019
Week
0 (Sun.)-6 (Sat.)
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 ...