The
command removes a or from an output element. Select the input pin of the respective output and execute the command. The or symbol at the output element will disappear.See possible cursor position for selection.
The
command assigns a to a boolean output element. This has the effect that the output will be reset by a TRUE of the input and keeps this value even if the input becomes FALSE again.Select the input pin of the respective output and execute the command.
The reset output will be indicated by
Example:
In this example, VarOut will be set to FALSE if VarIn delivers TRUE. VarOut retains this value, even when VarIn reverts to FALSE.
Alternatively, the
or commands can be used to define the properties of an output.The
command assigns a to a boolean output element. This has the effect that the output gets set by a TRUE of the input and keeps this value even if the input becomes FALSE again.Select the input pin of the respective output and execute the command.
See possible cursor position for selection.
Example:
In this example, VarOut will be set to TRUE if VarIn delivers a TRUE. VarOut retains this value even when VarIn changes back to FALSE.
Alternatively, the
or commands can be used to define the properties of an output.The
command assigns a reference to an output element.For general information on the concerned data type REFERENCE TO, which is available in the EcoStruxure Machine Expert programming system in extension to the IEC61131-3 standard, refer to References.
Select the input pin of the respective output (cursor position in CFC) and execute the command. The output then will be displayed with a REF modifier.
Example:
Declaration:
ref_int : REFERENCE TO INT;
a : INT;
CFC: ref_int now points to a
This corresponds to the ST code: ref_int REF= a;