> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionJ1939SetDestAddress

# J1939SetDestAddress

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE • CANoe4SW DE

## Function Syntax

```plaintext theme={null}
void J1939SetDestAddress (pg* aPG, dword destinationAddress);
```

## Description

Sets the [PDU specific](../../../CANoeCANalyzer/J1939/j1939basics/j1939PGandPGN.md) field of a parameter group or CAN ID. For PDU1 messages this is the destination address.

## Parameters

* **aPG**: Destination address of this parameter group is set.
* **destinationAddress**: New destination address (PDU1 Format) or PDU Specific field (PDU2 Format). A value bigger than 255 is truncated.

## Return Values

—

## Example

—

[J1939 General Functions](../CAPLfunctionsJ1939Overview.md#General)
