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