Method UpdateActiveStatus
This method is used to indicate that the module is actively used in the active application configuration.
|
Name Datatyp |
Description |
|
|---|---|---|
|
xActive BOOL |
TRUE |
The module is actively used. |
|
FALSE |
The module is available. Es wird aber in der Applikation nicht verwendet. |
|
Proberty
This property can be used to subsequently change the component name at runtime (after initialisation of the application). This simplifies the naming of module handler instances nested in FB instances.
|
Name Datatyp |
Description |
|---|---|
|
CompName STRING |
Component name |
Example
A function block that has implemented the complete control logic of an axis and is also registered with the LMH should be linked to the used axis in the application view in the ModuleHandler.
|
FUNCTION_BLOCK IecModule VAR_IN_OUT Axis : AXIS_REF; END_VAR VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR xInitDone : BOOL; ModuleHandlerBase : L_IMHP_ModuleHandler:= ( Layer := L_IMHP_Layer.Tech_Application, CompType := L_IMHP_ComponentType.GeneralMachineModule); END_VAR IF NOT xInitDone THEN IF Axis.ModuleHandler <> 0 THEN Axis.ModuleHandler.SetParent( RelationShip := L_IMHP_RelationshipID.ApplicationView, ModuleHandlerParent := ModuleHandlerBase.ModuleHandler); END_IF xInitDone := TRUE; END_IF |