FUNCTION_BLOCK DTCProvider EXTENDS CBM.LTrig IMPLEMENTS IDTCProvider
This function block is used in conjunction with DM1_Write or DM2_Write function blocks. It serves as data provider for diagnostic trouble codes. One or more DTCProvider can be connected to one DMx_Write function block. A DTC will be activated by setting xEnable to TRUE.
InOut:
|
Scope
|
Name
|
Type
|
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
|
itfDTCProviderList
|
IDTCProviderList
|
DMx_Write instance
|
|
Data
|
DTC
|
DTC data
|
|
Output
|
eError
|
ERROR
|
detailed error information if xError is true.
|
|
|