Tips for using instances of Add-On Instructions

Programming tips for using Add-On Instruction instances include:
Programming tips for using Add-On Instruction instances
Item
Description
Ladder rungs
Specify if the instruction will execute on a false rung condition if executing the instruction improves scan time.
Data types
The tag that provides the context for executing the code uses a data type defined with the Add-On Instruction instance. Define a tag of this Add-On Instruction-defined type on the call to the instruction.
Indexed tag
Use an indirect array indexed tag for the Add-On Instruction instance. You cannot monitor the Add-On Instruction by using the indexed tag as a data context.
Passing data
  • Values pass Input and Output parameters.
  • References passĀ InOutĀ parameters.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.