12.07.2015 Views

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

Logix5000 Controllers General Instructions - SLAC Confluence

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

362 Array (File)/Misc. <strong>Instructions</strong> (FAL, FSC, COP, CPS, FLL, AVE, SRT, STD, SIZE)Example 3:The project_data array (100 elements) stores a variety of values thatchange at different times in the application. To send a complete imageof project_data at one instance in time to another controller, the CPSinstruction copies project_data to produced_array.• While the CPS instruction copies the data, no I/O updates orother tasks can change the data.• The produced_array tag produces the data on a ControlNetnetwork for consumption by other controllers.• To use the same image of data (that is, a synchronized copy ofthe data), the consuming controller (s) uses a CPS instruction tocopy the data from the consumed tag to another tag for use inthe application.Relay LadderStructured TextCPS(project_data[0],produced_array[0],100);Example 4:Local:0:I.Data stores the input data for the DeviceNet network that isconnected to the 1756-DNB module in slot 0. To synchronize theinputs with the application, the CPS instruction copies the input datato input_buffer.• While the CPS instruction copies the data, no I/O updates canchange the data.• As the application executes, it uses for its inputs the input datain input_buffer.Relay LadderStructured TextCPS(Local:0:I.Data[0],input_buffer[0],20);Publication 1756-RM003I-EN-P - January 2007

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!