EasyManua.ls Logo

Allen-Bradley ControlLogix 1756 - TAG Guidelines; TAG Examples

Allen-Bradley ControlLogix 1756
173 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Publication 1756-RM084F-EN-P - July 2002
3-30 Creating a Complete Import/Export File
TAG guidelines
Keep these guidelines in mind when defining a tag:
Tags must be defined after devices (if there are no devices, then
after the data types) within the controller body.
Base tags and aliases can be defined out of order within a tag
block.
You cannot define a 2
nd
dimension without a 1
st
dimension or a
3
rd
dimension without a 2
nd
dimension.
The initial values must comply with the tag type and
dimensions.
Whitespace can not occur within the initial values or within the
type/dimension specifier.
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

Table of Contents

Related product manuals