Publication 1756-RM084F-EN-P - July 2002
Creating a Complete Import/Export File 3-11
Defining a TAG declaration for a non-alias tag
A tag declaration for a non-alias tag follows this structure:
<
tag_name
> : <
type[array_specification]> [Attributes][:= <initial_value
>]
[, <
tag_force_data
>];
Where:
There cannot be any whitespace between the type and array
definition. There must be a space between the tag name and the
colon and another space between that same colon and the type name.
This is because type names can contain a colon and without the space
it would be impossible to detect where the type name actually starts.
Item: Identifies:
tag_name
name of the tag
type
type of tag
atomic types: BOOL, SINT, INT, DINT, REAL
string types: STRING
predefined types: AXIS_CONSUMED, AXIS_SERVO, AXIS_SERVO_DRIVE, AXIS_VIRTUAL,
CAM, CAM_PROFILE, CONTROL, COUNTER, MESSAGE, MOTION_GROUP,
MOTION_INSTRUCTION, OUTPUT_CAM, OUTPUT_COMPENSATION, PID,
SERIAL_PORT_CONTROL, TIMER
function block types: unique type for each function block
sequential function chart: SFC_ACTION, SFC_STEP, SFC_STOP
array
dimensional boundaries for array tags
see page 3-12
Attributes
attributes of the tag
can also contain a description of the tag
separate each attribute with a comma (,)
see page 3-13
initial_value
initial value of the tag
see page 3-28
tag_forced_data
list of forced tag data
for an example, see page 3-30
Spare Allen-Bradley Parts