Allen-Bradley 1756-L61 ControlLogix 5561 Programming Manual page 23

Logix5000 series
Hide thumbs Also See for 1756-L61 ControlLogix 5561:
Table of Contents

Advertisement

Communicate with I/O Modules
Chapter 1
EXAMPLE
Buffer I/O
The main routine of the program executes the following subroutines in this sequence.
JSR
Jump to Subroutine
Routine name map_inputs
The map_inputs routine copies the values of input devices to their corresponding tags that are used in the drill routine.
_1791_8AC:I.Data[0].0
_1791_8AC:I.Data[0].4
The drill routine executes the logic for the drill machine.
drill[1].part_advance
/
drill[1].forward
drill[1].depth_limit
drill[1].retract
The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices.
drill[1].forward
drill[1].retract
This example copies inputs and outputs to the tags of a structure for a drill
machine.
JSR
Jump to Subroutine
Routine name drill
one_shots.0
drill[1].depth_limit
ONS
drill[1].home_limit
/
Rockwell Automation Publication 1756-PM004D-EN-P - September 2012
Jump to Subroutine
Routine name map_outputs
drill[1].depth_limit
drill[1].home_limit
/
_1791_8AC:O.Data[0].0
_1791_8AC:O.Data[0].1
JSR
drill[1].forward
drill[1].retract
42369
21

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents