Wiki source code of 3.3 Input and output signals
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
20.1 | 1 | (% data-numbered-headings-start="3" style="--numbered-headings-start: 2;font-size: 0px;color: rgba(0, 0, 0, 0.0);margin-bottom: 0px; margin-top: 0px;" %) |
2 | = Configuration = | ||
![]() |
1.1 | 3 | |
![]() |
20.1 | 4 | (% data-numbered-headings-start="3" style="--numbered-headings-start: 2;font-size: 0px;color: rgba(0, 0, 0, 0.0);margin-bottom: 0px; margin-top: 0px;" %) |
5 | == Input and output signals == | ||
6 | |||
7 | === Input signals === | ||
8 | |||
![]() |
14.1 | 9 | The BMS Main 2.x board has **4 discrete inputs** of the "dry contact" type. For each discrete input, its purpose and the inversion requirement are specified. |
![]() |
2.2 | 10 | |
![]() |
14.1 | 11 | BMS Main 2.x board has **4 analog inputs** for connecting current, temperature and humidity sensors. |
![]() |
2.2 | 12 | |
![]() |
16.1 | 13 | The order of the numbering of the discrete and analog inputs corresponds to the order of the numbering on the board. |
14 | |||
![]() |
14.1 | 15 | (% id="cke_bm_2415S" style="display:none" %) (%%)To configure the input discrete and analog signals, select the menu "Signals → Input signals": |
16 | |||
![]() |
17.1 | 17 | [[image:1732201986070-992.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="290" width="272"]] |
![]() |
14.1 | 18 | |
![]() |
26.2 | 19 | A list of available **discrete input assignments **is available in [[Input signals>>doc:Battery management systems.Additional information.1\. Battery controllers\: signals and errors.WebHome||anchor="HInputsignals"]]. |
![]() |
14.1 | 20 | |
![]() |
23.1 | 21 | If the "Signal from the battery cover" assignment is selected, the discrete input is used to monitor the state of the battery cover (see [[Battery cover protection>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HBatterycoverprotection"]]). |
![]() |
2.2 | 22 | |
![]() |
22.1 | 23 | if the "Charger connected" assignment is selected, the discrete input is involved in the algorithms of charge and discharge control (see [[Charge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HChargecontrol"]] and [[Discharge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischargecontrol"]]). |
![]() |
2.2 | 24 | |
![]() |
22.1 | 25 | If the "Power up/down request" assignment is selected, the discrete input is involved in the algorithms of opening the charging and discharging relays and sending acknowledgment of power down to the external equipment (see [[Charge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HChargecontrol"]] and [[Discharge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischargecontrol"]]). |
![]() |
3.3 | 26 | |
![]() |
3.4 | 27 | If the “Inhibit charging” assignment is selected, the discrete input is used to open the charging relay. |
![]() |
3.3 | 28 | |
![]() |
3.4 | 29 | If the “Inhibit discharging” assignment is selected, the discrete input is used to open the discharging relay. |
![]() |
3.3 | 30 | |
![]() |
23.1 | 31 | If the “CH contactor feedback”, “DCH contactor feedback”, “PCH contactor feedback”, “CH/DCH contactor feedback” or “Main contactor feedback” assignment is selected, the discrete input is involved in monitoring the corresponding contactor’s feedback signal (see [[Contactor feedback check>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HContactorfeedbackcheck"]]). |
![]() |
3.3 | 32 | |
![]() |
22.1 | 33 | If the “Charge request”, “Precharge request” or “Discharge request” assignment is selected, the discrete input is used to control opening the corresponding contactor (see [[Charge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HChargecontrol"]] and [[Discharge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischargecontrol"]]). |
![]() |
3.3 | 34 | |
![]() |
23.1 | 35 | If the “Insulation status” assignment is selected, the discrete input is used to monitor a signal from an external insulation monitoring device (see [[Insulation monitoring>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HInsulationmonitoring"]]). |
![]() |
3.3 | 36 | |
![]() |
11.2 | 37 | |
![]() |
18.1 | 38 | **Analog inputs** in this section: |
![]() |
3.3 | 39 | |
![]() |
14.1 | 40 | * No input; |
41 | * Current sensor; | ||
42 | * Current zero level; | ||
43 | * Temperature sensor; | ||
44 | * Humidity sensor; | ||
45 | * Current sensor (AUX) – additional current sensor for measuring current in a series of cells; | ||
46 | * Current zero level (AUX) – zero level bus for additional current sensor. | ||
47 | |||
48 | **Assignment of analog inputs must be selected as follows**: | ||
49 | |||
![]() |
6.2 | 50 | * Analog Input #1 – Current sensor; |
![]() |
4.7 | 51 | * Analog Input #2 – No input / Current sensor reference line / Current sensor (2nd range) (see note); |
52 | * Analog Input #3 – No input / Temperature sensor / Current sensor (AUX); | ||
53 | * Analog Input #4 – No input / Humidity sensor / Current reference line (AUX) / Current sensor (2nd range) (AUX). | ||
![]() |
3.3 | 54 | |
55 | (% class="box warningmessage" %) | ||
56 | ((( | ||
![]() |
21.1 | 57 | **Important**: the connection of an additional current sensor (AUX) is possible for special hardware revision of the BMS Main 2.x board. Using an additional current sensor is possible in the configuration when BMS Main serves two galvanically isolated cell series (see [[Series balancing>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.4 Battery parameters.WebHome||anchor="HSeriesbalancing"]]). |
![]() |
3.3 | 58 | ))) |
59 | |||
60 | (% class="box warningmessage" %) | ||
61 | ((( | ||
![]() |
3.4 | 62 | **Warning: **reassignment of analog inputs is **unacceptable.** |
![]() |
3.3 | 63 | ))) |
64 | |||
![]() |
3.4 | 65 | (% class="box infomessage" %) |
66 | ((( | ||
![]() |
4.3 | 67 | **Note:** The default setting for Analog input #2 is "No signal". If it is necessary to use a current sensor with an additional zero level signal, set the "Current sensor reference line" assignment. |
![]() |
3.4 | 68 | ))) |
69 | |||
![]() |
20.1 | 70 | === Current sensor === |
![]() |
4.2 | 71 | |
72 | After selecting the assignment of the analog inputs, you need to configure the parameters of the sensors connected to the board. | ||
![]() |
4.3 | 73 | |
74 | To configure the current sensor parameters, select the menu "Signals → Current sensor": | ||
![]() |
6.2 | 75 | |
![]() |
17.1 | 76 | [[image:1732202357233-620.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="453" width="284"]] |
![]() |
6.2 | 77 | |
78 | In the «Primary sensor» и «Auxiliary sensor» sections: | ||
79 | |||
80 | * Sensor type – drop-down menu with supported sensor types; | ||
81 | * Nominal current – rated current of the sensor according to the datasheet, А; | ||
82 | * Sensitivity – sensitivity of the current sensor according to the datasheet, V / I,,nominal.,,; | ||
83 | * Zero level – level "0A" of the current sensor, V; | ||
84 | * Multiply the charging current (experimental) – experimental flag for scaling the charging current by given multiplier; | ||
85 | * Multiplier – charging current multiplier; | ||
86 | |||
87 | In the «Options» section: | ||
88 | |||
89 | * Calibrate sensor on startup – calibration flag (zero level setting) of the current sensor when the board is started; | ||
90 | * Calibration time – calibration time of the current sensor, second; | ||
91 | * System consumption (current offset) – consumption of the BMS system from the battery, A; This setting is used to adjust the current sensor; | ||
92 | * Set sensor zero level – command set the zero level of the current sensor (used for service purposes). | ||
93 | |||
![]() |
7.2 | 94 | (% class="box infomessage" %) |
95 | ((( | ||
![]() |
7.4 | 96 | If the "Sensor type" is selected, the “Nominal current” and “Sensitivity” fields are automatically filled. |
97 | If the "Sensor type" has no necessary preset, the “Nominal current” and “Sensitivity” parameters must be **manually **entered. | ||
![]() |
7.2 | 98 | ))) |
![]() |
6.2 | 99 | |
![]() |
8.2 | 100 | Calibration of the current sensor (“Calibrate sensor on startup” flag) is necessary if the sensor does not have a reference line (zero level signal). |
101 | |||
![]() |
20.1 | 102 | === Current shunt sensor === |
![]() |
8.2 | 103 | |
104 | To configure the shunt current sensor parameters, select the menu "Signals → Current shunt sensor": | ||
105 | |||
![]() |
17.1 | 106 | [[image:1732202640889-562.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="342" width="265"]] |
![]() |
8.3 | 107 | |
108 | In this section: | ||
109 | |||
110 | * Settings: | ||
![]() |
16.1 | 111 | ** Enable – a flag to start interaction with BMS Current Sensor (if interaction is enabled then BMS doesn’t use Hall-Effect current sensor which settings are described in the menu "Signals → Current sensor"); |
112 | ** Node ID – an address of BMS Current Sensor in CANopen network; | ||
113 | ** Dispatch timeout – timeout of dispatching packages from BMS Current Sensor (if no data is being received from current sensor during this time, the “Shunt offline” flag is set), millisecond; | ||
114 | ** Zero level threshold – T,,0,, level, A (if module of instantaneous current (I,,I,,) which is received from shunt sensor is lower than T,,0,,, BMS will assume that current flowing through the battery is zero); | ||
115 | ** Mean level threshold – TM level, A (if module of instantaneous current (I,,I,,) which is received from shunt sensor is between T,,M,, and T,,0,,, BMS will use mean value of current I,,M,,; if I,,I,, is greater than T,,M,,, BMS will use instantaneous value of current I,,I,,); | ||
116 | ** Invert – a flag to invert current values; | ||
![]() |
8.3 | 117 | * Sensor state: |
118 | ** Online – a flag showing that the communication with the BMS Current Sensor is established; | ||
119 | ** Errors – a list of internal errors of the shunt sensor; | ||
120 | ** Current – an instantaneous value of current measured by the BMS Current Sensor, A (measuring frequency is 50 Hz); | ||
121 | ** Current (mean) – a mean value of current measured by the BMS Current Sensor, A (the value is calculated as an average of 100 consistent measurements); | ||
122 | ** Temperature – a temperature of the shunt sensor, °C. | ||
123 | |||
![]() |
20.1 | 124 | === Temperature sensor === |
![]() |
8.5 | 125 | |
126 | To configure the temperature sensor parameters, select the menu "Signals → Temperature sensor": | ||
![]() |
9.2 | 127 | |
![]() |
17.1 | 128 | [[image:1732204766138-628.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="112" width="256"]] |
![]() |
9.2 | 129 | |
130 | In this section: | ||
131 | |||
![]() |
23.7 | 132 | * Type – type of temperature sensors; |
![]() |
26.1 | 133 | * Mask – mask to ignore the temperature from the corresponding temperature sensors; bit //i// corresponds to temperature input //#(i+1)// of each BMS Logic device; mask 0x5 means that the BMS marks all temperature sensors connected to inputs #1 and #3 of each BMS Logic device as missing and doesn't use them in calculations. |
![]() |
9.2 | 134 | |
135 | (% class="box infomessage" %) | ||
136 | ((( | ||
137 | **Note:** Temperature sensors connected to the BMS Main 2.x and BMS Logic boards must be the same type. | ||
138 | ))) | ||
![]() |
10.2 | 139 | |
![]() |
20.1 | 140 | === Humidity sensor === |
![]() |
10.2 | 141 | |
142 | To set the humidity sensor parameters, select the menu "Signals → Humidity sensor": | ||
143 | |||
![]() |
17.1 | 144 | [[image:1732204899160-307.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="120" width="195"]] |
![]() |
10.3 | 145 | |
146 | In this section: | ||
147 | |||
148 | * Type – type of the humidity sensor. | ||
149 | |||
![]() |
20.1 | 150 | === Output signals === |
![]() |
11.2 | 151 | |
![]() |
16.1 | 152 | The BMS Main 2.x board has **4 discrete outputs**. For each discrete output, its purpose and inversion requirement are specified. |
![]() |
11.2 | 153 | |
![]() |
16.1 | 154 | The BMS Main 2.x board has **4 solid-state relays** (#1 and #2 of them are bipolar, and the #3 and #4 are unipolar). For each relay, its purpose and inversion requirement are specified. |
![]() |
14.1 | 155 | |
![]() |
16.1 | 156 | The order of the numbering of the discrete outputs and the relay corresponds to the order of the numbering on the board. |
157 | |||
![]() |
14.1 | 158 | To configure output discrete signals and relays, select the menu "Signals → Output signals": |
159 | |||
![]() |
17.1 | 160 | [[image:1732205046156-597.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="346" width="295"]] |
![]() |
14.1 | 161 | |
![]() |
26.2 | 162 | A list of available **discrete input assignments **is available in [[Input signals>>doc:Battery management systems.Additional information.1\. Battery controllers\: signals and errors.WebHome||anchor="HInputsignals"]]. |
![]() |
14.1 | 163 | |
![]() |
23.1 | 164 | If the "Low SOC" assignment is selected, the output indicates the low battery charge level (see [[Low SOC signal>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HLowSOCsignal"]]). |
![]() |
11.2 | 165 | |
![]() |
23.1 | 166 | If the "High battery charge current" assignment is selected, the output indicates that the charging current exceeds the predefined value (see [[High charging current signal>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HHighchargingcurrentsignal"]]). |
![]() |
11.2 | 167 | |
![]() |
23.1 | 168 | If the "Cooler" assignment is selected, the output indicates the overheating of the battery (see [[High temperature protection>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HHightemperatureprotection"]]). |
![]() |
11.2 | 169 | |
![]() |
23.1 | 170 | If the "Heater" assignment is selected, the output indicates the low battery temperature signal (see [[Low temperature protection>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HLowtemperatureprotection"]]). |
![]() |
11.2 | 171 | |
![]() |
22.1 | 172 | If the "Allow charging" assignment is selected, the output is used to give the charger the allowance to charge the battery (see [[Charge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HChargecontrol"]]). |
![]() |
11.2 | 173 | |
![]() |
22.1 | 174 | If the "Precharging" assignment is selected, the output is used to charge the capacitive load (see [[Discharge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischargecontrol"]]). |
![]() |
11.2 | 175 | |
![]() |
22.1 | 176 | If the "Acknowledgement of power down" assignment is selected, the output is used to acknowledge power down of the BMS. Acknowledgement is outputted when the charge and discharge relays have been opened on power down request (see [[Charge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HChargecontrol"]] and [[Discharge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischargecontrol"]]). |
![]() |
11.2 | 177 | |
![]() |
23.1 | 178 | If the "Power up" assignment is selected, the output is used to indicate the power status of BMS (see [[Power down control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HPowerdowncontrol"]]). |
![]() |
11.2 | 179 | |
180 | |||
![]() |
18.1 | 181 | **Relay assignments** in this section: |
![]() |
11.2 | 182 | |
183 | * No relay; | ||
184 | * Charging; | ||
185 | * Discharging; | ||
186 | * Allow charging; | ||
187 | * Cooler; | ||
188 | * Heater; | ||
189 | * Precharging; | ||
190 | * Balancing series 1; | ||
191 | * Balancing series 2; | ||
192 | * Discharging (AUX); | ||
193 | * Main contactor; | ||
194 | * Power up. | ||
195 | |||
![]() |
22.1 | 196 | If the "Charging" assignment is selected, the relay is used to charge the battery (see [[Charge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HChargecontrol"]]). |
![]() |
11.2 | 197 | |
![]() |
22.1 | 198 | If the "Discharging" assignment is selected, the relay is used to connect battery to the load (see [[Discharge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischargecontrol"]]). |
![]() |
11.2 | 199 | |
![]() |
22.1 | 200 | If the "Allow charging" assignment is selected, the relay is used to give the charger an allowance to charge the battery (see [[Charge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HChargecontrol"]]). |
![]() |
11.2 | 201 | |
![]() |
23.1 | 202 | If the "Cooler" assignment is selected, the relay receives a signal indicating overheating of the battery (see [[High temperature protection>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HHightemperatureprotection"]]) or the signal "Cooler" (see [[Cooler control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HCoolercontrol"]]). |
![]() |
11.2 | 203 | |
![]() |
23.1 | 204 | If the "Heater" assignment is selected, a low battery temperature signal is outputted to the relay (see [[Low temperature protection>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HLowtemperatureprotection"]]) or a signal "Heater" (see [[Heater control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="HHeatercontrol"]]). |
![]() |
11.2 | 205 | |
![]() |
22.1 | 206 | If the "Precharging" assignment is selected, the relay is used to charge the capacitive load (see [[Discharge control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischargecontrol"]]). |
![]() |
11.2 | 207 | |
![]() |
21.1 | 208 | If the "Balancing series 1" assignment is selected, the relay is used to connect a balancing resistor to the cell series 1 (see [[Series balancing>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.4 Battery parameters.WebHome||anchor="HSeriesbalancing"]]). |
![]() |
11.2 | 209 | |
![]() |
21.1 | 210 | If the "Balancing series 2" assignment is selected, the relay is used to connect a balancing resistor to the cell series 2 (see [[Series balancing>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.4 Battery parameters.WebHome||anchor="HSeriesbalancing"]]). |
![]() |
11.2 | 211 | |
![]() |
22.1 | 212 | If the "Discharging (AUX)" assignment is selected, the relay is used to power external equipment (see [[Discharging (AUX) control>>doc:Battery management systems.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="HDischarging(AUX)control"]]). |
![]() |
11.2 | 213 | |
214 | If the "Main contactor" assignment is selected, the relay is used to close the main contactor in the common (minus) power bus. | ||
215 | |||
216 | If the "Power up" assignment is selected, the relay is used to close the contactor in the BMS Main power bus. |