Dynamic Data Types

Help Contents

Introduction

A Dynamic Data Type declares a variable that can change type at runtime.

These Dynamic Data Types are supported:

Dynamic Data TypeComment
OBJECTDeclares an instance of a class created at runtime.
VARIANTDeclares a variable that can contain any elementary type or an object.

Remarks

You can declare an OBJECT variable like any other variable:

Var
    MyObject : OBJECT;
End_Var

You can assign any of the following to an OBJECT variable:

You can declare a VARIANT variable like any other variable:

Var
    MyObject : VARIANT;
End_Var

You can assign any of the following to an VARIANT variable:

Standards Compliance

Dynamic Data Types are an extension to the IEC 61131-3 standard.

Further Information

SysCreateInstance()

To learn how to create an instance of a class at runtime.

Elementary Data Types

To learn about elementary data types.

Common Elements

To learn about other language Common Elements.

Glossary

For the meaning of terms used in Fernhill SCADA.