Rockwell Automation 20-COMM-D DeviceNet Adapter Series B FRN 2.xxx User Manual

Page 119

Advertising
background image

Using the I/O

5-35

20-COMM-D DeviceNet Adapter User Manual

Publication 20COMM-UM002G-EN-P

Understanding SLC 500 Controller Data Table Addresses

Because the SLC 500 controller is a 16-bit platform and is used with the
32-bit 20-COMM-D adapter, the data will be transposed from the
least-significant word (LSW) to the most-significant word (MSW) in the
controller.

When the I/O was configured (

Chapter 4

), two available default memory

addresses (M1:1.x for input data and M0:1.x for output data) were used.
However, because memory addresses cannot be used to display real data,
COP instructions will be used in this example to convert these addresses to
N data table addresses. With this conversion, the M1:1.0 address will
become N9:0 and the M0:1.0 address will become N10:0.

Figure 5.18

shows an example ladder logic program to convert memory

addresses to N data table addresses.

Figure 5.18 SLC 500 Example Ladder Logic Program to Convert Memory Addresses

After the conversion,

Figure 5.19

shows the entire data file address structure

for this example.

TIP: In the ladder logic COP instructions, the number following the colon
in the #M1 and #M0 addresses is the slot number in which the scanner
resides. For example, if the 1747-SDN scanner is in slot 3, then the #M1
address becomes #M1:3.0 and the #M0 address becomes #M0:3.0.

Advertising