FUNCTION_BLOCK DM2_Write EXTENDS DM1_Write
This function block sends a DM1 messages from a given local ECU (itfSourceECU). A DM2 message contains lamp information and previously active diagnostic trouble codes (DTC). Following information is sent by this function block:
Lamp information for following lamps:
Malfunction Indicator Lamp(MIL)
Red Stop Lamp (RSL)
Amber Warning Lamp (AWL)
Protect Lamp
All enabled diagnostic trouble codes connected to output itfDTCProviderList (see DTCProvider function block).
InOut:
Scope |
Name |
Type |
Initial |
Comment |
Inherited from |
Input |
xExecute |
BOOL |
Rising edge: Action starts Falling edge: Resets outputs If a falling edge occurs before the function block has completed its action, the outputs operate in the usual manner and are only reset if either the action is completed or in the event of an error. In this case, the corresponding output values (xDone, xError) are present at the outputs for exactly one cycle. |
ETrig |
|
Output |
xDone |
BOOL |
TRUE: Action successfully completed |
ETrig |
|
xBusy |
BOOL |
TRUE: Function block active |
ETrig |
||
xError |
BOOL |
TRUE: Error occurred, function block aborts action FALSE: No error |
ETrig |
||
Input |
itfSourceECU |
IJ1939LocalECU |
Local ECU which should be the sender of the diagnostic message. |
||
MalfunctionIndicatorLamp |
Malfunction Indicator Lamp: Lamp to indicate when there is an emission related trouble code active. |
||||
RedStopLamp |
Red Stop Lamp: Lamp to indicate a problem that is severe enough to warrant stopping the vehicle. |
||||
AmberWarningLamp |
Amber Warning Lamp: Lamp to indicate a problem with the vehicle system but the vehicle does not need to be stopped immediately. |
||||
ProtectLamp |
Protect Lamp: Lamp to indicate a problem with a vehicle system that is most likely not electronic subsystem related (e.g. Coolant Temperature has exceeded its defined range.) |
||||
Output |
itfDTCProviderList |
IDTCProviderList |
THIS^ |
mainly for graphical programming: output for connection to DTC provider function blocks |
|
eError |
detailed error information if xError is TRUE. |