Expansion data registers – IDEC MicroSmart User Manual

Page 162

Advertising
background image

5: S

PECIAL

F

UNCTIONS

5-42

« FC4A M

ICRO

S

MART

U

SER

S

M

ANUAL

»

Expansion Data Registers

Slim type CPU modules FC4A-D20RK1, FC4A-D20RS1, FC4A-D40K3, and FC4A-D40S3 have expansion data registers
D2000 through D7999. These expansion data registers are normally used as ordinary data registers to store numerical data
while the CPU module is executing a user program. In addition, numerical data can be set to designated ranges of expan-
sion data registers using the expansion data register editor on

WindLDR

. When the user program is downloaded from

WindLDR

to the CPU module, the preset values of the expansion data registers are also downloaded to the EEPROM in the

CPU module. Each time the CPU is powered up, the preset values of the expansion data registers stored in the EEPROM
are loaded to the RAM and the user program in the RAM is executed.

Since the data in the EEPROM is non-volatile, the preset values of the expansion data registers are maintained semi-per-
manently and restored in the RAM each time the CPU is powered up. This feature is useful when particular numerical data
must not be lost. Furthermore, data register values can be easily entered in the form of either numbers or character strings
using the expansion data register editor on

WindLDR

.

Programming WindLDR

1. From the

WindLDR

menu bar, select Configure >

Expansion Data Register Settings.

The Expansion Data Register Settings dialog box
appears.

2. Click the check box to use the preset range 1 or 2.

Among expansion data registers D2000 through D7999, two ranges can be specified for preset data registers.

Use Preset Range 1 or 2:

Click the check box, and type the first data register number in the DR No. box and the quan-
tity of data registers to store preset values in the Quantity box.

Use Initializing Relay:

Click the check box and specify an internal relay number to use as an initializing relay. When
the initializing relay is turned on while the CPU is powered up, the preset values of the
expansion data registers in the EEPROM are loaded to the RAM.

Use Backup Relay:

Click the check box and specify an internal relay number to use as a backup relay. When the
backup relay is turned on while the CPU is powered up, the values of the preset expansion
data registers in the RAM over write the preset values in the EEPROM.

First Data Register No.

Edit Button

Go to the expansion data

register editor screen.

Quantity of Data Registers

Copy Range
Copy the data between User
Preset Ranges 1 and 2.

Advertising