E-19 – Rockwell Automation DAG6.5.8 APPLICATION GUIDE SCADA SYSTEM User Manual

Page 401

Advertising
background image

Publication AG-UM008C-EN-P - February 2005

Sample Ladder Logic E-19

Logix DF1 Half-Duplex Master Message-based Mode, Master-Initiated MSG

Logix5550 DF1 Half-Duplex Master - Message-Based Mode, Master-initiated MSG

Each MSG is assigned a "Finished" bit and a "Disable" bit. Up to 12 MSG's are triggered simultaneously, but cannot be retrigge

red until all enabled MSG's have completed either done or in

error. After all enabled MSG's have completed, a time delay is inserted before retriggering. If no time delay is desired (ret

riggering the MSG's as fast as possible), then set the

MSG_Delay_Timer preset to zero. This example has 21 messages. You must delete or add "MSG_Finished" bits and "Disable_MSG" bi

ts to match the number of messages in you

application.

0

MSG_Finished[1]

Disable_MSG[1]

MSG_Finished[2]

Disable_MSG[2]

MSG_Finished[3]

Disable_MSG[3]

MSG_Finished[4]

Disable_MSG[4]

MSG_Finished[5]

Disable_MSG[5]

MSG_Finished[6]

Disable_MSG[6]

MSG_Finished[7]

Disable_MSG[7]

MSG_Finished[8]

Disable_MSG[8]

MSG_Finished[9]

Disable_MSG[9]

MSG_Finished[10]

Disable_MSG[10]

MSG_Finished[11]

Disable_MSG[11]

MSG_Finished[12]

Disable_MSG[12]

/

MSG_Delay_Timer.DN

/

MSG_Finished[0]

MSG_13_to_24_Trigger

MSG_Finished[0]

Logix5550 DF1 Half-Duplex Master - Message-Based Mode, Master-initiated MSG

Each MSG is assigned a "Finished" bit and a "Disable" bit. Up to 12 MSG's are triggered simultaneously, but cannot be retriggered until all enabled MSG's have completed either done or in
error. After all enabled MSG's have completed, a time delay is inserted before retriggering. If no time delay is desired (retriggering the MSG's as fast as possible), then set the
MSG_Delay_Timer preset to zero. This example has 21 messages. You must delete or add "MSG_Finished" bits and "Disable_MSG" bits to match the number of messages in your application.

1

MSG_Finished[0]

MSG_Finished[13]

Disable_MSG[13]

MSG_Finished[14]

Disable_MSG[14]

MSG_Finished[15]

Disable_MSG[15]

MSG_Finished[16]

Disable_MSG[16]

MSG_Finished[17]

Disable_MSG[17]

MSG_Finished[18]

Disable_MSG[18]

MSG_Finished[19]

Disable_MSG[19]

MSG_Finished[20]

Disable_MSG[20]

MSG_Finished[21]

Disable_MSG[21]

EN
DN

Timer On Delay
Timer

MSG_Delay_Timer

Preset

10000

Accum

0

TON

The following two rungs are the MSG control rungs - they should be replicated for further messages. For MSG #13-24, replace XIC 'MSG_Delay_Timer.DN' with XIC 'MSG_13_to_24_Trigger'.

2

/

Disable_MSG[1]

EN
DN
ER

Type - PLC5 Typed Read
Message Control

Message1 ...

MSG

MSG to Slave #1

3

MSG to Slave #1

Message1.EN

MSG to Slave #1

Message1.DN

MSG to Slave #1

Message1.ER

MSG_Finished[1]

MSG_Delay_Timer.DN

U

MSG to Slave #1

Message1.EN

4

/

Disable_MSG[2]

EN
DN
ER

Type - PLC5 Typed Read
Message Control

Message2 ...

MSG

MSG to Slave #2

5

MSG to Slave #2

Message2.EN

MSG to Slave #2

Message2.DN

MSG to Slave #2

Message2.ER

MSG_Finished[2]

MSG_Delay_Timer.DN

U

MSG to Slave #2

Message2.EN

Advertising