65
2) Add a MSG instruction to the main program.
a)
Double click “MainRoutine” under Tasks
…MainTask …MainProgram in the
controller organizer view.
b)
Right click on the first ladder logic rung in
the MainRoutine window and select “Add
Ladder Element...”
c)
The “Add Ladder Element” window
appears.
d)
Select the “MSG” instruction in the
Input/Output folder. Refer to Figure 58.
e)
Click OK.
3) Add an XIO element to the main program.
a)
Right click on the ladder logic rung
containing the MSG instruction in the
MainRoutine window and select “Add
Ladder Element...” again.
b)
The “Add Ladder Element” window appears.
c)
Select the “XIO” element in the Bit folder. Refer to Figure 59.
Figure 59: Adding an XIO Element
d)
Click OK.
4) Configure the MSG instruction.
a)
Edit the “Message Control” field on the MSG instruction to use the previously-created
“connection” tag. Refer to Figure 60.
Figure 60: MSG Instruction Tag Assignment
Figure 58: Adding a MSG Instruction