beautypg.com

Rockwell Automation Logix5000 Controllers I/O and Tag Data Programming Manual User Manual

Page 20

background image

Chapter 1

Communicate with I/O modules

The drill routine executes the logic for the drill machine.

The map_outputs routine copies the values of output tags in the drill routine to their corresponding output devices.

The following example uses the CPS instruction to copy an array of data that

represent the input devices of a DeviceNet network.

Example:

Buffer I/O using CPS instruction

Local:0:I.Data stores the input data for the DeviceNet network that is connected to the 1756-DNB module in slot 0. To synchronize the inputs with the application,

the CPS instruction copies the input data to input_buffer.

− While the CPS instruction copies the data, no I/O updates can change the data.

As the application executes, it uses the input data in input_buffer for its inputs.

20

Rockwell Automation Publication 1756-PM004E-EN-P - October 2014