beautypg.com

Rockwell Automation DAG6.5.8 APPLICATION GUIDE SCADA SYSTEM User Manual

Page 395

background image

Publication AG-UM008C-EN-P - February 2005

Sample Ladder Logic E-13

If any values differ between the first five words of B3:0 and N7:0, copy B3:0-5 into N7:0-5, and trigger the MSG (which will write N7:0-5
to the Master).

0004

R6:0

FD

Comparison
Found Bit

COP

Copy File
Source

#B3:0

Dest

#N7:0

Length

6

COP

MSG Write Buffer

U

MG9:0

EN

MSG
Enable

"Report-by-exception" write instruction to the Master. This MSG block is configured to write 6 elements ( words) from this Slave's Source File
N7:0, out channel 0, to the Master's (Target Node Address 0) Target Destination File N7:10.

0005

LBL

Q2:1

Jump to
MSG Rung

EN

DN

ER

MSG

Read/Write Message
Control

MG9:0

Setup Screen

MSG

Write MSG to Master

0006

END