Rockwell Automation 1336T ControlNet Frn1.02 Rev 1.5 User Manual
Page 47

4–5
Using Unscheduled Messaging
Publication 1336 FORCE–5.18 ––March, 1999
The following examples show two rungs from a sample program for
a PLC 5/40C15.
Rung 2:2
This rung will read parameters 100-109 when bit B3/0 is toggled from zero to one. The parameter information is stored in N20: 0-9
in the PLC. The drive ControlNet address is 15.
Message Block Contents
This PLC–5
(EN)
(DN)
(ER)
0
Enable Message
Command to Drive 15
B3:0
Drive 15 Parameter
Read
MSG
Read/Write Message
Control MG9:0
: PLC–5 Typed Read
: N20:0
: 10
: 2
Communication Command
Data Table Address
Size in Elements
Port Number
: N10:100
: 15
Data Table Address
ControlNet Path
Target Device
0002
Setup Screen
MSG MG9:0
X
This PLC–5
Communication Command:
Data Table Address:
Size in Elements:
Port Number:
PLC–5 Typed Read
N20:0
10
2
Target Device
Data Table Address:
ControlNet Path:
N10:100
15
Control Bits
Ignore if timed out (TO):
To be retired(NR):
0
0
Awaiting Execution(EW):
0
0
0
Continuous Run(EW):
Error(ER):
0
Message done(DN):
0
Message enabled(EN):
Enable
Error Code (Hex): 0
Example 1