Plc-5 controller example, Plc-5 controller example -15, Using discrete and block transfer i/o 4-15 – Rockwell Automation 20-COMM-R Remote I/O Adapter User Manual

Page 51

Advertising
background image

Using Discrete and Block Transfer I/O

4-15

20-COMM-R Remote I/O Adapter User Manual

Publication 20COMM-UM004D-EN-P

PLC-5 Controller Example

Figure 4.9 PLC-5 Example Ladder Logic for Main Routine

This rung handles the logic needed to stop the drive upon the user's command. As shown, the user STOP input must be a normally closed pushbutton.

If the drive is running, pressing the STOP button will seal the stop command bit until the drive comes to a complete stop.

0000

N7:0

0

User

STOP

Input

I:011

1

Drive

RUNNING

Status

O:011

0

Drive

STOP

Command

O:011

0

Drive

STOP

Command

This rung allows the user to start the drive. Note that the drive may not start if the user briefly taps the button.

0001

N7:0

1

User

START

Input

O:011

1

Drive

START

Command

This rung allows the user to Jog the drive.

0002

N7:0

2

User

JOG

Input

O:011

2

Drive

JOG

Command

This rung allows the user to clear any faults present in the drive.

0003

N7:0

3

User

CLEAR FAULTS

Input

O:011

3

Drive

CLEAR FAULTS

Command

This rung moves the Reference from the User Operator Station to the Block Transfer Write file where it is moved to the drive by Block Transfer.

0004

MOV

Move

Source

N7:1

10000<

Dest

N10:0

10000<

MOV

This rung moves the READY status bit from the drive to the user display.

0005

I:011

0

Drive

READY

Status

N7:10

0

User

DRIVE READY

Status

This rung moves the RUNNING status bit from the drive to the user display.

0006

I:011

1

Drive

RUNNING

Status

N7:10

1

User

DRIVE RUNNING

Status

This rung moves the AT SPEED status bit from the drive to the user display.

0007

I:011

10

Drive

AT SPEED

Status

N7:10

2

User

DRIVE AT SPEED

Status

This rung moves the drive Feedback word from the Block Transfer Read file to the User Operator Station.

0008

MOV

Move

Source

N11:0

0<

Dest

N7:11

0<

MOV

This rung executes the file containing the I/O Block Transfer logic. See Figure 4.10, PLC Block Transfer I/O Read/Write.

0009

JSR

Jump To Subroutine

Prog File Number

U:3

JSR

This rung executes the file containing the Messaging Block Transfer logic. See Figure 5.4, PLC Block Transfer Messaging.

0010

JSR

Jump To Subroutine

Prog File Number

U:5

JSR

0011

END

Advertising