Slc ladder logic example, Slc ladder logic example -11 – Rockwell Automation 160PD1 160 Profibus Communication Module User Manual

Page 37

Advertising
background image

Using the 160-PD1 on Profibus

6–11

SLC Ladder Logic Example

Profibus scanners vary from manufacturer to manufacturer, in how the
bytes are ordered in a word. The SST-PFB-SLC scanner card receives
/ transmit data with the Most Significant Byte (MSB) first and the
Least Significant Byte (LSB) second. This is opposite to how we read
/ write information in the SLC. This section of program below
reverses the high / low byte order using the SWP instruction.

Figure 6.1
SLC Ladder Logic Example.

SLC

Ladder diagram continued on next page

Advertising