DTCLogger (FB)ΒΆ
FUNCTION_BLOCK DTCLogger EXTENDS DTCHandlerBase
This function block can be connected to a DM1_Read or DM2_Read function block. As long as xEnable
is TRUE
it receives DTCs and writes it to the plc logger.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
xEnable
BOOL
TRUE
: Action startsFALSE
: Action stops, outputsxDone
,xBusy
,xError
are resettedLTrig
Output
xDone
BOOL
TRUE
: Action successfully completedLTrig
xBusy
BOOL
TRUE
: Function block activeLTrig
xError
BOOL
TRUE
: Error occurred, function block aborts actionFALSE
: No errorLTrig
Input
itfDTCHandlerList
IDTCHandlerList
DMx_Read instance
DTCHandlerBase
Output
eError
detailed error information if xError is TRUE
DTCHandlerBase
Input
hLogger
SysTypes.RTS_IEC_HANDLE
CmpLog.LOG_STD_LOGGER
Handle to the logger. Default: CmpLog.LOG_STD_LOGGER