Example slc ladder logic program, Example slc ladder logic program -3 – Rockwell Automation 1329I DeviceNet Option FRN 1.XXX User Manual

Page 41

Advertising
background image

Using I/O Messaging

5-3

Example SLC Ladder Logic
Program

The example program in

Figure 5.2

runs the 1329I unit in the forward and

reverse direction. It also provides a speed reference. Note that the scanner
must be in Slot 2 of the SLC 500 rack for this example.

Figure 5.2 Example SLC Ladder Logic Program

0000

Enable the 1747-SDN Scanner.

This rung clears a fault if the 1329I unit is faulted.

Bul 1329I Faulted Bit

I

:2

1747-SDN Run Bit

0001

Bul 1329I Reset fault
Bit

1747-SDN

1747-SDN

1747-SDN

O:2

O:2

0

18

16

1747-SDN

1747-SDN

16

16

This rung starts the 1329I unit running forward when either it is not running or if it is at speed and running in reverse.

Bul 1329I Faulted Bit

Bul 1329I At Reference

Bul 1329I At Reference

Bul 1329I Net Control

Bul 1329I Net Ref

Bul 1329I Speed
Command

I

:2

0002

O:2

L

U

1747-SDN

19

Bul 1329I Running
Reverse

Bul 1329I Running
Reverse

Bul 1329I Running
Forward Bit

Bul 1329I Run
Forward Bit

I

:2

1747-SDN

18

I

:2

1747-SDN

17

Bul 1329I Run Reverse
Bit

Bul 1329I Run Reverse
Bit

Bul 1329I Run Forward
Bit

O:2

1747-SDN

23

I

:2

1747-SDN

19

I

:2

1747-SDN

1747-SDN

17

16

This rung sends a run reverse command to the 1329I unit when it is running forward and is at speed.

Bul 1329I Faulted Bit

I

:2

0003

O:2

L

U

1747-SDN

23

Bul 1329I Running
Forward Bit

I

:2

1747-SDN

18

I

:2

1747-SDN

16

O:2

1747-SDN

21

This rung sets the net reference and net control bits and sends a speed command of 1800 RPM.

0004

O:2

L

L

0005

END

1747-SDN

22

Mov

Move
Source

Dest

1800
1800<
O:2.2
1800<

O:2

Advertising