Wiki source code of 3.3 Input and output signals

Version 18.1 by Admin on 2024/12/02 15:46

Hide last authors
Admin 3.3 1 == 3.3.1 Input signals ==
Admin 1.1 2
Admin 14.1 3 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.
Admin 2.2 4
Admin 14.1 5 BMS Main 2.x board has **4 analog inputs** for connecting current, temperature and humidity sensors.
Admin 2.2 6
Admin 16.1 7 The order of the numbering of the discrete and analog inputs corresponds to the order of the numbering on the board.
8
Admin 14.1 9 (% id="cke_bm_2415S" style="display:none" %) (%%)To configure the input discrete and analog signals, select the menu "Signals → Input signals":
10
Admin 17.1 11 [[image:1732201986070-992.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="290" width="272"]]
Admin 14.1 12
Admin 18.1 13 **Discrete inputs** in this section:
Admin 14.1 14
15 * No input;
16 * Battery cover – a signal from the battery cover trailer;
17 * Charger connected – a signal from the charger connector;
18 * Power up/down request – a signal from the external power monitor which is used for proper powering BMS up or down;
19 * Inhibit charging – a command to open the charging relay;
20 * Inhibit discharging – a command to open the discharging relay;
21 * CH contactor feedback – a feedback signal from the charging contactor;
22 * DCH contactor feedback – a feedback signal from the discharging contactor;
23 * Insulation status – a signal from an external insulation monitoring device;
24 * Charge request – a request for closing the charging contactor;
25 * Precharge request – a request for closing the precharging contactor;
26 * Discharge request – a request for closing the discharging contactor;
27 * PCH contactor feedback – a feedback signal from the precharging contactor;
28 * CH/DCH contactor feedback – a feedback signal from the charging/discharging contactor;
29 * Main contactor feedback – a feedback signal from the main contactor.
30
Admin 18.1 31 If the "Signal from the battery cover" assignment is selected, the discrete input is used to monitor the state of the battery cover (see [[3.6.6 Battery cover protection>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.6Batterycoverprotection"]]).
Admin 2.2 32
Admin 18.1 33 if the "Charger connected" assignment is selected, the discrete input is involved in the algorithms of charge and discharge control (see [[3.5.1 Charge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.1Chargecontrol"]] and [[3.5.2 Discharge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.2Dischargecontrol"]]).
Admin 2.2 34
Admin 18.1 35 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 [[3.5.1 Charge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.1Chargecontrol"]] and [[3.5.2 Discharge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.2Dischargecontrol"]]).
Admin 3.3 36
Admin 3.4 37 If the “Inhibit charging” assignment is selected, the discrete input is used to open the charging relay.
Admin 3.3 38
Admin 3.4 39 If the “Inhibit discharging” assignment is selected, the discrete input is used to open the discharging relay.
Admin 3.3 40
Admin 18.1 41 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 [[3.6.14 Contactor feedback check>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.14Contactorfeedbackcheck"]]).
Admin 3.3 42
Admin 18.1 43 If the “Charge request”, “Precharge request” or “Discharge request” assignment is selected, the discrete input is used to control opening the corresponding contactor (see [[3.5.1 Charge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.1Chargecontrol"]] and [[3.5.2 Discharge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.2Dischargecontrol"]]).
Admin 3.3 44
Admin 18.1 45 If the “Insulation status” assignment is selected, the discrete input is used to monitor a signal from an external insulation monitoring device (see [[3.6.23 Insulation monitoring>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.23Insulationmonitoring"]]).
Admin 3.3 46
Admin 11.2 47
Admin 18.1 48 **Analog inputs** in this section:
Admin 3.3 49
Admin 14.1 50 * No input;
51 * Current sensor;
52 * Current zero level;
53 * Temperature sensor;
54 * Humidity sensor;
55 * Current sensor (AUX) – additional current sensor for measuring current in a series of cells;
56 * Current zero level (AUX) – zero level bus for additional current sensor.
57
58 **Assignment of analog inputs must be selected as follows**:
59
Admin 6.2 60 * Analog Input #1 – Current sensor;
Admin 4.7 61 * Analog Input #2 – No input / Current sensor reference line / Current sensor (2nd range) (see note);
62 * Analog Input #3 – No input / Temperature sensor / Current sensor (AUX);
63 * Analog Input #4 – No input / Humidity sensor / Current reference line (AUX) / Current sensor (2nd range) (AUX).
Admin 3.3 64
65 (% class="box warningmessage" %)
66 (((
Admin 18.1 67 **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 [[3.4.5 Series balancing>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.4 Battery parameters.WebHome||anchor="H3.4.5Seriesbalancing"]]).
Admin 3.3 68 )))
69
70 (% class="box warningmessage" %)
71 (((
Admin 3.4 72 **Warning: **reassignment of analog inputs is **unacceptable.**
Admin 3.3 73 )))
74
Admin 3.4 75 (% class="box infomessage" %)
76 (((
Admin 4.3 77 **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.
Admin 3.4 78 )))
79
Admin 13.1 80 == 3.3.2 Current sensor ==
Admin 4.2 81
82 After selecting the assignment of the analog inputs, you need to configure the parameters of the sensors connected to the board.
Admin 4.3 83
84 To configure the current sensor parameters, select the menu "Signals → Current sensor":
Admin 6.2 85
Admin 17.1 86 [[image:1732202357233-620.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="453" width="284"]]
Admin 6.2 87
88 In the «Primary sensor» и «Auxiliary sensor» sections:
89
90 * Sensor type – drop-down menu with supported sensor types;
91 * Nominal current – rated current of the sensor according to the datasheet, А;
92 * Sensitivity – sensitivity of the current sensor according to the datasheet, V / I,,nominal.,,;
93 * Zero level – level "0A" of the current sensor, V;
94 * Multiply the charging current (experimental) – experimental flag for scaling the charging current by given multiplier;
95 * Multiplier – charging current multiplier;
96
97 In the «Options» section:
98
99 * Calibrate sensor on startup – calibration flag (zero level setting) of the current sensor when the board is started;
100 * Calibration time – calibration time of the current sensor, second;
101 * System consumption (current offset) – consumption of the BMS system from the battery, A; This setting is used to adjust the current sensor;
102 * Set sensor zero level – command set the zero level of the current sensor (used for service purposes).
103
Admin 7.2 104 (% class="box infomessage" %)
105 (((
Admin 7.4 106 If the "Sensor type" is selected, the “Nominal current” and “Sensitivity” fields are automatically filled.
107 If the "Sensor type" has no necessary preset, the “Nominal current” and “Sensitivity” parameters must be **manually **entered.
Admin 7.2 108 )))
Admin 6.2 109
Admin 8.2 110 Calibration of the current sensor (“Calibrate sensor on startup” flag) is necessary if the sensor does not have a reference line (zero level signal).
111
Admin 13.1 112 == 3.3.3 Current shunt sensor ==
Admin 8.2 113
114 To configure the shunt current sensor parameters, select the menu "Signals → Current shunt sensor":
115
Admin 17.1 116 [[image:1732202640889-562.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="342" width="265"]]
Admin 8.3 117
118 In this section:
119
120 * Settings:
Admin 16.1 121 ** 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");
122 ** Node ID – an address of BMS Current Sensor in CANopen network;
123 ** 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;
124 ** 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);
125 ** 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,,);
126 ** Invert – a flag to invert current values;
Admin 8.3 127 * Sensor state:
128 ** Online – a flag showing that the communication with the BMS Current Sensor is established;
129 ** Errors – a list of internal errors of the shunt sensor;
130 ** Current – an instantaneous value of current measured by the BMS Current Sensor, A (measuring frequency is 50 Hz);
131 ** 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);
132 ** Temperature – a temperature of the shunt sensor, °C.
133
Admin 13.1 134 == 3.3.4 Temperature sensor ==
Admin 8.5 135
136 To configure the temperature sensor parameters, select the menu "Signals → Temperature sensor":
Admin 9.2 137
Admin 17.1 138 [[image:1732204766138-628.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="112" width="256"]]
Admin 9.2 139
140 In this section:
141
142 * Type – type of temperature sensors.
143 * Mask -
144
145 (% class="box infomessage" %)
146 (((
147 **Note:** Temperature sensors connected to the BMS Main 2.x and BMS Logic boards must be the same type.
148 )))
Admin 10.2 149
Admin 13.1 150 == 3.3.5 Humidity sensor ==
Admin 10.2 151
152 To set the humidity sensor parameters, select the menu "Signals → Humidity sensor":
153
Admin 17.1 154 [[image:1732204899160-307.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="120" width="195"]]
Admin 10.3 155
156 In this section:
157
158 * Type – type of the humidity sensor.
159
Admin 13.1 160 == 3.3.6 Output signals ==
Admin 11.2 161
Admin 16.1 162 The BMS Main 2.x board has **4 discrete outputs**. For each discrete output, its purpose and inversion requirement are specified.
Admin 11.2 163
Admin 16.1 164 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.
Admin 14.1 165
Admin 16.1 166 The order of the numbering of the discrete outputs and the relay corresponds to the order of the numbering on the board.
167
Admin 14.1 168 To configure output discrete signals and relays, select the menu "Signals → Output signals":
169
Admin 17.1 170 [[image:1732205046156-597.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="346" width="295"]]
Admin 14.1 171
Admin 18.1 172 **Discrete outputs** in this section:
Admin 14.1 173
Admin 11.2 174 * No output;
175 * Low SOC;
Admin 14.1 176 * High charging current;
Admin 11.2 177 * Cooler;
178 * Heater;
179 * Allow charging;
180 * Precharging;
181 * Acknowledgement of power down;
Admin 14.1 182 * Power up;
Admin 11.2 183
Admin 18.1 184 If the "Low SOC" assignment is selected, the output indicates the low battery charge level (see [[3.6.26 Low SOC signal>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.26LowSOCsignal"]]).
Admin 11.2 185
Admin 18.1 186 If the "High battery charge current" assignment is selected, the output indicates that the charging current exceeds the predefined value (see [[3.6.27 High charging current signal>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.27Highchargingcurrentsignal"]]).
Admin 11.2 187
Admin 18.1 188 If the "Cooler" assignment is selected, the output indicates the overheating of the battery (see [[3.6.5 High temperature protection>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.5Hightemperatureprotection"]]).
Admin 11.2 189
Admin 18.1 190 If the "Heater" assignment is selected, the output indicates the low battery temperature signal (see [[3.6.4 Low temperature protection>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.4Lowtemperatureprotection"]]).
Admin 11.2 191
Admin 18.1 192 If the "Allow charging" assignment is selected, the output is used to give the charger the allowance to charge the battery (see [[3.5.1 Charge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.1Chargecontrol"]]).
Admin 11.2 193
Admin 18.1 194 If the "Precharging" assignment is selected, the output is used to charge the capacitive load (see [[3.5.2 Discharge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.2Dischargecontrol"]]).
Admin 11.2 195
Admin 18.1 196 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 [[3.5.1 Charge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.1Chargecontrol"]] and [[3.5.2 Discharge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.2Dischargecontrol"]]).
Admin 11.2 197
Admin 18.1 198 If the "Power up" assignment is selected, the output is used to indicate the power status of BMS (see [[3.5.6 Power down control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.5.6Powerdowncontrol"]]).
Admin 11.2 199
200
Admin 18.1 201 **Relay assignments** in this section:
Admin 11.2 202
203 * No relay;
204 * Charging;
205 * Discharging;
206 * Allow charging;
207 * Cooler;
208 * Heater;
209 * Precharging;
210 * Balancing series 1;
211 * Balancing series 2;
212 * Discharging (AUX);
213 * Main contactor;
214 * Power up.
215
Admin 18.1 216 If the "Charging" assignment is selected, the relay is used to charge the battery (see [[3.5.1 Charge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.1Chargecontrol"]]).
Admin 11.2 217
Admin 18.1 218 If the "Discharging" assignment is selected, the relay is used to connect battery to the load (see [[3.5.2 Discharge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.2Dischargecontrol"]]).
Admin 11.2 219
Admin 18.1 220 If the "Allow charging" assignment is selected, the relay is used to give the charger an allowance to charge the battery (see [[3.5.1 Charge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.1Chargecontrol"]]).
Admin 11.2 221
Admin 18.1 222 If the "Cooler" assignment is selected, the relay receives a signal indicating overheating of the battery (see [[3.6.5 High temperature protection>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.5Hightemperatureprotection"]]) or the signal "Cooler" (see [[3.6.30 Cooler control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.30Coolercontrol"]]).
Admin 11.2 223
Admin 18.1 224 If the "Heater" assignment is selected, a low battery temperature signal is outputted to the relay (see [[3.6.4 Low temperature protection>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.4Lowtemperatureprotection"]]) or a signal "Heater" (see [[3.6.28 Heater control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.6 Battery protection.WebHome||anchor="H3.6.28Heatercontrol"]]).
Admin 11.2 225
Admin 18.1 226 If the "Precharging" assignment is selected, the relay is used to charge the capacitive load (see [[3.5.2 Discharge control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.2Dischargecontrol"]]).
Admin 11.2 227
Admin 18.1 228 If the "Balancing series 1" assignment is selected, the relay is used to connect a balancing resistor to the cell series 1 (see [[3.4.5 Series balancing>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.4 Battery parameters.WebHome||anchor="H3.4.5Seriesbalancing"]]).
Admin 11.2 229
Admin 18.1 230 If the "Balancing series 2" assignment is selected, the relay is used to connect a balancing resistor to the cell series 2 (see [[3.4.5 Series balancing>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.4 Battery parameters.WebHome||anchor="H3.4.5Seriesbalancing"]]).
Admin 11.2 231
Admin 18.1 232 If the "Discharging (AUX)" assignment is selected, the relay is used to power external equipment (see [[3.5.3 Discharging (AUX) control>>doc:drafts.BMS Main 2\.1.3\. Configuration.3\.5 Battery control.WebHome||anchor="H3.5.3Discharging(AUX)control"]]).
Admin 11.2 233
234 If the "Main contactor" assignment is selected, the relay is used to close the main contactor in the common (minus) power bus.
235
236 If the "Power up" assignment is selected, the relay is used to close the contactor in the BMS Main power bus.