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 starts
FALSE: Action stops, outputs xDone, xBusy, xError are resetted
|
LTrig
|
Output
|
xDone
|
BOOL
|
|
TRUE: Action successfully completed
|
LTrig
|
xBusy
|
BOOL
|
|
TRUE: Function block active
|
LTrig
|
xError
|
BOOL
|
|
TRUE: Error occurred, function block aborts action
FALSE: No error
|
LTrig
|
Input
|
itfDTCHandlerList
|
IDTCHandlerList
|
|
DMx_Read instance
|
DTCHandlerBase
|
Output
|
eError
|
ERROR
|
|
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
|
|
|