beautypg.com

Plc ladder logic example – Rockwell Automation 2100-GK61 DeviceNet to SCANport User Manual

Page 194

background image

Publication 2100-DU021B-EN-P - January 2004

Ladder Logic Programming—Including Reading Inputs 5-9

PLC Ladder Logic Example

The following example uses a PLC-5, a 1771-SDN DeviceNet scanner, and a
2100-GK61 to control a 1305, 1336 PLUS, or 1336 PLUS II drive.

The example program shows how to obtain status information from the drive
and how to control it (e.g., starting the drive, stopping the drive, jogging the
drive, sending reference, and clearing faults). When you understand this
example, you should be able to customize the program to fit your application
needs.

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

IMPORTANT: You may want to verify a device has not failed using word
0 of block transfer 62 before sending control data. If a device has failed, use
block transfer 52 to find out which device failed. Refer to the 1771-SDN
DeviceNet Scanner Module Manual
, Publication 1771-5.14, for more
information.

Figure 5.4 Example PLC Ladder Logic Program