
Lenze · ApplicationTemplate · 1.3 EN - 04/2013 119
The L_EATP_ApplicationTemplate library
1_POUs - Program Organization Units
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
11.2.4 L_EATP_ErrorSet
This FB can trigger up to four errors. The triggering of an error has an impact on the state machine.
• Depending on how you program the error response (eReaction), the state machine changes to
the status defined.
Inputs
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_ErrorSet
BOOL ⎯ xSetError[1...4] xError[1...4]Active ⎯ BOOL
WORD wErrCode[1...4]
L_EATP_ErrorReactionType
eReaction[1...4]
dwPriority[1...4]
BOOL xAckNeeded[1...4]
STRING sText[1...4]
DWORD dwErrDetail[1...4]
Identifier/data type Information/possible settings
xSetError[1...4]
BOOL
Setting an error [1...4]
• Error source: module application (MAP)
TRUE Error [1...4] has been set.
FALSE Error [1...4] has not been set.
wErrCode[error number]
WORD
Unique error number of error [1...4]
eReaction[error response]
L_EATP_ErrorReactionType
Error response type of error [1...4]
dwPriority[priority]
DWORD
Assignment of a priority [1...n] for error responses.
• Helps prioritise errors of the same error response type.
• Highest priority = 1.
xAckNeeded[acknowledgement required]
BOOL
Note:
Is ignored for the following error response types:
• "Information": Acknowledgement not required.
• "Fault": Acknowledgement is always
required.
• "SystemFault": No acknowledgement possible.
FALSE No acknowledgement of the error [1...4]
required.
TRUE Acknowledgement of the error [1...4] is required.
sText[error text]
STRING
Text of error [1...4]
dwErrDetail[error number]
DWORD
Detail information on error [1...4]
Comentarios a estos manuales