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

# CAPLfunctionSCCCreatePreChargeReqIso

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

**CAPL Functions** » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [V2G Test Functions](../CAPLFunctionsSmartChargingOverview.md#V2GTestISO) » [Shared Functions](../CAPLFunctionsSmartChargingOverview.md#V2GTestISO) » **SCC\_CreatePreChargeReq\_ISO**

# SCC\_CreatePreChargeReq\_ISO

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

## Function Syntax

```plaintext theme={null}
long SCC_CreatePreChargeReq_ISO 
( byte SessionID[], byte StatusFlags[], 
char ErrorCode[], float TargetVoltage, 
float TargetCurrent )
```

## Description

Creates a PreCharge Request message for sending.

## Parameters

* **SessionID**: 8-byte long SessionID of SCC connection, range: 0 - 0xFF FF FF FF FF FF FF FF.
* **StatusFlags**: Flags for DC\_EVStatus:
  * StatusFlags\[0] = EVReady
  * StatusFlags\[1] = EVCabinConditioning
  * StatusFlags\[2] = EVRESSConditioning
  * StatusFlags\[3] = EVRESSSOC
* **ErrorCode**: EVErrorCode for DC\_EVStatus.
* **TargetVoltage**: EVTargetVoltage.
* **TargetCurrent**: EVTargetCurrent.

## Return Values

* **1**: If successful.
* **0**: Else (message cannot be sent).

## Example

—
