PLBOBJECT
PLBCMP GUI Only, 10.6
The PLBOBJECT instruction declares a PL/B code object variable. The PLBOBJECT variable provides the interface to a PL/B CLASSMODULE load module using the CREATE, GETPROP, SETPROP, methods and DESTROY instructions. The PLBOBJECT object is supported in EVENTREGISTER and EVENTSEND instructions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
Optional. A Data Label.
%
Optional. Denotes the item as being GLOBAL.
arraysize
Required. An integer decimal constant, CONST variable, or EQUATEd value indicating the number of array items.
^
Optional. Denotes the item as being a POINTER.
targetclassmod
Optional. A string literal that identifies the CLASSMODULE load module program name to be accessed for the PLBOBJECT.
Flags Affected: NONE
Note the following:
The {targetclassmod} string has a size limit of thirty-nine (39) characters and it can only be specified as the load module program named with the extension. The default extension is "plc".
When a PLBOBJECT is declared with the CLASS keyword as shown in format (3), the {targetclassmod} specifies the CLASSMODULE load module '.plc' file name that is linked to this object.
Example:
If the CLASS keyword is not specified with the PLBOBJECT declaration as shown in format (2), the CLASS keyword must be specified on the CREATE statement for the PLBOBJECT.
Example:
When the format (4) is used, the 'targetclassmod' string literal is used to access the target CLASSMODULE load module file name of 'targetclassmod.plc' for each PLBOBJECT array element created.
Examples:
See Also: Object Definitions, Object Output Instructions
![]() |