PreviousNext

Add Controller Tags

Now that we have defined the data types we will need, we can add Controller Tags that will be placeholders to contain the data. Right click on Controller Tags in the tree and select Edit Tags.

Add a tag named Match_String of type HE1600T_String to hold our output match string. Also, add a tag named Results of type Input_Assembly to hold the results coming from the camera.

In addition, we can create aliases that map to the Ethernet/IP memory locations for better readability of the program. For this example, we will use the alias IO_Out as an alias for the first DINT of the output assembly and User_Tag_Out for the second DINT. The aliases User_Data_In and User_Data_Out will correspond to the fifth DINT of the respective input and output assemblies. The resulting set of controller tags will look as shown in Figure F-30):

FIGURE F-30. 

In this example, we have a single constant match string, so we will pre-define the match string contents in the controller tag. Right click on Controller Tags and select Monitor Tags and fill in the Value of the Match_String tag. In this example the string should read `Hello World on 9/9/08'.

FIGURE F-31. 


PreviousNext