Example plc ladder logic program -8, Example plc ladder logic program – Rockwell Automation 1336-GM1 Remote I/O Communications Module User Manual

Page 46

Advertising
background image

4–8

Creating Ladder Logic Programs

Example PLC Ladder Logic
Program

Refer to page 4–5 for the settings of the module and the 1336 PLUS
drive used for this example.

Figure 4.3

Example Ladder Logic Program for a PLC

0000

I:000

0

Machine

START

Pushbutton

O:020

1

Drive

START

Command

0001

I:000

1

Machine

STOP

Pushbutton

O:020

0

Drive

STOP

Command

I:020

1

Drive

Running

Status Bit

O:020

0

Drive

STOP

Command

0002

MOV

Move

Source

N7:0

16000<

Dest

O:021

16000<

MOV

Drive Frequency

Command

0003

I:000

2

Machine

JOG

Pushbutton

O:020

2

Drive

JOG

Command

0004

I:000

3

Machine

Clear Faults

Pushbutton

O:020

3

Drive

Clear Faults

Command

0005

I:020

1

Drive

Running

Status Bit

O:000

0

Machine

Running

Indicator

0006

I:020

7

Drive

Faulted

Status Bit

O:000

1

Machine

Faulted

Indicator

0007

MOV

Move

Source

N7:1

500<

Dest

O:022

500<

MOV

Drive Data In A1

(Data to Drive)

0008

END

Advertising