A SERVICE OF

logo

Chapter 6 Define a tag component
132 Rockwell Automation Publication 1756-RM084S-EN-P - March 2015
Base tags and aliases can be defined out of order within a tag block.
You cannot define a second dimension without a first dimension or a third
dimension without a second dimension.
The initial values must comply with the tag type and dimensions.
Whitespace cannot occur within the initial values in L5K format or within
the type/dimension specifier.
L5X tag example
L5K TAG examples
TAG
bits : MySint := [0];
dest : INT (RADIX := Decimal) := 0;
overflow OF bits.MyBit0 (RADIX := Binary);
source : REAL (RADIX := Exponential) := 0.0;
timer : TIMER[3] := [[0,0,100],[0,10,100],[0,0,50]];
END_TAG
This example shows forced tag data.
TAG
dint_a : DINT (RADIX := Decimal) := 0;
int_a : INT (RADIX := Decimal) := 0;
tag_a : UDT_A (ProduceCount := 2) := [0,0],
TagForceData := [0,0,0,0,1,0,-1,-1,1,0,-72,34];
END_TAG
Examples