Skip to main content

Command: REF= (Reference Assignment)

Symbol: cfc_icon_ref.png, Shortcut: Ctrl+M (to toggle between S, R, REF, and None)

Function: The command assigns a reference to an Output element.

Call: CFC → Set/Reset menu; context menu

Requirements: A CFC editor is active. The input of an Output element is selected.

Example 3. Example:

Declaration:

ref_int : REFERENCE TO INT;
a : INT;

CFC:

cfc_img_reference_example.png

This corresponds to the ST code: ref_int REF= a;



For more information, see: Data Type: REFERENCE TO