Wiki source code of 3.3 Input and output signals

Version 23.1 by Admin on 2024/12/11 11:21

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