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
Содержание X8 Series
Страница 1: ...Catalog Number s X8 M14DDT X8 M16DDR X8 M32DDT X8 Instruction Manual Reference Manual ...
Страница 16: ......
Страница 64: ...X8 Instruction Set Reference Manual 2 12 X8 Series PLC Memory and Data Table ...
Страница 134: ...X8 Instruction Set Reference Manual 5 38 Using the High Speed Counter and Programmable Limit Switch ...
Страница 166: ...X8 Instruction Set Reference Manual 7 8 Relay Type Bit Instructions ...
Страница 180: ...X8 Instruction Set Reference Manual 8 14 Timer and Counter Instructions ...
Страница 205: ...X8 Instruction Set Reference Manual Math Instructions 10 17 ...
Страница 206: ...X8 Instruction Set Reference Manual 10 18 Math Instructions ...
Страница 212: ...X8 Instruction Set Reference Manual 11 6 Converion Instructions ...
Страница 218: ...X8 Instruction Set Reference Manual 12 6 Logical Instructions ...
Страница 236: ...X8 Instruction Set Reference Manual 15 8 Shift and FIFO LIFO Instructions ...
Страница 242: ...X8 Instruction Set Reference Manual 16 6 Sequencing Instructions ...
Страница 252: ...X8 Instruction Set Reference Manual 18 4 Input and Output Instructions ...
Страница 280: ...X8 Instruction Set Reference Manual 20 12 PID Control ...
Страница 296: ...X8 Instruction Set Reference Manual 21 16 ASCII Instructions ...
Страница 308: ...X8 Instruction Set Reference Manual 22 12 Communications Instructions ...
Страница 312: ...Appendix A 4 System Error Code ...
Страница 313: ...Appendix B MSG Instruction Error Code MSG Instruction Error Code ...
Страница 322: ...Appendix B 10 MSG Instruction Error Code ...
Страница 325: ...ASCII Character Set Appendix C 3 ...
Страница 326: ...Publication number X8 RM001A EN September 2012 ...
Страница 327: ...Copyright 2012 RS Automation Co Ltd All rights reserved ...