Wiki source code of 3.2 Inputs and outputs

Version 2.1 by Admin on 2024/12/04 14:11

Hide last authors
Admin 1.1 1 == ​​​​​​3.2.1 Discrete inputs ==
2
3 The BMS Main 3 device has 6 discrete inputs that detect signal line closing to the virtual ground, and 2 inputs that detect 9-32V input voltage. For each discrete input, its assignment and inversion flag are set.
4
5 Also, BMS has two additional configurable inputs named “KEYRUN” and “CHARGE_ON”, each serves 9-32V input voltage. Those inputs serve as power buttons with additional functions that can be set.
6
7 Assignments of discrete inputs are configured in the "Signals → Input discrete signals → Assignments" section:
8
9 [[image:1733320685766-185.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="226" width="800"]]
10
11 The device supports the following assignments for discrete inputs:
12
13 * No input – input is not used;
14 * Battery cover – a signal from the battery cover;
15 * Charger connected – a signal indicating that charger is connected;
16 * Power up/down request – a request to power down the device;
17 * Inhibit charging – a command to open the charging contactor;
18 * Inhibit discharging – a command to open the discharging contactor;
19 * CH contactor feedback – a signal from charging contactor feedback loop;
20 * DCH contactor feedback – a signal from discharging contactor feedback loop;
21 * Insulation status – a signal from an insulation monitoring device;
22 * Charge request – a request to close the charging contactor;
23 * Precharge request – a request to close the precharging contactor;
24 * Discharge request – a request to close the discharging contactor;
25 * PCH contactor feedback – a signal from precharging contactor feedback loop;
26 * CH/DCH contactor feedback – a signal from charging/discharging contactor feedback loop;
27 * Main contactor feedback – a signal from main contactor feedback loop;
28 * Interlock – a signal from interlock loop;
29 * Fuse 1, Fuse 2, Fuse 3 – signals from fuses;
30 * Circuit breaker status – status of protection disconnector;
31 * Balancing request – a request to balance the cells;
32 * Close Main contactor – a request to close the main contactor.
33
34 Inversion flags for discrete inputs are configured in the "Signals → Input discrete signals → Inversion" section:
35
36 [[image:1733320685770-300.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="209" width="800"]]
37
38 The behavior of “KEYRUN” signal can be configured in the "Signals → Input discrete signals → KEYRUN mode" section:
39
40 [[image:1733320685772-445.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="112" width="800"]]
41
42 The behavior of “CHARGE_ON” signal can be configured in the "Signals → Input discrete signals → CHARGE_ON mode" section:
43
44 [[image:1733320685772-786.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="111" width="800"]]
45
46 In both “KEYRUN mode” and “CHARGE_ON mode“ sections:
47
48 * Do nothing – power on device and do nothing;
49 * Set “Discharge request” – power on device and set “Discharge request” signal immediately;
50 * Set “Charge request” – power on device and set “Charge request” signal immediately.
51
52 == 3.2.2 Current sensor ==
53
54 The BMS Main 3 device has an ability to measure battery current by 3 external Hall-Effect current sensors.
55
56 Current sensor settings are configured in the "Signals → Current sensor" section:
57
58 [[image:1733320685773-566.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="361" width="800"]]
59
60 The device supports the following current sensor settings:
61
62 * Connection – type of multiple sensors connection
63 ** One sensor (#1) – only first sensor is used to measure the battery current;
64 ** Two sensors (#1 and #2) in parallel – sensors are connected in parallel (the total battery current equals the sum of two sensors);
65 ** Two sensors (#1 and #2) in different branches – sensors located in two halves of the battery (used in batteries with a middle point);
66 * Sensor 2, 3: Enable – a flag to enable the second of third current sensor;
67 * Sensor 1, 2, 3: Nominal current – rated current I,,nom,, of the sensor according to the datasheet, А;
68 * Sensor 1, 2, 3: Sensitivity – sensitivity of the current sensor according to the datasheet, V / I,,nom.,,;
69 * Sensor 1, 2, 3: Invert – invert the sign of the measured value;
70 * Sensor 1, 2, 3: Multiply charging current (experimental) – an experimental flag for scaling the charging current by given multiplier;
71 * Sensor 1, 2, 3: Multiplier for charging current – charging current multiplier;
72 * Sensor 1, 2, 3: REF_IN2 mode – mode of additional analog line:
73 ** Not connected;
74 ** Reference line – reference output of the sensor;
75 ** Low range (for the dual range sensor) - a second output of a dual-range sensor (for example, LEM DHAB series);
76 * Sensor 1, 2, 3: Low range nominal current - rated current I,,nom,, of the low current line of dual range sensor according to the datasheet, А;
77 * Sensor 1, 2, 3: Low range sensitivity – sensitivity of the low current line of dual range sensor according to the datasheet, V / I,,nominal.,,;
78 * Sensor 1, 2, 3: Threshold for low range – a threshold current value at which the device uses the readings of the high current sensor instead of low current, A;
79 * Calibrate – a flag to calibrate (find a 0A point) the current sensor when the device is started;
80 * Calibration time – calibration time of the current sensor, millisecond;
81 * Recalibrate current sensor – a command to calibrate the current sensor manually.
82
83 == 3.2.3 Shunt sensor (CAN bus) ==
84
85 The BMS Main 3 device has an ability to measure battery current via a shunt sensor, connected to the CAN bus.
86
87 (% class="box infomessage" %)
88 (((
89 **Note: **The shunt sensor communication protocol can be provided by request.
90 )))
91
92 Shunt sensor settings are configured in the "Signals → Shunt sensor (CAN bus)" section:
93
94 [[image:1733320685776-802.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="108" width="800"]]
95
96 The device supports the following shunt sensor settings:
97
98 * Enable – a flag to start interaction with the BMS Current Sensor (if interaction is enabled, then BMS doesn’t use Hall-Effect current sensor which settings are described in the section "Signals → Current sensor");
99 * Node ID – an address of BMS Current Sensor in the CANopen network;
100 * Invert – a flag to invert current measurements;
101 * Receive timeout – a timeout for receiving messages from the BMS Current Sensor (if no data is being received from the current sensor during this time, the “Shunt offline” flag is set), millisecond;
102 * Mean value threshold – T,,M,, level, A (if module of instantaneous current (I,,I,,) which is received from the shunt sensor is between T,,M,, and T,,0,,, the BMS will use mean value of current I,,M,,; if I,,I,, is greater than T,,M,,, the BMS will use instantaneous value of current I,,I,,);
103 * Zero threshold – T,,0,, level, A (if module of instantaneous current (I,,I,,) which is received from the shunt sensor is lower than T,,0,,, the BMS will assume that current flowing through the battery is zero);
104
105 === 3.2.4 Temperature sensors ===
106
107 Temperature sensors settings are configured in the "Signals → Temperature sensors" section:
108
109 [[image:1733320685777-354.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="97" width="800"]]
110
111 In this section:
112
113 * Type – a type of temperature sensors.
114
115 === 3.2.5 Output discrete signals ===
116
117 The BMS Main 3 device has 4 open drain type outputs. For each discrete output, its assignment and inversion flag are set.
118
119 Assignments of discrete outputs are configured in the "Signals → Output discrete signals → Assignments" section:
120
121 [[image:1733320685778-896.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="148" width="800"]]
122
123 The device supports the following assignments for discrete outputs:
124
125 * No output – output is not used.
126 * Low SOC – a signal corresponding the low SOC of the battery;
127 * High charging current – charging current is high;
128 * Main contactor – state of the main contactor;
129 * Charging – state of the charging contactor;
130 * Allow charging – a signal for a charger to start charging;
131 * Charging current present – the presence of the charging current;
132 * Precharging – state of the precharging contactor;
133 * Discharging – state of the discharging contactor;
134 * Discharging current present – the presence of the discharging current;
135 * Discharging (AUX) – state of the auxiliary discharging contactor;
136 * Power down ACK – an acknowledgement of BMS power down. Acknowledgement is outputted when the charge and discharge contactors have been opened on power down request;
137 * Charging/discharging - state of the charging/discharging contactor;
138 * Heater – a command to turn on a heater;
139 * Cooler – a command to turn on a cooler;
140 * Balancing 1 – balancing the first series of cells;
141 * Balancing 2 – balancing the second series of cells;
142 * Ready to charge – the battery is ready to be charged;
143 * Ready to discharge – the battery is ready to be discharged;
144 * Power up – an indication of BMS power status.
145 * General error – state of the configurable (general) error.
146
147 Inversion flags for discrete outputs are configured in the "Signals → Output discrete signals → Inversion" section:
148
149 [[image:1733320685780-193.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="127" width="800"]]
150
151 === 3.2.6 Power switches ===
152
153 The BMS Main 3 device has 6 power switches to drive contactors. For each switch, its assignment and inversion flag are set.
154
155 Assignments of power switches are configured in the "Signals → Power switches → Assignments" section:
156
157 [[image:1733320685782-487.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="168" width="800"]]
158
159 The device supports the same switch assignments as discrete outputs.
160
161 Inversion flags for switches are configured in the “Signals → Power switches → Inversion” section:
162
163 [[image:1733320685783-267.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="150" width="800"]]
Admin 2.1 164
165