CAPL Script

GetA664Message

Syntax

long GetA664Message (PDUobject aPDU, a664Message aMessage)

Function

This function can be used within an “ON PDU”-handler to retrieve the A664Message object, to which the PDU corresponds. The a664Message object then allows to retrieve the various runtime parameters like BAG or error flags via message selectors. Note: the message ID is available, but not the message name.

Parameters

The object of the PDU-handler

The a664Message object which getting the current message information

Return Values

on PDU *{A664Message *msg;getA664Message(this, msg);writeEx(-3,1, "received PDU %s with distance: %d", this.name, msg.Distance);}