GetA664Message
This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.
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 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);}