A SERVICE OF

logo

Chapter 5 Define an Add-On Instruction component
86 Rockwell Automation Publication 1756-RM084S-EN-P - March 2015
L5K ADD_ON_INSTRUCTION_DEFINITION structure
ADD_ON_INSTRUCTION_DEFINITION <name>
[(Description := "text", Attributes)]
[<HISTORY_ENTRY declaration>]
[<PARAMETERS declaration>]
[<LOCAL_TAGS declaration>]
[<add_on_instruction_routines]
[<scan_mode_routine>]
END_ADD_ON_INSTRUCTION_DEFINITION
Add-On Instruction elements
L5X Item L5K Item Description
N/A name In L5K, the name of the Add-On Instruction.
In L5X, use a Name attribute on the
<AddOnInstructionDefinition> element.
Description Description User information about the Add-On Instruction (128 characters
maximum).
SignatureHistory HISTORY_ENTRY Optional element for a sealed Add-On Instruction.
AdditionalHelpText N/A In L5K, use the AdditonalHelpText attribute.
For L5X, specify help text for the user help on the Add-On
Instruction.
Parameters PARAMETERS Parameters of the Add-On Instruction.
LocalTags LOCAL_TAGS Local tags of the Add-On Instruction.
Routines add_on_instruction_
routines
Logic that comprises the Add-On Instruction. Logic can be relay
ladder, function block, or structured text.
ScanModeRoutine SCAN_MODE_ROUTINE Optional element that has the logic for a Prescan routine,
Postscan routine, or EnableInFalse routine.
Routines in Add-On Instructions
Enter routines in an Add-On Instruction the same as logic routines. The logic in a
single routine must all be in the same programming language, but each routine can
be in a different programming language. Program the routines in ladder logic
(ROUTINE), function block (FBD_ROUTINE), or structured text
(ST_ROUTINE) languages. The Add-On Instruction has predefined routine
names that you must use and cannot change.
Routine Name Description
Logic Defines the logic for the Add-On Instruction.
At the minimum, every Add-On Instruction must have a Logic routine.