74
Figure 74: PLC Program after MSG Instruction Configuration
6) Assign a tag to the XIO element.
a)
Double-click on the XIO element located to the left of the MSG block. Type in N20:0/15
(MSG instruction’s enable bit). This configuration causes the MSG instruction to
automatically retrigger itself when it completes. While this is acceptable for the purposes of
this example, it can produce high network utilization. In actual practice, it may be desirable to
incorporate additional logic elements to allow triggering the MSG instruction at a specific rate
or under specific conditions.
7) The program is now complete. Refer to Figure 75.
Figure 75: Completed PLC Program
8) Save, download, and run the program.
a)
To view the parameters being read from the interface card, double-click the data file N18
under “Data Files” in the controller organizer view. 21 parameter values starting at register
#258 are being continuously read from the interface card and placed in the 21 sequential
offsets of N18 starting at N18:1. Refer to Figure 76.