Rockwell Automation Logix5000 Controllers Messages Programming Manual User Manual

Page 20

Advertising
background image

Chapter 2 Manage multiple messages

Restart the sequence
If the MSGs in group 2 (last group) are currently enabled (Msg_Group.2 = 1)
and Msg_4 is in the state of done or error
and Msg_5 is in the state of done or error
then restart the sequence of MSGs with the first group:

Msg_Group.2 = 0. This disables the last group of MSGs.
Msg_Group.0 = 1. This enables the first group of MSGs.

Send the first group of MSGs
If Msg_Group.0 changes from 0 -> 1 then
send Msg_0.
send Msg_1.
Because a MSG instruction is a transitional instruction, it executes only when its rung-condition-in changes
from false to true.

Enable the second group of MSGs
If the MSGs in group 0 are currently enabled (Msg_Group.0 = 1)
and Msg_0 is in the state of done or error
and Msg_1 is in the state of done or error
then:

Msg_Group.0 = 0. This disables the current group of MSGs.
Msg_Group.1 = 1. This enables the next group of MSGs.

20

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

Advertising