DTCProvider (FB)ΒΆ
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 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
itfDTCProviderList
IDTCProviderList
DMx_Write instance
Data
DTC data
Output
eError
detailed error information if xError is true.