Command REF = (reference assignment)
Symbol:
Function: The command assigns a reference to an "Output" element.
Call: Menu CFC > Set/Reset, context menu > Set/Reset
Requirements: A CFC editor is active. The input of an Output element is selected.
Example:
Declaration:
refInt : REFERENCE TO INT;
nVar1 : INT;
CFC:
This corresponds to the ST code
refInt REF= nVar1;
Further information can be found in the description of the REFERENCE TO data type.
See also:
- PLC documentation: Continuous Function Chart (CFC)
- PLC documentation: CFC Editor
- PLC documentation: Reference