
4-12 Using Discrete and Block Transfer I/O
20-COMM-R Remote I/O Adapter User Manual
Publication 20COMM-UM004D-EN-P
ControlLogix Controller
Example
Figure 4.5 ControlLogix Example Ladder Logic for Main Routine
Figure 4.6 ControlLogix Example Ladder Logic for Block Transfer I/O Read
See Figure 4.3 for the Block Transfer I/O image.
Tag Name Type
I/O BlockTransferRead MESSAGE
The20CommR:I AB:RIO_4IOGROUP:I:0
DriveLogicStatus INT
DriveBTInputImage INT[18]
DriveFeedback INT
DriveDatalinkA1Out INT
DriveDatalinkA2Out INT
Get the drive's logic status, feedback, and datalink outputs. See Figure 4.6 for ControlLogix Block Transfer I/O Read.
0
Jump To Subroutine
Routine Name BT_IO_Read
JSR
1
This subroutine contains the user's control logic. See Figure 4.7 for ControlLogix I/O User Logic.
2
Jump To Subroutine
Routine Name IO_UserLogic
JSR
3
Send the logic command, reference, and datalink inputs to the drive. See Figure 4.8 for ControlLogix Block Transfer I/O Write.
Jump To Subroutine
Routine Name BT_IO_Write
JSR
Perform messaging requests to the drive or peripherals. See Figure 5.3 for ControlLogix Block Transfer Messaging.
Jump To Subroutine
Routine Name BT_Messaging
JSR
(End)
Fetch the drive's Feedback and Datalink outputs and place in an array of 18 16-bit words.
0
/
IOBlockTransferRead.en
EN
DN
ER
Type - Block Transfer Read
Message Control IOBlockTransferRead
...
MSG
Read the drive's Feedback word and place in Feedback tag.
1
Copy File
Source DriveBTInputImage[0]
Dest DriveFeedback
Length 1
COP
Read Datalink A outputs from the drive and place in respective tags. Add similar rungs to use Datalinks B, C, and D.
2
Copy File
Source DriveBTInputImage[2]
Dest DriveDatalinkA1Out
Length 1
COP
3
Copy File
Source DriveBTInputImage[4]
Dest DriveDatalinkA2Out
Length 1
COP
(End)
Comentarios a estos manuales