X8 Instruction Set Reference Manual
SFR (Special Function Register)
3
-
3
Real-Time Clock Register
The real-time clock provides year, month, day of month, day of week, hour,
minute, and second information to the Real-Time Clock (RTC) data table in
the PLC.
The Real-Time Clock parameters and their valid ranges are shown in the table
below
Writing Time Data to the Real-Time Clock
There are two ways to change the RTC setting data.
The RTC settings may be changed by either the ladder program of
XGPC
programming software, and a write MSG instruction from another PLCs
connected with serial or Ethernet communication.
Use the CPW (Copy Word) instruction to adjust the RTC settings within the
ladder logic as follows:
Following example shows data transmission method by using Copy Word
instruction.
Feature
Address
Data
Format
Range
Type
User Program Access
YR - RTC Year
RTC:0.YR
word
1998…2097
Status
read/write
MON - RTC Month
RTC:0.MON
word
1…12
Status
read/write
DAY - RTC Day of Month
RTC:0.DAY
word
1…31
Status
read/write
HR - RTC Hours
RTC:0.HR
word
0…23 (military time)
Status
read/write
MIN - RTC Minutes
RTC:0.MIN
word
0…59
Status
read/write
SEC - RTC Seconds
RTC:0.SEC
word
0…59
Status
read/write
DOW - RTC Day of Week
RTC:0.DOW
word
0…6 (Sunday to Saturday)
Status
read/only
DS - Disabled
RTC:0/DS
binary
0 or 1
Status
read/only
BL - RTC Battery Low
RTC:0/BL
binary
0 or 1
Status
read/only
IMPORTANT
An Error Code 44H is generated if any of the data being written to the
RTC data table is invalid.
For example, setting the Seconds to 61.
COPW
EN
ENO
IN
#N4:0 -
1 < LEN
OUT -#RTC.0.Year
Summary of Contents for X8 Series
Page 1: ...Catalog Number s X8 M14DDT X8 M16DDR X8 M32DDT X8 Instruction Manual Reference Manual ...
Page 16: ......
Page 64: ...X8 Instruction Set Reference Manual 2 12 X8 Series PLC Memory and Data Table ...
Page 166: ...X8 Instruction Set Reference Manual 7 8 Relay Type Bit Instructions ...
Page 180: ...X8 Instruction Set Reference Manual 8 14 Timer and Counter Instructions ...
Page 205: ...X8 Instruction Set Reference Manual Math Instructions 10 17 ...
Page 206: ...X8 Instruction Set Reference Manual 10 18 Math Instructions ...
Page 212: ...X8 Instruction Set Reference Manual 11 6 Converion Instructions ...
Page 218: ...X8 Instruction Set Reference Manual 12 6 Logical Instructions ...
Page 236: ...X8 Instruction Set Reference Manual 15 8 Shift and FIFO LIFO Instructions ...
Page 242: ...X8 Instruction Set Reference Manual 16 6 Sequencing Instructions ...
Page 252: ...X8 Instruction Set Reference Manual 18 4 Input and Output Instructions ...
Page 280: ...X8 Instruction Set Reference Manual 20 12 PID Control ...
Page 296: ...X8 Instruction Set Reference Manual 21 16 ASCII Instructions ...
Page 308: ...X8 Instruction Set Reference Manual 22 12 Communications Instructions ...
Page 312: ...Appendix A 4 System Error Code ...
Page 313: ...Appendix B MSG Instruction Error Code MSG Instruction Error Code ...
Page 322: ...Appendix B 10 MSG Instruction Error Code ...
Page 325: ...ASCII Character Set Appendix C 3 ...
Page 326: ...Publication number X8 RM001A EN September 2012 ...
Page 327: ...Copyright 2012 RS Automation Co Ltd All rights reserved ...