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

# CAPLfunctionIso11783ILGetState

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

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

# Iso11783IL\_GetState

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

## Function Syntax

* `long Iso11783IL_GetState();` // form 1
* `long Iso11783IL_GetState(dbNode node);` // form 2

## Description

Returns the current state of the ISO11783 IL.

## Parameters

* **node**: Simulation node to apply the function.

## Return Values

* **0**: Initialized
* **1**: Claiming
* **2**: Active
* **3**: Stopped
* **4**: Suspended
* **\< 0**: [Error code](../../../CAPLfunctionsISOj1939ErrorCodes.md)

## Example

```plaintext theme={null}
on key 's'
{
  LONG state;
  state = Iso11783IL_GetState();
}
```
