Initial value within the ST-editor is highlighted as faulty.
Symptom:
The →initial value for a variable within the ST-editor is highlighted as faulty.
Cause 1: You are using a →variable as initial value for another variable.
Var2 : REAL := Var1;
Solution 1: Correct the initial value so that a constant value is entered. Subsequently, the error highlighting and the message disappear.
Var2 : REAL := 34;
Interested in details? See the following article "Initialization of variables in ST"
Cause 2: The variable is an →in-/out variable and does not support an initial value.
FUNCTION_BLOCK Control
VAR_IN_OUT
InOut1 : INT := 25;
END_VAR
END_FUNCTION_BLOCK
Solution 2: Delete the initial value. Subsequently, the error highlighting and the message disappear.
FUNCTION_BLOCK Control
VAR_IN_OUT
InOut1 : INT;
END_VAR
END_FUNCTION_BLOCK
logi.cals recommends to install and use the most current versions of logi.CAD 3 and the runtime system so that the latest features and problem fixes according to the release notes are provided in the used version.
Did this article help you? Did you find the requested information in this user documentation?
If not, contact the support team of logi.cals. State your questions or suggestions to improve/enhance the user documentation as detailed as possible.