Instruction Properties Dialog - Parameters Tab Overview
Use the
Instruction Properties
Dialog box for Add-On Instructions to:- Set and monitor parameter values.
- View a listing of all of the parameters associated with the selected Add-On Instruction.
- Configure what parameter pins appear on the block for the Add-On Instruction in the Function Block Diagram.
The dialog box is also available in Ladder Diagram, Structured Text, and Function Block Diagram.
Attributes
The attributes on the
Parameters
tab are:Attribute | Description |
---|---|
Input/Output Row Header | An I at the start of a row indicates an Input parameter; an O indicates an Output parameter; and IO indicates an InOut parameter. An asterisk appears in this column to indicate that changes have been made to a parameter that have not yet been applied. |
Vis | Set whether an Input or Output parameter is visible on the face of the Function Block Diagram and, thereby, overriding the Add-On Instruction Definition’s Visibility configuration. Note the following conditions:
|
Name | Parameters are shown, by default, in the same order they are defined in the Add-On Instruction Definition. InOut parameters that are structures or arrays can be expanded to display their members. This field is read-only. Tip: You can quickly expand and collapse all members by pressing Ctrl and +. This toggles the expand and collapse state of the tag. |
Value | Monitor and edit the values for Input, Output, and InOut parameters. The column is labeled Default and contains the default values when launched from within an Add-On Instruction and its Add-On Instruction’s data context is set to <definition>. The field contains Default when the dialog box is launched from within an Add-On Instruction and that Add-On Instruction’s data context is set to <definition>. Note the following conditions.
|
Argument | The Argument column displays the argument (if any) passed to the parameter. This field is read-only.
|
Data Type | Displays the Parameters data type. This field is read-only. |
Description | Displays the Parameters description. This field is read-only. |
Sort Parameters | Select this box to temporarily sort the parameters alphabetically. You can sort the Name, Data Type and Description columns by choosing Sort from the Column Header popup menu. You can also do this by double-clicking on the column header cell, to alternate between ascending and descending. The box is unchecked, by default. |
Include Tag Members in Sorting | When the Sort Parameter box is checked, you can include the tag members in your sort by choosing Include Tag Members in Sorting from the Column Header popup menu. You can also click the Tag Member Sort button () to toggle between including and excluding tag members in the sort. When you are excluding the tag members in the sort, the tag members are sorted in memory layout order.Tip: The Sort Parameter box must be checked to sort parameters and tag members.Important: The tag member sort does not apply to bit members of DINT, INT, SINT, and Array tags. These tag members are always displayed in memory layout order. |
Insert Instruction Defaults | Click this button to retrieve the saved instruction values and visibility settings for this type of instruction and insert them in this dialog box and the associated instance tag. If any of the defaults are read-only, they are not overwritten by the saved defaults. This button is unavailable when this dialog box is launched from within an Add-On Instruction and the following conditions exist:
|
Insert Definition Defaults | Click on this button to reset the visibility settings and default values to those defined by the Add-On Instruction Definition. If any of the defaults are read-only, they are not overwritten by the saved defaults. This button is unavailable when this dialog box is launched from within an Add-On Instruction and the following conditions exist:
|
Save Instruction Defaults | Click on this button to save the current instruction values and visibility settings as the defaults for this type of instruction. Read-only values are also stored. This does not change the Default values in the Add-On Instruction Definition. |
Execution Order Number | For Add-On Instruction calls in the Function Block Diagram, an execution order number is assigned. This execution order number also displays on the Function Block Diagram Instruction Properties dialog box. If the routine has not been verified, the execution order number does not display. |
Never Display Description in a Routine | Check if you do not want the description to display for Add-On Instruction calls in the Function Block Diagram. |
Provide Feedback