Skip to main content

SA0112: Reference variables

Detects variables of type REFERENCE TO

Justification: The IEC 61131-3 standard does not permit references.

Importance: Low

Example 97. Example
VAR
    ref_int : REFERENCE TO INT;
    ref_dw : REFERENCE TO DWORD;
END_VAR

Output in the Messages view:

  • sa_icon_message.png SA0112: Data type REFERENCE not allowed