
Define an Add-On Instruction component Chapter 5
Rockwell Automation Publication 1756-RM084S-EN-P - March 2015 95
Attribute Description
DataType L5X only. Specify the datatype of the local tag.
Local tags can be atomic (SINT, INT, DINT, and REAL) and compound (for example, user-defined, add-on instruction
defined, array) data types. Local tags cannot be object backed data types (for example, MESSAGE, ALARM).
In L5K, the datatype is an element of the statement.
Dimensions L5X only. Specify the dimensions of the datatype.
In L5K, the dimensions are an element of the statement.
Radix
Specify decimal, hex, octal, binary, exponential, float, ASCII.
ExternalAccess
Specify the external access, outside of the controller, to the local tag. Specify Read/Write, Read Only, or None.
Max (optional) User specified maximum value for the local tag. Only valid for local tag with non-Boolean atomic datatype.
Min (optional) User specified minimum value for the local tag. Only valid for local tag with non-Boolean atomic datatype.
DefaultData L5K only. Specify a default value for the local tag.
In L5X, the parameter default data is an element of the L5X structure.
These examples are for protected (encoded) and unprotected (clear text) codes for
Add-On Instructions.
If the project contains high-integrity Add-On Instructions, those Add-On
Instructions always appear as encoded data components when you export
the project.
See Export Source-protected Logic on page 30 for procedures.
L5X EncodedData Structure
<EncodedData EncodedType= "type", Name="name", Type="routinetype"
[,other_attributes]>
<Description>
<![CDATA[ text ]] >
</Description>
encoded_data
</EncodedData>
L5K ENCODED_DATA Structure
ENCODED_DATA [( EncodedType: type, Name:= name,
Type:= routinetype,
other_attributes)]
encoded_data
END_ENCODED_DATA
Encoded/Unencoded
Add-On Instructions