PML Customisation
User Guide
Variables, Objects, Functions and Methods
Variables, Objects, Functions and Methods
PML Variables
Variables
are used to store values. Variables have names. The value that is stored can be changed but the name is fixed. You choose the names and decides what is stored by each variable.
The variables used in PML 2 are objects:
•
Every object (variable) has a unique name.
•
An object has a set of functions associated with it, which can be called to manipulate this data. These functions are called methods.
•
Some methods change the data held by the object, some return a result derived from the data, and some methods do both.
•
The data that an object can hold and the functions that are available are fixed by the object type (sometimes called the object’s
class
).
•
Before you can create an object, the object type must have been defined. The object type definition specifies what the members and methods are for that type of object.
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.