Command REF = (reference assignment)

Symbol: Command REF = (reference assignment) 1:

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:

Command REF = (reference assignment) 2:

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: