236
ICC
11.8.3
SLC-5/05 Example: Read Database
This example program will show how to continuously read a block of database
addresses from the gateway with a single MSG instruction. Only one read
request is outstanding at any given time.
1) Run RSLogix 500, and
create a new configuration.
2) Create a control and a data
file.
a) Right click Data Files
and select New… The
“Create Data File” dialog
box appears (refer to
Figure 84).
b) To create a control file,
enter a file number (e.g.
20), set the type to
“Integer”, enter a
descriptive name (e.g.
“CONTROL”), and enter
a number of elements
(e.g. 100). Click OK to
create the file. The
control file is used to
store configuration information pertaining to the functionality of the MSG
instruction which will perform the data read.
c) Follow the same procedure to create a data file. This file will be used to
store the incoming data read from the gateway. Enter a file number
(e.g. 18), set the type to “Integer”, enter a descriptive name (e.g.
“DATA”), and enter a number of elements (e.g. 200). Refer to Figure
85. Click OK to create the file.
Figure 84: Creating a Control File