CONNECTION BLOCK REFERENCE VARIABLE Declaration

<connection block reference variable declaration>

  ┌◄──────────────── . ────────────────┐
──┴─<connection block type identifier>─┴─ REFERENCE ──<identifier>─────┤

A CONNECTION BLOCK REFERENCE VARIABLE declaration declares a connection reference variable with the type of the connection block type identifier. A CONNECTION BLOCK REFERENCE ASSIGNMENT statement can then be used to assign an instance of the connection block of the declared type to this variable.

A reference to an embedded connection block is allowed by the following syntax:

outerSBtype.embeddedCBtype REFERENCE <id>

<connection block reference variable>

An identifier that is associated with a connection block reference in a CONNECTION BLOCK REFERENCE VARIABLE declaration.

The following example shows the declaration of a connection block reference variable:

TYPE STRUCTURE BLOCK SB;
  BEGIN
  TYPE CONNECTION BLOCK CBINNER;
    BEGIN
    REAL X;
     .
     .
    END;
  CBINNER LIBRARY CLINNER(CONNECTIONS = 8);
  END;
SB SBVAR;
SB.CBINNER REFERENCE CBINNER_REF;
CBINNER_REF:= SBVAR.CLINNER [5];