Tips for Using an Add-On Instruction

This table describes programming tips for you to reference when using Add-On Instructions.

TopicDescription
Instruction HelpUse the instruction help to determine how to use the instruction in your code.
Ladder RungsIn a ladder rung, consider if the instruction should be executed on a false rung condition. It may improve scan time to not execute it.
Data TypesA data type defined with the Add-On Instruction is used for the tag that provides context for the execution from your code. A tag must be defined of this Add-On Instructiondefined type on the call to the instruction.
Indexed TagYou can use an indirect array indexed tag for the Instruction instance. One drawback is that you cannot monitor the Add-On Instruction by using this as a data context.
Passing Data·Input and Output parameters are passed by value. ·InOut parameters are passed by reference.

0 comments :