> ## 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.

# CAPLfunctionIso11783ILOnTxPrepare

[Open topic with navigation](../../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/ISO11783/ISOInteractionLayer/Functions/CAPLfunctionIso11783ILOnTxPrepare.md)

[CAPL Functions](../../../CAPLfunctions.md) » [ISO11783](../../CAPLfunctionsISO11783Overview.md) » [ISO11783 Interaction Layer](../CAPLfunctionsISOILOverview.md) » Iso11783IL\_OnTxPrepare

# Iso11783IL\_OnTxPrepare (Callback)

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

## Function Syntax

```
long Iso11783IL_OnTxPrepare( pg * txPG );
```

## Description

This callback function is called from the ISO11783 IL before a parameter group is sent. The signal value can be updated in the callback or sending of the message can be suppressed.

**Note Suppressing of AddressClaim and CannotClaimAddress Messages**

Using this method you can suppress the **AddressClaim** or **CannotClaimAddress** messages as well. Please notify that in this case the corresponding node will switch to the next state (Active, Stopped or Initialized) even though the **AddressClaim** or **CannotClaimAddress** message has been not sent.

You can use this method for the delaying of the **AddressClaim** message. Just suppress the **AddressClaim** message by the ISO11783 IL and send it some milliseconds later by the CAPL program.

## Parameters

* **txPG**: Message which should be sent

## Return Values

* **1**: Send message
* **0**: Do not send message

## Example

```c theme={null}
long Iso11783IL_OnTxPrepare( pg * txPG )
{
  switch( txPG.PGN ) {
  case 0xFF01:
    txPG.BYTE(0) = 10; // update first byte
    break;
  }
  return 1;
}
```
