Rockwell Automation 20-COMM-R Remote I/O Adapter User Manual
Page 49
Using Discrete and Block Transfer I/O
4-13
20-COMM-R Remote I/O Adapter User Manual
Publication 20COMM-UM004D-EN-P
Figure 4.7 ControlLogix Example I/O User Ladder Logic
Tag Name
Type
DriveLogicStatus
INT
DriveCommandStart
BOOL
DriveCommandStop
BOOL
DriveCommandJog
BOOL
DriveStatusActive
BOOL
DriveStatusFaulted
BOOL
DriveStatusAtSpeed
BOOL
DriveLogicCommand
INT
Read Active, Faulted, and At Speed drive status bits and place in respective tags.
1
0
DriveLogicStatus.1
DriveStatusActive
2
DriveLogicStatus.7
DriveStatusFaulted
3
DriveLogicStatus.10
DriveStatusAtSpeed
Transfer Start, Stop, Jog, and Clear command tags into drive's output image. Additional logic on the Stop rung causes the Stop command to be sent
continuously until the drive reports that it has stopped.
4
DriveCommandStart
DriveLogicCommand.1
Note that the user's STOP input tag is set up as a normally CLOSED pushbutton.
5
/
DriveCommandStop
DriveLogicStatus.1
DriveLogicCommand.0
DriveLogicCommand.0
6
DriveCommandJog
DriveLogicCommand.2
7
8
DriveCommandClearFault
DriveLogicCommand.3
(End)
Get the drive's Logic Status word.
Copy File
Source The20CommR:I.Data[1]
Dest
DriveLogicStatus
Length
1
COP
Send the desired Logic Command to the drive.
Copy File
Source
DriveLogicCommand
Dest The20CommR:O.Data[1]
Length
1
COP