Instruction block parameters
This section introduces the parameters of an instruction block.
Parameter | Description | |
---|---|---|
Name | Identifies the parameter. Naming conventions are as follows:
| |
Alias | Displays the short name used in the graphical language editors. The name can contain no more than 40 characters. | |
Data Type | Displays the data type of the parameter, including:
| |
Direction | Indicates the direction of the parameter:
| |
Dimension | Displays the array dimension of the parameter. The dimension is defined as a positive double integer (DINT) value. The recommended maximum size limit for a multi-dimensional array is [1..400,1..40]. Examples:
| |
Comment | Displays the comment for the parameter. The comment is free-format text. | |
Initial Value | Displays the value of a variable when the controller starts execution for the first time. For example, after a program download.
If the value is not retained, the initial value is the value of a variable after a controller power cycle. The initial value can be the default value or the value that is defined by the user when creating the variable. It uses the syntax corresponding to the Data Type . | |
Value (Online) | Displays the variable value that differs depending on the variable direction. The value is available when monitoring the runtime downloads. Values are:
| |
Value (Offline) | Displays the variable value that differs depending on the variable direction. The value is available when monitoring the runtime downloads. Values are:
| |
Force | Indicates whether the parameter value is forced. Forcing operates differently for simple variables and function block parameters:
| |
Attribute | Indicates the read and write access rights of the parameter:
| |
String Size | Indicates the length of the string variable. String Size is available for the STRING data type. |
Provide Feedback