FUNCTION_BLOCK DM1_Read EXTENDS CBM.LTrig IMPLEMENTS IBroadcastHandler, IDTCHandlerList
This function block reads DM1 messages from a given device (itfSourceECU) as long as xEnable is TRUE. In principal a DM1 message contains lamp information and currently active diagnostic trouble codes (DTC). Following information is provided by this function block:
Lamp information for following lamps:
Malfunction Indicator Lamp(MIL)
Red Stop Lamp (RSL)
Amber Warning Lamp (AWL)
Protect Lamp
Number of active DTCs(output: udiDTCCount)
Information about if DM1 message was received in the current PLC cycle (xReceived).
For detailed information about received DTC data one or more DTC Handlers can be connected with this function block (optionally).
For example:
DTCBufferWriter: Writes DTC data to a given memory buffer
DTCLogger: Writes DTC data to the PLC log.
InOut: |
|