PLBOBJECT Methods
PLBCMP GUI Only, 10.6
The PLBOBJECT object methods are contained in the CLASSMODULE load module that is specified for the PLBOBJECT object declaration. Therefore, any label for a FUNCTION in a CLASSMODULE load module that does not have a prefix of 'Get_' or 'Set_' is identified as a method. This means that all PLBOBJECT methods are user defined as coded into a CLASSMODULE load module. The methods use the following format:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
Flags Affected: Depends on method FUNCTION
Note the following:
The PLBOBJECT method input parameters do not support keyword naming syntax.
The compiler can verify that the method name exists in the CLASSMODULE load module '.plc' program file. If the CLASSMODULE '.plc' program file cannot be accessed, the compiler gives appropriate warning messages.
Example:
'MyClass.plc' program compiled as CLASSMODULE load module.
'TestProg.plc' program using PLBOBJECT object
See Also: Object I/O Instructions
![]() |