Wiki source code of 3.3 Input and output signals

Version 9.1 by Admin on 2024/11/21 15:59

Hide last authors
Admin 3.3 1 == 3.3.1 Input signals ==
Admin 1.1 2
Admin 4.7 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. The following discrete input assignment options are supported:
Admin 2.2 4
Admin 3.3 5 * no signal;
6 * signal from battery cover;
7 * charger connected;
8 * power up/down request;
9 * inhibit charging;
10 * inhibit discharging;
11 * CH contactor feedback;
12 * DCH contactor feedback;
13 * Insulation status;
14 * Charge request;
15 * Precharge request;
16 * Discharge request;
17 * PCH contactor feedback;
18 * CH/DCH contactor feedback;
19 * Main contactor feedback.
Admin 2.2 20
Admin 3.4 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 section Battery cover protection).
Admin 2.2 22
Admin 3.4 23 if the "Charger connected" assignment is selected, the discrete input is involved in the algorithms of charge and discharge control (see sections Charge control and Discharge control).
Admin 2.2 24
Admin 3.4 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 sections Charge control and Discharge control).
Admin 3.3 26
Admin 3.4 27 If the “Inhibit charging” assignment is selected, the discrete input is used to open the charging relay.
Admin 3.3 28
Admin 3.4 29 If the “Inhibit discharging” assignment is selected, the discrete input is used to open the discharging relay.
Admin 3.3 30
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 section Contactor feedback check).
32
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 sections Charge control and Discharge control).
34
35 If the “Insulation status” assignment is selected, the discrete input is used to monitor a signal from an external insulation monitoring device (see section Insulation monitoring).
36
37 BMS Main 2.x board has 4 analog inputs for connecting current, temperature and humidity sensors. **Assignment of analog inputs must be selected as follows**:
38
Admin 6.2 39 * Analog Input #1 – Current sensor;
Admin 4.7 40 * Analog Input #2 – No input / Current sensor reference line / Current sensor (2nd range) (see note);
41 * Analog Input #3 – No input / Temperature sensor / Current sensor (AUX);
42 * Analog Input #4 – No input / Humidity sensor / Current reference line (AUX) / Current sensor (2nd range) (AUX).
Admin 3.3 43
44 (% class="box warningmessage" %)
45 (((
46 **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 section Series balancing).
47 )))
48
49 (% class="box warningmessage" %)
50 (((
Admin 3.4 51 **Warning: **reassignment of analog inputs is **unacceptable.**
Admin 3.3 52 )))
53
Admin 3.4 54 (% class="box infomessage" %)
55 (((
Admin 4.3 56 **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 57 )))
58
59 To configure the input discrete and analog signals, select the menu "Signals → Input signals":
Admin 4.2 60
61 [[Input signals section>>image:1732201986070-992.png||data-xwiki-image-style-alignment="center" height="290" width="272"]]
62
Admin 4.3 63 The order of the numbering of the discrete and analog inputs corresponds to the order of the numbering on the board.
Admin 4.2 64
65 In this section:
66
67 * Discrete inputs:
68 ** No input;
69 ** Battery cover – a signal from the battery cover trailer;
70 ** Charger connected – a signal from the charger connector;
71 ** Power up/down request – a signal from the external power monitor which is used for proper powering BMS up or down;
72 ** Inhibit charging – a command to open the charging relay;
73 ** Inhibit discharging – a command to open the discharging relay;
74 ** CH contactor feedback – a feedback signal from the charging contactor;
75 ** DCH contactor feedback – a feedback signal from the discharging contactor;
76 ** Insulation status – a signal from an external insulation monitoring device;
77 ** Charge request – a request for closing the charging contactor;
78 ** Precharge request – a request for closing the precharging contactor;
79 ** Discharge request – a request for closing the discharging contactor;
80 ** PCH contactor feedback – a feedback signal from the precharging contactor;
81 ** CH/DCH contactor feedback – a feedback signal from the charging/discharging contactor;
82 ** Main contactor feedback – a feedback signal from the main contactor.
83 * Analog inputs:
84 ** No input;
85 ** Current sensor;
86 ** Current zero level;
87 ** Temperature sensor;
88 ** Humidity sensor;
89 ** Current sensor (AUX) – additional current sensor for measuring current in a series of cells;
90 ** Current zero level (AUX) – zero level bus for additional current sensor.
91
Admin 4.3 92 === 3.3.2 Current sensor ===
Admin 4.2 93
94 After selecting the assignment of the analog inputs, you need to configure the parameters of the sensors connected to the board.
Admin 4.3 95
96 To configure the current sensor parameters, select the menu "Signals → Current sensor":
Admin 6.2 97
98 [[Current sensor settings>>image:1732202357233-620.png||data-xwiki-image-style-alignment="center" height="453" width="284"]]
99
100
101 In the «Primary sensor» и «Auxiliary sensor» sections:
102
103 * Sensor type – drop-down menu with supported sensor types;
104 * Nominal current – rated current of the sensor according to the datasheet, А;
105 * Sensitivity – sensitivity of the current sensor according to the datasheet, V / I,,nominal.,,;
106 * Zero level – level "0A" of the current sensor, V;
107 * Multiply the charging current (experimental) – experimental flag for scaling the charging current by given multiplier;
108 * Multiplier – charging current multiplier;
109
110 In the «Options» section:
111
112 * Calibrate sensor on startup – calibration flag (zero level setting) of the current sensor when the board is started;
113 * Calibration time – calibration time of the current sensor, second;
114 * System consumption (current offset) – consumption of the BMS system from the battery, A; This setting is used to adjust the current sensor;
115 * Set sensor zero level – command set the zero level of the current sensor (used for service purposes).
116
Admin 7.2 117 (% class="box infomessage" %)
118 (((
Admin 7.4 119 If the "Sensor type" is selected, the “Nominal current” and “Sensitivity” fields are automatically filled.
120 If the "Sensor type" has no necessary preset, the “Nominal current” and “Sensitivity” parameters must be **manually **entered.
Admin 7.2 121 )))
Admin 6.2 122
Admin 8.2 123 Calibration of the current sensor (“Calibrate sensor on startup” flag) is necessary if the sensor does not have a reference line (zero level signal).
124
125 === 3.3.3 Current shunt sensor ===
126
127 To configure the shunt current sensor parameters, select the menu "Signals → Current shunt sensor":
128
Admin 8.3 129 [[Shunt sensor settings>>image:1732202640889-562.png||data-xwiki-image-style-alignment="center" height="342" width="265"]]
130
131 In this section:
132
133 * Settings:
134 * 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");
135 * Node ID – an address of BMS Current Sensor in CANopen network;
136 * 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;
137 * 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);
138 * 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,,);
139 * Invert – a flag to invert current values;
140 * Sensor state:
141 ** Online – a flag showing that the communication with the BMS Current Sensor is established;
142 ** Errors – a list of internal errors of the shunt sensor;
143 ** Current – an instantaneous value of current measured by the BMS Current Sensor, A (measuring frequency is 50 Hz);
144 ** 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);
145 ** Temperature – a temperature of the shunt sensor, °C.
146
Admin 8.5 147 === 3.3.4 Temperature sensor ===
148
149 To configure the temperature sensor parameters, select the menu "Signals → Temperature sensor":