MODULE
PLBCMP GUI Only, 10.6
The MODULE instruction declares a PL/B module object variable. The MODULE object is implemented as a PL/B runtime internal object to manage the current program module being executed where it is executing. The MODULE object provides an interface and control of operations for PL/B programs including the main program and load modules. The MODULE object declaration uses the following statement format:
|
|
|
Where:
label
Optional. A Data Label.
Flags Affected: NONE
Note the following:
The MODULE object represents the current PL/B program being executed.
There are no properties for a MODULE object.
There are no events for a MODULE object.
There are no PL/B instructions other than methods that are used with a MODULE object. The methods performed for the MODULE object only take affect for the program module where the PL/B runtime is executing. The MODULE object has the following methods:
|
Method |
This method ... |
|
InitializeUda |
restores the current program module UDA to be the same as originally loaded for the module. |
|
Unload |
Tis implemented to unload a load module when the PL/B runtime is using the 'PLB_DYNAMICLOADMOD=ON' keyword. This method can only be used to unload PL/B load modules. This method cannot unload the PL/B main program. |
See Also: Object Output Instructions
![]() |