Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

User-defined Object Types

  • Last UpdatedOct 21, 2022
  • 1 minute read

You may find that the object types supplied with PML 2 are enough.

However, you can define new object types if you need to. In any case, the following example may help you understand objects, their members and how they are used.

The following commands define an object type FACTORY with two REAL members and a STRING member:

define object FACTORY

 member .Name is STRING

 member .Workers is REAL

 member .Output is REAL

endobject

Here is another example where the object type FACTORY is itself used for one of the data members of another object type:

define object PRODUCT

 member .Code is STRING

 member .Total is REAL

 member .Site is FACTORY

endobject

It is a good idea to use upper case for object-type names, and mixed upper and lower case for variable names, the objects themselves. For example, a type might be WORKERS, and a variable name might be NumberOfWorkers.

TitleResults for “How to create a CRG?”Also Available in