Rockwell Automation Logix5000 Controllers Messages Programming Manual User Manual

Page 18

Advertising
background image

Chapter 1 Controller messages

Example: Write integer values to a PLC-5 controller

If Condition_2 = 1

then reset the FAL instruction.
The FAL instruction sets INT_Buffer = DINT_Array. This converts the values to 16-bit integers (INTs).

If Control_2.DN = 1 (FAL instruction has converted the DINTs to INTs)
and Msg_2.EN = 0 (MSG instruction is not enabled)

then write the integers in INT_Buffer (3 INTs) to the PLC-5 controller.

18

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

Advertising