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

# CAPLfunctionSCCSLACSetToggleNum

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/SmartCharging/Functions/CAPLfunctionSCCSLACSetToggleNum.md)

**CAPL Functions** » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [SLAC Simulation](../CAPLFunctionsSmartChargingOverview.md#SLACSim) » [EVSE Functions](../CAPLFunctionsSmartChargingOverview.md#SLACSim) » SCC\_SLAC\_SetToggleNum

# SCC\_SLAC\_SetToggleNum

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

## Function Syntax

```c theme={null}
long SCC_SLAC_SetToggleNum ( int ToggleNum )
```

## Description

Sets the number of toggles for the next **CM\_Validate.Cnf** message. If this function is not used, either the value from the XML configuration or the default (2) is used.

**Note:** The number of toggles is only applied to the second **CM\_Validate.Cnf** in a validation sequence. The first one is specified to always have ToggleNum = 0.

## Parameters

* **ToggleNum**: Number of received toggles (max. 255). Real systems use toggle numbers \<= 3.

## Return Values

* **0**: Not successful
* **1**: Successful

## Example

—
