Skip to main content

J1939GetPGN

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • dword J1939GetPGN (pg* aPG); // form 1
  • dword J1939GetPGN (dword canId); // form 2

Description

Returns the parameter group number (PGN) of a parameter group or CAN ID.

Parameters

  • aPG: The function returns the PGN of this parameter group.
  • canId: The function returns the PGN of this CAN ID.

Return Values

  • 0..3FFFFh: Parameter group number.

Example

See J1939GetSourceAddress. J1939 General Functions