228
ICC
Figure 75: MainRoutine
5) Assign a tag to the XIO element.
a) Double-click on the XIO element located to the left of the MSG block. In
the drop-down box, double-click on the “connection.EN” field. Refer to
Figure 76. 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.
Figure 76: Configure XIO Element
6) The program is now complete. Refer to Figure 77.
7) Save, download and run the program.
a) To view the values of the data being read from the gateway, double-click
“Controller Tags” in the controller organizer view.
b) Select the “Monitor Tags” tab.
c) Expand the data_array tag. Refer to Figure 78.