Viewing the Logic of an Add-On Instruction

Use this procedure to view Add-On Instruction logic.
To view the logic that an Add-On Instruction is using:
  1. Right-click the routine located below the instruction in the Controller Organizer pane or from an existing call to the instruction.
  2. Choose Open Instruction Logic.
If an Add-On Instruction is protected, you cannot view its logic.
To determine if an Add-On Instruction is protected:
  1. In the Controller Organizer pane, select the instruction in the Add-On Instructions folder.
  2. Look in the Quick View pane on the bottom of the Controller Organizer pane for the Source Protection field.
    If the field indicates Source Protection: Source not available, then the routine is locked.
    TIP:
    The contents are not shown in the Controller Organizer tree if it is locked.
    The Add-On Instruction remains as a leaf in the tree, like a routine, which indicates that it is locked.
TIP:
You can use the Data Context selector in the routine editor to select a specific instance of the Instruction. If the selector is set to <definition>, the logic can be edited. If the selector is set to any other context, the editor is in read-only mode.
What You Can and Cannot Do
You Can
You Cannot
  • See the logic as it executes
  • See tag values
  • Change tag and parameter values
  • Edit logic online.
  • Edit logic for just this tag value or instance. To edit the logic, you must edit the definition.
IMPORTANT:
You cannot edit logic online, when logic is in the context of an instruction call, or if the instruction is source-protected or sealed with an instruction signature.
A source-protected Add-On Instruction is either locked or read-only and cannot be edited. However, with a read-only instruction, you may view all associated logic, local tags and configuration.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.