L_IMHP_ModuleHandler
This module is the central function module for application components (IEC).
The FB is required to log on to the LenzeModuleHandler (LMH) and access its services.
The FB is configured during instantiation using properties. A cyclical call of the FB is not necessary. Access to functions of the ModuleHandler is provided via the FB output ModuleHandler .
The FB automatically logs on to the LenzeErrorManagement (LEM).
|
|
|
|
L_IMHP_ModuleHandler |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
ModuleHandler |
- |
L_IMHP_IModuleHandler |
|||||
|
|
|
|
|
|
|
|
|
Outputs
|
Name Datentyp |
Description |
|
|---|---|---|
|
ModuleHandler L_IMHP_IModuleHandler |
Access to the functions of the ModuleHandler. |
|
Properties
When declaring the FB, the function block can be additionally configured by the following properties.
|
NOTE |
|---|
|
Describing the properties during the runtime of the IEC application has no influence. |
|
Name Datatype |
Description |
|---|---|
|
CompName STRING |
Name of the component when logging on to the LMH: If the property is not initialized, the instance name of the POU in which the FB is instantiated is automatically used. |
|
Layer L_IMHP_Layer |
Layer = "Structuring level" Specifies the layer with which the FB registers at the LMH. If no layer is specified, this is automatically determined based on the component type. Available layers (event locations):
|
|
CompType
L_IMHP_
|
Type of the componente Default: GeneralMachineModule (551) |
Example
The FB L_IMHP_ModuleHandler is instantiated in a function block, which is to communicate with the LMH as a component:
|
FUNCTION_BLOCK IecModule VAR_INPUT END_VAR VAR_OUTPUT END_VAR VAR ModuleHandlerBase : L_IMHP_ModuleHandler:= ( Layer := L_IMHP_Layer.Tech_Application, CompType := L_IMHP_ComponentType.GeneralMachineModule); END_VAR |
This FB is then instantiated in the IEC application.
With the following statement the instance myIecModule logs on to the ModuleHandler with the name "myIecModule" when downloading the program:
|
PROGRAM PLC_PRG VAR myIecModule : IecModule; END_VAR |