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

# CAPLfunctionSCCSetTargetCurrent

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

## SCC\_SetTargetCurrent

**CAPL Functions** » **Smart Charging** » **SCC Modeling Libraries (Simulation Setup)** » **V2G Simulation Data** » **EV Functions** » **SCC\_SetTargetCurrent**

### Tool Availability

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

### Note

This function needs a running SCC session in order to work. Make sure to call it only after the Session Setup Request message is sent.

### Function Syntax

```plaintext theme={null}
long SCC_SetTargetCurrent ( float TargetCurrent )
```

### Description

Sets the desired current. These limits are used in various DC messages. If no values are set, the vehicle will automatically calculate defaults.

### Parameters

* **TargetCurrent**: Value to be set.

### Return Values

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

### Example

—
