Controlćcoprocessor message functions – Rockwell Automation 1771-DMC_DMC1_DMC4_DXPS Control Coprocessor User Manual User Manual
Page 68
Chapter 5
Developing Programs
5-8
Figure 5.1
MSG Instruction DataĆEntry Screen (MG Control Block)
MESSAGE INSTRUCTION DATA ENTRY FOR CONTROL BLOCK MG10:10
Communication Command PLC-3 Word Range Write
PLC-5 Data Table Address: N7:3
Size in Elements: 1
Local/Remote: LOCAL
Remote Station: N/A
Link ID: N/A
Remote Link Type: N/A
Local Node Address: 00
Destination Data Table Address: “30”
Port Number 3A
BLOCK SIZE IS 56
Press a key to change a parameter or
Program Forces:None Edits:None PLC-5/40 File DRILL1
Read/ PLC-5 Size in Local/ Remote Link Remote Local Destin Port
Write Address Elemnts Remote Station ID Link Node Address Number
F1 F2 F3 F4 F5 F6 F7 F8 F9 F10
Sample PLC-5 Ladder-Logic Program
Use the following sample ladder-logic program as a guide when you
prepare programs for your application. This example triggers or initiates a
message instruction every 10 seconds.
Figure 5.2
Example LadderĆLogic Program for PLCĆ5 Programmable Controller
EN
TON
TIMER ON DELAY
TIMER
TIME BASE
PRESET
T4:0
1.0
10
DN
T4:0
DN
ACCUM
0
EN
MSG
SEND/REC MESSAGE
CONTROL BLOCK MG10:0
DN
ER
DN
T4:0
ControlĆCoprocessor Message Functions
The control coprocessor has message (MSG) functions that process
unsolicited messages from the PLC-5 programmable controller.
The control coprocessor supports both synchronous and asynchronous
message functions.