The VAR_INPUT CONSTANT variables in its declaration.
command is available when, in the CFC editor, a POU box is selected which has constant input parameters, more specifically which is an instance of a function block containingFUNCTION_BLOCK FB1
VAR_INPUT CONSTANT
{attribute 'parameterCategory':='General'}
{attribute 'parameterUnit':= 'm/s'}
{attribute 'parameterMinValue':= '0'}
{attribute 'parameterMaxValue':= '100'}
fbin1:INT;
fbin2:DWORD:=24354333;
fbin3:STRING:='abc';END_VAR
In CFC, you can identify POUs with constant inputs by a
box in the bottom left corner of the element. Click this box or execute the command to open the dialog box .The
dialog box contains the following parameters:
Parameter |
Description |
---|---|
|
The name of the variable. |
|
The data type of the variable. |
|
The current value of the variable. |
|
The initialization value of the variable. |
|
These fields provide additional information about the parameters. The values are defined by attributes and cannot be changed in this dialog box
|
|
|
|
|
|
The command command).
is available when you write a prepared value (refer to theTo edit the values, select the respective cell in the
column, and click a second time or press the key to open an edit field. Enter the value. After you have left the field and closed the dialog box with , the modified value is applied in the project.If you edit parameters in offline mode and the values of constants on the controller differ from the values in your application, then this is indicated by a red asterisk next to the parameter field. To save the values of the controller to your application, refer to the command.