Wiki source code of 3.2 Inputs and outputs

Last modified by Admin on 2025/04/09 12:33

Hide last authors
Admin 2.1 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 3X 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:1734022225578-818.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="153" width="600"]]
16
Admin 5.1 17 (% class="box infomessage" %)
18 (((
Admin 3.2 19 A list of available discrete input assignments is available in [[Input signals>>doc:Battery management systems.Additional information.2\. Strings controllers\: signals and errors.WebHome||anchor="HInputsignals"]].
Admin 5.1 20 )))
Admin 2.1 21
22 Inversion flags for discrete inputs are configured in the "Signals → Input discrete signals → Inversion" section:
23
24 [[image:1734022225583-740.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="137" width="600"]]
25
26 The behavior of “KEYRUN” signal can be configured in the "Signals → Input discrete signals → KEYRUN mode" section:
27
28 [[image:1734022225584-474.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="87" width="600"]]
29
30 The behavior of “CHARGE_ON” signal can be configured in the "Signals → Input discrete signals → CHARGE_ON mode" section:
31
32 [[image:1734022225585-775.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="89" width="600"]]
33
34 In both “KEYRUN mode” and “CHARGE_ON mode” sections:
35
36 * Do nothing – power on device and do nothing;
37 * Set “Join to discharge” – power on device and set “Join to discharge” signal immediately;
38 * Set “Join to charge” – power on device and set “Join to charge” signal immediately;
39 * Set “Discharge request” – power on device and set “Discharge request” signal immediately;
40 * Set “Charge request” – power on device and set “Charge request” signal immediately.
41
42 === Current sensor ===
43
44 The BMS Main 3X device has an ability to measure battery current by **3 external Hall-Effect current sensors**.
45
46 Current sensor settings are configured in the "Signals → Current sensor" section:
47
48 [[image:1734022225586-287.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="178" width="600"]]
49
50 The device supports the following current sensor settings:
51
52 * Calculate the battery current as the sum of battery modules currents – a flag that determines overall current as sum of battery modules currents (if flag is not set, device uses measurements from a physical current sensor);
53 * Connection – type of multiple sensors connection
54 ** One sensor (#1) – only first sensor is used to measure the battery current;
55 ** Two sensors (#1 and #2) in parallel – sensors are connected in parallel (the total battery current equals the sum of two sensors);
56 ** Two sensors (#1 and #2) in different branches – sensors located in two halves of the battery (used in batteries with a middle point);
57 * Sensor 2, 3: Enable – a flag to enable the second of third current sensor;
58 * Sensor 1, 2, 3: Nominal current – rated current I,,nom,, of the sensor according to the datasheet, A;
59 * Sensor 1, 2, 3: Sensitivity – sensitivity of the current sensor according to the datasheet, V / I,,nom.,,;
60 * Sensor 1, 2, 3: Invert – invert the sign of the measured value;
61 * Sensor 1, 2, 3: Multiply charging current (experimental) – an experimental flag for scaling the charging current by given multiplier;
62 * Sensor 1, 2, 3: Multiplier for charging current – charging current multiplier;
63 * Sensor 1, 2, 3: REF_IN2 mode – mode of additional analog line:
64 ** Not connected;
65 ** Reference line – reference output of the sensor;
66 ** Low range (for the dual range sensor) - a second output of a dual-range sensor (for example, LEM DHAB series);
67 * 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, A;
68 * Sensor 1, 2, 3: Low range sensitivity – sensitivity of the low current line of dual range sensor according to the datasheet, V / I,,nominal.,,;
69 * 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;
70 * Calibrate – a flag to calibrate (find a 0A point) the current sensor when the device is started;
71 * Calibration time – calibration time of the current sensor, millisecond;
72 * Recalibrate current sensor – a command to calibrate the current sensor manually.
73
74 === Temperature sensors ===
75
76 Temperature sensors settings are configured in the "Signals → Temperature sensors" section:
77
78 [[image:1734022225587-758.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="58" width="600"]]
79
80 In this section:
81
82 * Type – a type of temperature sensors.
83
84 === Output discrete signals ===
85
86 The BMS Main 3X device has **4 open drain outputs**. For each discrete output, its assignment and inversion flag are set.
87
88 Assignments of discrete outputs are configured in the "Signals → Output discrete signals → Assignments" section:
89
90 [[image:1734022225588-223.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="131" width="600"]]
91
Admin 5.1 92 (% class="box infomessage" %)
93 (((
Admin 3.2 94 A list of available discrete output assignments is available in [[Internal signals>>doc:Battery management systems.Additional information.2\. Strings controllers\: signals and errors.WebHome||anchor="HInternalsignals"]].
Admin 5.1 95 )))
Admin 2.1 96
97 Inversion flags for discrete outputs are configured in the "Signals → Output discrete signals → Inversion" section:
98
99 [[image:1734022225589-659.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="118" width="600"]]
100
101
102 === Power switches ===
103
104 The BMS Main 3X device has **6 power switches to drive contactors**. For each switch, its assignment and inversion flag are set.
105
106 Assignments of power switches are configured in the "Signals → Power switches → Assignments" section:
107
108 [[image:1734022225590-811.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="145" width="600"]]
109
Admin 5.1 110 (% class="box infomessage" %)
111 (((
Admin 4.1 112 A list of available discrete output assignments is available in [[Internal signals>>doc:Battery management systems.Additional information.2\. Strings controllers\: signals and errors.WebHome||anchor="HInternalsignals"]].
Admin 5.1 113 )))
Admin 2.1 114
115 Inversion flags for switches are configured in the “Signals → Power switches → Inversion” section:
116
117 [[image:1734022225591-262.png||data-xwiki-image-style-alignment="center" data-xwiki-image-style-border="true" height="137" width="600"]]
118
119