SmartAXIS Touch User's Manual 27-13
2 Word Devices
27
Internal Devices
■ Special Data Register (D)
This is a word unit device used for storing numerical data internally in the Touch. Each data register is assigned a
special function. It can also be used as a bit unit device.
Although the device code for the data registers (D0000 to D1999) and special data registers (D8000 to
D8199) is the same ("D"), the device characteristics are different. Special functions are assigned to each
special data register.
Do not change the data of reserved area, otherwise the Touch may not operate correctly.
Device
Address
Description Updated
Ladder
FBD
D8000
Quantity of Inputs
The total of input points provided on the Touch is stored to D8000.
When I/O
initialized
YES YES
D8001
Quantity of Outputs
The total of output points provided on the Touch is stored to D8001.
When I/O
initialized
YES YES
D8002
CPU Module Type Information
Information about the Touch is stored to D8002.
0: SmartAXIS Pro/Lite 12-I/O type
1: SmartAXIS Pro/Lite 24-I/O type
2: SmartAXIS Pro/Lite 40-I/O type
3: SmartAXIS Pro/Lite 48-I/O type
4: SmartAXIS Touch
Power-up YES YES
D8003,
8004
Reserved
D8005
General Error Code
SmartAXIS general error information is stored to D8005. When a general error
occurs, the bit corresponding to the error occurred turns on.
The general error and the program execution error can be cleared by writing “1”
to the most significant bit of D8005 using a ladder program or FBD program.
For details, refer to Chapter 30 “2.1 General Error Codes” on page 30-3.
When error
occurred
YES YES
D8006
Program Execution Error Code
The ladder program or FBD program execution error information is stored to
D8006. When a program execution error occurs, the error code corresponding to
the error occurred is stored to D8006.
For details, refer to Chapter 30 “2.2 Program Execution Error” on page 30-5.
When error
occurred
YES YES
D8007
Reserved
D8008
Calendar/Clock Current Data (Read only)
Used to read calendar and clock data from the internal clock.
Year
Every 500 msec
YES YES
D8009 Month
Every 500 msec
YES YES
D8010 Day
Every 500 msec
YES YES
D8011
Day of
Week
Every 500 msec
YES YES
D8012 Hour
Every 500 msec
YES YES
D8013 Minute
Every 500 msec
YES YES
D8014 Second
Every 500 msec
YES YES
D8015
Calendar/Clock New Data (Write only)
Used to write calendar and clock data to the internal clock.
Year YES YES
D8016 Month YES YES
D8017 Day YES YES
D8018
Day of
Week
YES YES
D8019 Hour YES YES
D8020 Minute YES YES
D8021 Second YES YES