# null

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

# SCC\_SetBatterySoC

[CAPL Functions](../../CAPLfunctions.md) » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [V2G Simulation Data](../CAPLFunctionsSmartChargingOverview.md#V2GSimDataWrite) » [EV Functions](../CAPLFunctionsSmartChargingOverview.md#V2GSimDataWrite) » SCC\_SetBatterySoC

**Valid for**: CANoe DE • CANoe4SW DE

## Function Syntax

```
void SCC_SetBatterySOC ( float BatteryState )
```

## Description

Sets the charging state of the battery in \[%].

**Note**: The configured battery capacity cannot be overwritten.

## Parameters

* **BatteryState**: Desired charging state in \[%].

## Return Values

—

## Example

—

[SCC\_SetBatteryState](CAPLfunctionSCCSetBatteryState.md)
