Slc ladder logic program example, Figure 5.3 example slc ladder logic program – Rockwell Automation 1203-GK5 DeviceNet Communications Module FRN 1.xxx-3.xxx User Manual

Page 66

Advertising
background image

5-6

Creating a Ladder Logic Program

SLC Ladder Logic Program Example

In the following example, an SLC-5/03, 1747-SDN DeviceNet
scanner, and a 1203-GK5 module (or 1336-GM5 board) control a
1305, 1336 PLUS, or 1336 PLUS II drive.

The example assumes that there is an operator’s station wired to an
I/O module in slot one of module group zero of rack zero.

Important: You may want to verify a device has not failed using
word I:S.0. If a device has failed, read the appropriate M1 File to find
out which device failed. Refer to the 1747-SDN DeviceNet Scanner
Module Manual
, Publication 1747-5.8, for more information.

Figure 5.3
Example SLC Ladder Logic Program

The scanner gathers drive status information via DeviceNet.
The M-File is copied into the SLC’s N9 data file to move the drive status information into a convenient location.

0000

COP

Copy File
Source

#M1:1.0

Dest

#N9:0

Length

128

COP

Rungs 0001 through 0003 move the drive status from the N9 data file to an operator display.

0001

N9:0

1

1336PLUS
RUNNING
Status Bit

O:3.0

0

1746-O*8

Operator Display
Drive Running
Status Bit

0002

N9:0

7

1336PLUS
FAULTED
Status Bit

O:3.0

1

1746-O*8

Operator Display
Drive Faulted
Status Bit

0003

MOV

Move
Source

N9:2

0<

Dest

N21:1

0<

MOV

Operator Display
Drive Feedback
Status Word

Advertising
This manual is related to the following products: