Lemonergy · Studio block
Battery cycle program
Native rest/CC/CV phase sequencer with repeats, voltage interlocks and taper dwell. Commands use discharge-positive current.
- Implementation ID
battery-cycle-program- Reviewed
- 2026-10-27
Behavior
Runs repeated rest, constant-current and constant-voltage phases. Phase duration, voltage conditions and taper dwell control advancement. A voltage interlock stops the program. Charging commands are negative.
Interface
| Name | Direction | Unit | Meaning |
|---|---|---|---|
voltage | input | V | Measured terminal voltage; scalar. |
current | input | A | Measured signed current; scalar. |
trigger | input | true / false | Start trigger; scalar. |
enable | input | true / false | Enable; scalar. |
request | output | A | Signed current request; scalar. |
done | output | true / false | Program complete; scalar. |
phase | output | 1 | Zero-based active phase; scalar. |
elapsed | output | s | Phase elapsed time (s); scalar. |
cycles | output | 1 | Finished cycles; scalar. |
fault | output | true / false | Voltage interlock fault; scalar. |
Parameters
Defaults are initial model values. Select values for your own model and operating conditions.
| Parameter | Unit | Default | Meaning and limits |
|---|---|---|---|
Sample interval (s)sampleTimeS | s | 0.1 | Positive sample interval. Initialization has zero elapsed time; subsequent accepted samples update memory. |
Cycle repetitionsrepeats | 1 | 1 | Cycle repetitions. This is an editable model input; the default belongs to the synthetic worked example. |
Low-voltage interlock (V)minimumV | V | 2.5 | Low-voltage interlock (V). This is an editable model input; the default belongs to the synthetic worked example. |
High-voltage interlock (V)maximumV | V | 4.3 | High-voltage interlock (V). This is an editable model input; the default belongs to the synthetic worked example. |
Phases [mode, A, V, duration s, cutoff A, dwell s, gain]steps | See field order | [[0, 0, 0, 1, 0, 0, 0], [1, 1, 3, 2, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0]] | Each row: mode (0 rest, 1 CC, 2 CV), current (A), voltage (V), duration (s), cutoff magnitude (A), taper dwell (s), CV gain. Signed currents use discharge-positive convention. |
Equations and rules
mode 0 = rest; mode 1 = constant current; mode 2 = constant voltagephase row = [mode, current A, voltage V, duration s, cutoff A, dwell s, gain]
Worked example
Battery cycle program worked example
Use the defaults below with Measured terminal voltage = 3.8 V, Measured signed current = 1 A, Start trigger = 1 true / false, Enable = 1 true / false. At 0 s, Signed current request is 0 A. Additional checks are listed below.
Open Studio example after release →| Output | Time (s) | Expected value | Unit | Absolute tolerance |
|---|---|---|---|---|
Signed current requestrequest | 0 | 0 | A | 1e-08 |
Program completedone | 0 | false | true / false | 1e-08 |
Zero-based active phasephase | 0 | 0 | 1 | 1e-08 |
Finished cyclescycles | 0 | 0 | 1 | 1e-08 |
Zero-based active phasephase | 1 | 1 | 1 | 0 |
Program completedone | 4 | true | true / false | 0 |
Explore the recorded outputs
Battery cycle program recorded example
Battery cycle program / Signed current request51 actual recorded samples. Lines are visual guides between samples. Synthetic example, not measured cell data.
Read the selected signal as a table
| Time (s) | Value |
|---|
Download the recorded samples (JSON) · Open this Studio example after release
Use in a workflow
Battery cycle program worked example
Native rest/CC/CV phase sequencer with repeats, voltage interlocks and taper dwell. Commands use discharge-positive current.
- Battery cycle program: Runs repeated rest, constant-current and constant-voltage phases. Phase duration, voltage conditions and taper dwell control advancement. A voltage interlock stops the program. Charging commands are negative.
- Use the parameter values in the block reference.
- Implementation tested locally; public release pending.
Connected concepts
Limits and interpretation
- The phase program is a signal controller; actuation and measured response come from the connected plant. Synthetic phase settings do not establish a test standard.
- The example verifies numerical behavior for synthetic parameters. Cell characterization and validation for an intended use are separate tasks.
Scientific and mathematical references
These sources explain the scientific and mathematical background. The behavior, interface and limits above define the Lemonergy implementation; a citation does not imply every model option in the source is implemented.
- Battery Test Manual For Electric Vehicles, Revision 3
Jon P. Christopherson · Idaho National Laboratory · 2015
Technical reference · Performance characterization, pulse resistance/power, life testing and reference performance tests; historical 2015 edition.
Implementation sources
This reference follows the public interface and locally verified numerical checks for an upcoming release.
Contract: Lemonergy Studio public contract · Verification record: verification-2026-10-27
docs/glossary/native-block-verification.json
This implementation and its workflow uses (JSON) · Knowledge graph (JSON-LD)