VeriStand Signal Mapping
The ChargeLink kit for NI VeriStand delivers the complete channel layout and mapping; nothing has to be created or mapped in VeriStand. This page explains what the delivered files define, so that you can read a session's status and evidence and recognise the channels in VeriStand. The setup is in Set Up the VeriStand Bench; the prerequisites are listed on the NI VeriStand Bench page.
The files that define the mapping
The import copies the kit's project (project\ChargeLink_VeriStand) to Public Documents\ChargeLink\VeriStand; the session uses that copy.
| File | Defines |
|---|---|
ChargeLink_Blank_Windows.nivssdf in the project | The VeriStand side: target Controller, the plant model, the User Channel folders and the 44 mappings between User Channels and model ports |
The plant model (FMU) in the project's ChargeLink\Models folder | The FMI 2.0 plant model with 26 inputs, 18 outputs and 15 parameters |
ChargeLink\OperatorWorkspace\ChargeLink_Operator.nivsscr in the project | The ChargeLink Operator screen |
charger\config\grpc_signal_mapping.json in the kit | Ten plant channels and the ChargeLink canonical signal each one corresponds to |
charger\config\operator_channel_contract.json in the kit | The 14 operator channels: 7 commands and 7 status values |
ChargeLink checks the system definition against both files when a session starts. Use these files as delivered: Start-ChargeLinkVeriStand.ps1 always points the session at them.
The system definition
- Target
Controller: Windows,localhost, engine rate 500 Hz, data rate 50 Hz, watchdog filtering off; primary control loop on logical processor 10, model on 11, secondary loop on 12. - Model
Targets/Controller/Simulation Models/Models/ChargeLink ISO15118-20 DC EIM FMU: 64-bit, base rate 1000 µs, decimation 1; the plant model (FMU) in the project'sChargeLink\Modelsfolder, referenced by a relative path. - User Channels under
Targets/Controller/User Channels/: 73 in all, 50 plant channels inChargeLink ISO15118-20 DC EIM Plant, 14 operator channels inChargeLink Operatorand 9 MCS connection channels inChargeLink MCS Connection(below). - Mappings: 44. Each of the 26 model inputs is fed from the plant User Channel of the same name (User Channel → Inport); each of the 18 model outputs feeds the plant User Channel of the same name (Outport → User Channel). The model's 15 parameters are not mapped and keep the model's start values; the six parameter channels in the plant folder are not mapped either. Operator channels are never mapped to the model.
ChargeLink reads and writes only User Channels, never model ports. You can open the .nivssdf in VeriStand's System Explorer to inspect it; do not save it from there, because a saved file changes its hash.
Plant channels
Folder Targets/Controller/User Channels/ChargeLink ISO15118-20 DC EIM Plant:
| Group | Inputs (written by ChargeLink, mapped to model inputs) | Outputs (from the model) | Parameters (not mapped) |
|---|---|---|---|
| Session state | EVSE.SessionActive, EVSE.ProtocolReady, EVSE.AuthorizationAccepted, EVSE.ChargeLoopActive, EVSE.StopRequested | ||
| Vehicle | EV.TargetVoltage_V, EV.TargetCurrent_A | EV.BatteryVoltage_V, EV.BatteryCurrent_A, EV.BatterySOC_pct | EV.MaximumVoltage_V, EV.MaximumCurrent_A, EV.MaximumPower_W |
| Charger | EVSE.VoltageCommand_V, EVSE.CurrentCommand_A, EVSE.PowerEnable, EVSE.ContactorCommand, EVSE.PrechargeCommand | EVSE.PresentVoltage_V, EVSE.PresentCurrent_A, EVSE.PresentPower_W, EVSE.ContactorClosed, EVSE.PrechargeComplete, EVSE.OutputReady | EVSE.MaximumVoltage_V, EVSE.MaximumCurrent_A, EVSE.MaximumPower_W |
| Safety | Safety.InterlockClosed, Safety.EmergencyStop, Safety.IsolationValid | Safety.FaultActive | |
| Fault injection | Test.InjectIsolationFault, Test.InjectContactorFault, Test.InjectVoltageDeviation_V, Test.InjectCurrentDeviation_A, Test.ForceCommunicationLoss, Test.ResetFaults | ||
| Command and sample identity | Runtime.CommandAge_ms, Runtime.CommandSequence, Runtime.CommandEpoch, Runtime.CommandCrc32C, Runtime.CommandCrc32 | Runtime.SampleSequence, Runtime.AcceptedCommandSequence, Runtime.CommandAgeActual_ms, Runtime.ContractVersion, Runtime.SourceEpoch, Runtime.SourceTime_ms, Runtime.SourceCrc32C, Runtime.SourceCrc32 |
The Runtime.* channels carry the identity of each command and sample, which ChargeLink uses to detect stale or corrupted values. Do not write them yourself. The Safety.* inputs are the simulated plant's safety signals; they are not connected to any physical device. The operator screen shows the session-state, command, target and Runtime.* channels as display-only: writing one of them by hand latches a plant fault, which Reset plant clears.
Plant channels and canonical signals
charger\config\grpc_signal_mapping.json pairs ten plant channels with ChargeLink canonical signals (all paths under Targets/Controller/User Channels/ChargeLink ISO15118-20 DC EIM Plant/):
| Direction | Plant channel | Canonical signal |
|---|---|---|
| ChargeLink → plant | EV.TargetVoltage_V | Vehicle.TargetVoltageV |
EV.TargetCurrent_A | Vehicle.TargetCurrentA | |
EVSE.VoltageCommand_V | Charger.MaxVoltageV | |
EVSE.CurrentCommand_A | Charger.MaxCurrentA | |
| Plant → ChargeLink (telemetry) | EV.BatterySOC_pct | Vehicle.SocPct |
EV.BatteryVoltage_V | Vehicle.BatteryVoltageV | |
EV.BatteryCurrent_A | Vehicle.BatteryCurrentA | |
EVSE.PresentVoltage_V | Charger.PresentVoltageV | |
EVSE.PresentCurrent_A | Charger.PresentCurrentA | |
EVSE.PresentPower_W | Power.ActivePowerW |
The other plant channels (session state, contactor and precharge, safety, fault injection, command and sample identity) have no canonical signal.
Operator channels
Folder Targets/Controller/User Channels/ChargeLink Operator, defined by charger\config\operator_channel_contract.json. ChargeLink writes the status channels while an operator session runs.
| Channel | Kind | Screen button | Meaning |
|---|---|---|---|
Operator.ApplySafeStartup | command, rising edge | Apply safe startup | Applies the safe start-up profile and pulses Test.ResetFaults |
Operator.StartSession, Operator.StopSession | command, latched | Start session, Stop session | Starts or stops the charging session |
Operator.StartExternalEvccLane, Operator.StopExternalEvccLane | command, latched | Start external EVCC, Stop external EVCC | Starts or stops the charger's listener for the vehicle side |
Operator.ResetPlant | command, rising edge | Reset plant | Restores the safe start-up profile and clears latched faults |
Operator.ShutdownWorkflow | command, rising edge | Shutdown workflow | Makes the plant safe, disconnects ChargeLink, undeploys the project and closes VeriStand |
Operator.EngineRunning, Operator.NativeGatewayConnected, Operator.GrpcHealthy, Operator.SessionRunning, Operator.ExternalEvccLaneRunning | status | status tiles | 1 while the VeriStand engine runs, the VeriStand connection is up, ChargeLink's local service is healthy, the session runs, or the listener runs |
Operator.LastErrorCode | status | Last error | 0 when there is no error; otherwise the code of the last error (Error codes on the screen) |
Operator.Heartbeat | status | Heartbeat | Alternates while the operator session is alive |
You set the command channels with the buttons of the ChargeLink Operator screen, in the order given in Running a session.
MCS connection channels
Folder Targets/Controller/User Channels/ChargeLink MCS Connection, shown on the screen's MCS page and used by the MCS stack (MCS). These channels have no model behind them: ChargeLink's simulated coupler model is their source. All are numeric values with unit 1.
| Channel | Written by | Meaning |
|---|---|---|
Connection.McsMated | the operator (button Plug inserted) | 1 while the connector is inserted. The only MCS channel you write. |
Connection.McsCeStateCode | ChargeLink | The CE state: 0 unknown, 1 A, 2 B0, 3 B0_Aux, 4 B, 5 B_Aux, 6 C, 7 C_Aux, 8 EC, 9 EC_Aux, 10 E |
Connection.McsIdStateCode | ChargeLink | The ID state: 0 unknown, 1 inlet not present, 2 unmated, 3 mated without charger, 4 mated, 5 mated with EV auxiliary, 6 mated with charger auxiliary |
Connection.DLinkReady | ChargeLink | 1 once the data link is ready (D-LINK_READY) |
Connection.EthernetLinkUp | ChargeLink | 1 while the coupler link to the EV is alive |
PhysicalControl.McsSs3Command, Charger.McsSs3Closed | ChargeLink | The charger's connector switch: command and state |
PhysicalControl.McsSv3Command, Vehicle.McsSv3Closed | ChargeLink, from the EV over the coupler link | The EV's connector switch: command and state |
Do not write the channels ChargeLink writes. An emergency stop and plant faults use the same plant channels as the DC session.
Two optional MCS plant inputs
The signal dictionary 1.6.0 adds two optional MCS plant inputs: Connection.McsCeSupply (the CE supply: 1 present, 0 lost) and Connection.McsLinkAvailable (the 10BASE-T1S data link: 1 usable, 0 lost). A plant that never publishes them runs as before. Once a plant publishes them, 0 or a value older than 500 ms is a fault. No profile, VeriStand project or FMU change is needed.
Watching the channels during a session
The ChargeLink Operator screen shows the status tiles (engine, gateway, local service, session, external EVCC, output ready, fault, last error, heartbeat), the session progress, the charger voltage and current and the battery SOC while the session runs. You can also read any channel in VeriStand's own tools.
After every session, the session folder operator\Runs\<time>\ in the run folder holds the session's evidence and the charger's protocol trace with the ISO 15118-20 messages; see Reading the result.
Troubleshooting
| Symptom | Cause | Action |
|---|---|---|
| Validation or session start fails on the channel contract or the signal mapping | The project's system definition, a contract file or the model folder was changed or moved | Delete the project copy in Public Documents\ChargeLink\VeriStand and run the import again (setup step 4); unpack the kit again if its files were changed. |
| Deployment fails because the model is missing | The project's ChargeLink\Models folder with the plant model (FMU) is not next to the .nivssdf | Keep the project folder as delivered; import it again. |
| Plant values stay at zero during the charge loop | The safe start-up state is held, or a safety input or fault injection is active | Press Apply safe startup before Start session; press Reset plant after a fault; read the run folder's logs. |
Operator.LastErrorCode is not 0 | ChargeLink rejected a command or hit an error | See Error codes on the screen; read the logs in the run folder. |
| A plant fault is latched after a channel was changed by hand | A display-only channel was written | Press Reset plant; change only the screen's buttons. |
The canonical signal dictionary
chargelink.exe exposes one transport-neutral signal dictionary through the gRPC SignalService (gRPC Integration API). The ten canonical signals above belong to it. The dictionary has 94 signals in 17 namespaces. Bidirectional signals can be written by a client and read back; output signals are produced by ChargeLink and are read-only. Each sample carries a source identity (epoch, sequence, target_time_ms, applied_command_sequence) so that a consumer can detect stale values.
| Signal ID | Unit | Direction | Signal ID | Unit | Direction |
|---|---|---|---|---|---|
Battery.CapacityWh | Wh | bidirectional | PhysicalControl.ContactorCommand | — | bidirectional |
Battery.MaxChargePowerW | W | bidirectional | PhysicalControl.EnergyTransferEnable | — | bidirectional |
Battery.MaxDischargePowerW | W | bidirectional | PhysicalControl.IntentGeneration | — | bidirectional |
Battery.TemperatureC | °C | bidirectional | PhysicalControl.PowerEnable | — | bidirectional |
Charger.ContactorClosed | 1 | bidirectional | PhysicalControl.PrechargeEnable | — | bidirectional |
Charger.ContactorState | — | bidirectional | PhysicalControl.StopRequested | — | bidirectional |
Charger.MaxCurrentA | A | bidirectional | PhysicalControl.TargetCurrentA | A | bidirectional |
Charger.MaxPowerW | W | bidirectional | PhysicalControl.TargetVoltageV | V | bidirectional |
Charger.MaxVoltageV | V | bidirectional | Power.ActivePowerW | W | bidirectional |
Charger.Notification | — | bidirectional | Power.EnergyExportedWh | Wh | output |
Charger.PresentCurrentA | A | bidirectional | Power.EnergyImportedWh | Wh | output |
Charger.PresentVoltageV | V | bidirectional | Power.ReactivePowerVar | var | bidirectional |
Connection.CpState | — | bidirectional | Protocol.LastMessage | — | output |
Connection.EthernetLinkState | — | bidirectional | Protocol.LastResponseCode | — | output |
Connection.PlcLinkState | — | bidirectional | Protocol.MessageCounter | count | output |
Connection.PlugLocked | — | bidirectional | Protocol.SecurityState | — | output |
Connection.PlugPresent | — | bidirectional | Protocol.SelectedProtocol | — | output |
Connection.PpState | — | bidirectional | Protocol.SelectedSchema | — | output |
Contactor.NegativeState | — | bidirectional | Protocol.SessionState | — | output |
Contactor.PositiveState | — | bidirectional | Security.AuthorizationMode | — | bidirectional |
Fault.ActiveCount | count | output | Security.PeerCertificateValid | — | output |
Fault.LastFault | — | output | Security.TlsState | — | output |
Isolation.ResistanceOhmPerV | Ω/V | bidirectional | Session.ElapsedMs | ms | output |
Metering.MeterReadingWh | Wh | output | Session.Id | — | output |
Metering.ReceiptRequired | — | bidirectional | System.CpuUsagePct | % | output |
Test.ActiveCampaign | — | output | System.DroppedEvents | count | output |
Test.ActiveCase | — | output | System.HealthState | — | output |
Test.CaseVerdict | — | output | System.MemoryBytes | bytes | output |
Test.ExecutionProgress | % | output | Thermal.CoolantTemperatureC | °C | bidirectional |
Vehicle.BatteryCurrentA | A | bidirectional | Thermal.DeratingPct | % | bidirectional |
Vehicle.BatteryVoltageV | V | bidirectional | Vehicle.RequestedPowerW | W | bidirectional |
Vehicle.ContactorState | — | bidirectional | Vehicle.SocPct | % | bidirectional |
Vehicle.IsolationStatus | — | bidirectional | Vehicle.TargetCurrentA | A | bidirectional |
Vehicle.TargetVoltageV | V | bidirectional | |||
Units are SI base units: watts, not kilowatts; watt-hours, not kilowatt-hours. On the VeriStand bench, the gRPC service runs only while an operator session runs; do not write signals into a running bench session.

