What is an element?

Each element (interface data or internal data) is defined by:

  • a name (maximum 32 characters), defined by the user,

  • a type,

    which can belong to the following families:

    • Elementary Data Types (EDT),

    • Derived Data Type (DDT),

    • Device Derived Data Type (Device DDT)

    • Function Block data types (EFB\DFB).

  • an optional comment (maximum 1024 characters). The authorized characters correspond to the ASCII codes 32 to 255,

  • an initial value,

  • an access right from the application program (sections of the application or section belonging to the DFBs see "Definition of the function block type (interface and internal variables)",

  • an access right from communication requests,

  • a public variables backup flag.

Authorized Data Types for an Element Belonging to a DFB

The authorized data types are:

Element of the DFB

EDT types

DDT types

ANY...

Function block types

   

IODDT

Unnamed tables

ANY_ARRAY

other

   

Input data

Yes

No

Yes

Yes

Yes

Yes (2)

No

Input/output data

Yes (1)

Yes

Yes

Yes

Yes

Yes (2)

No

Output data

Yes

No

Yes

No

Yes

Yes (2) (3)

No

Public data

Yes

No

Yes

No

Yes

No

No

Private data

Yes

No

Yes

No

Yes

No

Yes

(1): not authorized for the EBOOL type static data used on Quantum PLCs

(2): not authorized for BOOL and EBOOL type data

(3): must be completed during the execution of the DFB, and not usable outside the DFB

Authorized Data Types for an Element Belonging to an EFB

The authorized data types are:

Element of the EFB

EDT types

DDT types

ANY...

Function block types

   

IODDT

Unnamed tables

ANY_ARRAY

other

   

Input data

Yes

No

No

Yes

Yes

Yes (1)

No

Input/output data

Yes

Yes

No

Yes

Yes

Yes (1)

No

Output data

Yes

No

No

No

Yes

Yes (1) (2)

No

Public data

Yes

No

No

No

Yes

No

No

Private data

Yes

No

No

No

Yes

No

Yes

(1): not authorized for BOOL and EBOOL type data

(2): must be completed during the execution of the EFB, and not usable outside the EFB

Initial Values for an Element Belonging to a DFB

This table specifies whether the initial values can be entered from the DFB type definition or the DFB instance:

Element of the DFB

From the DFB type

From the DFB instance

Input data (no ANY... type)

Yes

Yes

Input data (of ANY... type)

No

No

Input/output data

No

No

Output data (no ANY... type)

Yes

Yes

Output data (of ANY... type)

No

No

Public data

Yes

Yes

Private data

Yes

No

Initial Values for an Element Belonging to an EFB

This table specifies whether the initial values can be entered from the EFB type definition or the EFB instance:

Element of the EFB

From the EFB type

From the DFB instance

Input data (no ANY... type See generic data types)

Yes

Yes

Input data (of ANY... type)

No

No

Input/output data

No

No

Output data (no ANY... type)

Yes

Yes

Output data (of ANY... type)

No

No

Public data

Yes

Yes

Private data

Yes

No