8 l_eatp_modulediag, L_eatp_modulediag ( 123), The l_eatp_applicationtemplate library – Lenze PLC Designer ApplicationTemplate (PLC Designer R3-x) User Manual
Page 123
![background image](/manuals/566296/123/background.png)
Lenze · ApplicationTemplate · 1.3 EN - 04/2013
123
The L_EATP_ApplicationTemplate library
1_POUs - Program Organization Units
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
11.2.8
L_EATP_ModuleDiag
This FB makes it possible to diagnose a machine module.
• The FB always exactly focuses on one individual machine module.
• After starting the project, automatically the highest master module is focused.
Inputs
Outputs
Function library:
L_EATP_ApplicationTemplate
Runtime software licence:
LPC 1x00
MPC 1x00
MPC 2x00
MPC 2x10
MPC 2x20
MPC 2x30
MPC 3x00
;
None
L_EATP_ModuleDiag
BOOL ⎯ goToMaster
moduleName ⎯ STRING
L_EATP_MM_Address ⎯ goToSlave
absoluteMM_Address ⎯ STRING
dataConnector ⎯ L_EATP_DataConnector
statusText ⎯ STRING
Identifier/data type
Information/possible settings
goToMaster
BOOL
In the case of a positive edge, the FB changes to the master of the currently focused
module.
• If there is no master on the focused module, the "Current module has no master"
message is visible at the statusText output.
goToSlave
INT
A non-zero input is considered as a module address. According to the module
address, the FB changes to the slave of the machine module currently focused.
• If the machine module focused does not feature a slave with a corresponding
module address, the "Current module has no slave with module ID xx" message
is visible at the statusText output.
Identifier/data type
Information/possible settings
modulName
STRING
Name of the instance of the currently focused machine module.
absoluteMM_Address
STRING
Absolute module address of the currently focused machine module.
dataConnector
L_EATP_DataConnector
Returns the Data Connector of the module selected
• By this, enables access to the BaseChannel.
statusText
STRING
Status/error message of the diagnostic FB. The following messages are possible:
• No root module was found
• Root module was entered
• Current module has no master
• Master module was entered
• Current module has no slave with module ID x
• Slave module was entered