Wiki source code of LCM-2WT

Version 2.1 by Leo Wei on 2022/06/08 14:42

Hide last authors
Leo Wei 1.1 1 (((
2 = **1 Weighing module principle** =
3 )))
4
5 When the metal material is subjected to tension, the metal material becomes thinner and the electrical impedance increases; conversely, when compressed, the metal resistance becomes smaller. Applying this method to make a strain gauge is called weighing module. This type of device converts the pressure in a physical phenomenon into electrical signal output, so it often used in the occasion of load, tension and pressure conversion.
6
7 (((
8 = **2 Introduction** =
9 )))
10
11 1. Thanks for your purchasing WECON LCM-2WT expansion module, the maximum resolution is 24-bit, using 4 or 6 wires weighing sensor.It can adjust the response speed according to the customer's demand, and can easily meet the overall demand of the current load application market;
12 1. To ensure proper installation and operation of this product, please read the user manual carefully before using this module, this manual is only for LCM-2WT;
13 1. Using RS485(Modbus protocol) to read/write data from/to LCM-2WT.
14
15 Warning: disconnect the power supply before installing/removing the module or wiring the module to avoid contact or product damage.
16
17 == **2.1 Specification** ==
18
19 (% class="table-bordered" %)
20 |**Item**|**Description**
21 |Channel|Double channel
22 |A/D converter|24 bitΔˉ∑ A/D
23 |Resolution|24bit (signed)
24 |Speed|7.5/10/25/50/60/150/300Hz available
25 |Polarity|Unipolar and bipolar
26 |Non-linearity|≤0.01% full scale(25℃)
27 |Zero drift|≤0.2μV/℃
28 |Gain drift|≤10ppm/℃
29 |Excitation current|5V,load impedance≥200Ω
30 |Sensor sensitivity|1mV/V-15mV/V
31 |Isolation|Transformer (power supply) and the optical coupler (signal)
32 |Lamp|Power supply lamp (24V), communication lamp(COM)
33 |Power supply|24V±20% 2VA
34 |Operating temperature|0~~60℃
35 |Storage temperature|-20~~80℃
36 |Dimension|90(L)x58(W)x80(H) mm
37
38 == **2.2 Valid bits** ==
39
40 For more details, refer to sampling frequency in Chapter 5, [[Section 5.2>>path:#_5.2_Buffer_(BFM)]] of this manual.
41
42 (((
43 = **3 Dimensions** =
44 )))
45
46 == **3.1 Dimensions** ==
47
48 (% style="text-align:center" %)
49 [[image:LCM-2WT user manual_html_f8c64fd33c53cb96.png||class="img-thumbnail" height="332" width="800"]]
50
51 (% style="text-align:center" %)
52 [[image:LCM-2WT user manual_html_f3ff8ddbebac7ca3.png||class="img-thumbnail" height="374" width="600"]]
53
54 ①COM: communication indicator of communication board and acquisition board
55
56 ② 24V: 24V indicator
57
58 ③ WT: channel input/output indicator
59
60 WE: Channel calibration indicator
61
62 ④ LINK: comm indicator of RS485
63
64 ⑤ RS485 communication terminal
65
66 ⑥ DC24V power supply
67
68 ⑦ Extension module name
69
70 ⑧ DIN rail mounting slot
71
72 ⑨ DIN rail hook
73
74 ⑩ Mounting holes (φ4.5)
75
76 (% class="table-bordered" %)
77 |**Name**|**Description**|**Indicator state**|**State**
78 |(% rowspan="3" %)LINK indicator|(% rowspan="3" %)RS485 comm. indicator|Blink|Normal
79 |OFF|Comm.is abnormal or failed
80 |ON|Software is running abnormally or hardware failure
81 |(% rowspan="3" %)COM indicator|(% rowspan="3" %)Communication & acquisition board comm. indicator|Blink|Normal
82 |OFF|Comm.is abnormal or failed
83 |ON|Software is running abnormally or hardware failure
84 |(% rowspan="3" %)WT indicator|(% rowspan="3" %)Channel input/output indicator|Blink|Analog input is over range
85 |ON|Analog input is in range
86 |OFF|Channel is closed
87 |(% rowspan="2" %)WE indicator|(% rowspan="2" %)Channel calibration indicator|OFF|Successful calibration
88 |ON|Calibration failed or not calibrated
89
90 (((
91 * Be sure to use the terminals that fit the dimensional requirements.
92 * Apply 0.5 to 0.8 N.m (5 to 8 kgf.cm) torque to tighten the terminals
93
94 (% style="text-align:center" %)
95 [[image:LCM-2WT user manual_html_567be68423413d26.png||class="img-thumbnail" height="199" width="300"]]
96 )))
97
98 == **3.2 Terminals** ==
99
100 Table 3 ‑1
101
102 (% class="table-bordered" %)
103 |**Terminals**|**Instruction**|**Terminals**|**Instruction**
104 |24V+|Power supply+|24V-|Power supply-
105 |GND|Ground|FG1|CH1 sensor grounding
106 |E1+|CH1 power supply+ (5V) for sensor|E1-|CH1 power supply- (5V) for sensor in
107 |S1+|CH1 signal output+ of sensor|S1-|CH1 signal output- of sensor
108 |F1+|CH1 feedback+ of sensor|F1-|CH1 feedback- of sensor
109 |E2+|CH2 power supply+ (5V) for sensor|E2-|CH2 power supply- (5V) for sensor in
110 |S2+|CH2 signal output+ of sensor|S2-|CH2 signal output- of sensor
111 |F2+|CH2 feedback+ of sensor|F2-|CH2 feedback- of sensor
112 |FG2|CH2 sensor grounding|(((
113 *
114 )))|
115
116 (((
117 = **4 Wiring** =
118 )))
119
120 (((
121 **✎Note: **
122
123 1. The impedance of the weighing sensor is greater than 50 Ω
124 1. The sensor with 4 wires requires E1+ connecting with F1+, E1 connecting with F1.
125
126 (% style="text-align:center" %)
127 [[image:1623052932789-253.png||class="img-thumbnail" height="313" width="400"]]
128
129
130 )))
131
132 (((
133 = **5 BFM instruction** =
134 )))
135
136 == **5.1 BFM list** ==
137
138 Table 5 ‑2
139
140 (% class="table-bordered" %)
141 |(% colspan="2" %)**BFM**|(% rowspan="2" %)**Latched**|(% rowspan="2" %)**Read/Write**|(% rowspan="2" %)**Function**|(% rowspan="2" %)**Default**|(% rowspan="2" %)**Range**|(% rowspan="2" %)**Description**
142 |**CH1**|**CH2**
143 |(% colspan="2" %)#0|0|R|Model|6050| |LCM-2WT model number
144 |(% colspan="2" %)#1|0|R|System version|100| |Software & hardware version
145 |#2|#42|0|R/W|Unipolar/Bipolar|0|0-1|(((
146 0: bipolar
147
148 1: unipolar
149 )))
150 |#3|#43|0|R/W|Sampling frequency|1|0-9|(((
151 0: 7.5 Hz;
152
153 1: 10 HZ;
154
155 2: 25 Hz;
156
157 3: 50 Hz;
158
159 4: 60 Hz;
160
161 5: 150 Hz;
162
163 6: 300 Hz;
164
165 7: 600 Hz;
166
167 8: 960 Hz;
168
169 9: 2400 Hz;
170
171 10: 10~~4800hz
172 )))
173 |#4|#44|X|R|State code|0|-|Refer to chapter 5.2
174 |#5|#45|X|R|Error code|0|-|(((
175 It is the data register for all error states, and each error status is displayed in the corresponding bit, possibly with multiple error states
176
177 0: No error;
178
179 1: Error;
180
181 b0: Power supply error;
182
183 b1: Hardware error;
184
185 b2: CH1 conversion error;
186
187 b4-b15: Reserved;
188
189 #45: Reserved;
190 )))
191 |#6|#46|X|R/W|Tare weight|0|0~~1|(((
192 Use the current average value as the tare weight
193
194 0: Disable;
195
196 1: Enable, reset afterwards;
197
198 Others: Reserved;
199 )))
200 |#7|#47|O|R/W|Gross/Net weight|0|-|(((
201 Display gross weight or net weight as current weight
202
203 0: Gross weight;
204
205 1: Net weight;
206
207 Others: Channel closed;
208 )))
209 |#8|#48|X|R/W|Calibrating weight|0|-|(((
210 0 by default。
211
212 0x0001: Return to 0 (ch1);
213
214 0x0002: Calibrating (ch1);
215
216 Step1: Remove all load ;
217
218 Step2: write 0x0001 to BFM #8;
219
220 Step3: Add known weight;
221
222 Step4: Write known weight to BFM#23 (#63);
223
224 Step5: write 0x0002 to BFM #8;
225 )))
226 |#9|#49|X|R/W|Reset to default|0|0-3|(((
227 #49:Reserve not use
228
229 1: Reset CH1;
230
231 2: Reset CH2;
232
233 3: Reset both channels;
234
235 Others: Reserved;
236 )))
237 |#10|#50|0|R/W|Filtering mode|0|0-1|Need to recalibrate if changed
238 |#11|#51|0|R/W|Filtering strength|0|0-7|Need to recalibrate if changed
239 |#12|#52|0|R/W|Zero tracking intensity|0|0-20000|When the zero tracking function is turned on, the minimum interval between two clears, unit is 1 ms.
240 |#13|#53|0|R/W|Zero tracking range|0|0-100|(((
241 0: Turn off zero tracking
242
243 Other: Set the zero tracking range (absolute value)
244 )))
245 |#14|#54|0|R/W|Automatically zeroing|0|0-4|(((
246 0: Disable auto zeroing;
247
248 1: ±2%MAX;
249
250 2: ±5%MAX;
251
252 3: ±10%MAX;
253
254 4: ±20%MAX;
255 )))
256 |#15|#55|0|R|Sensor sensitivity setting|4|0-5|(((
257 0: <1V/V
258
259 1: <125mV/V
260
261 2: <62.5mV/V
262
263 3: <31.25V/V
264
265 4: <15.625mV/V
266
267 5: <7.812mV/V
268
269 Note: Recalibration is required after setting.
270
271 (The version need to be 13904 and above)
272 )))
273 |#16|#56|(% rowspan="2" %)X|(% rowspan="2" %)R|Average L|(% rowspan="2" %)0|(% rowspan="2" %)Signed int|Average weight (Low)
274 |#17|#57|Average H|Average weight (High)
275 |#18|#58|0|R/W|Sliding average|5|1-50|(((
276 Setting range:K1~~K50;
277
278 Default value: K12; When the set value exceeds the range, it is automatically changed to the critical value K1 or K50.
279 )))
280 |#19|#59|(% rowspan="2" %)0|(% rowspan="2" %)R/W|Tare weight L|(% rowspan="2" %)0|(% rowspan="2" %) |(% rowspan="2" %)The user can write or read the tare #7 by the instruction. Range: K-8388608~~K8388607
281 |#20|#60|Tare weight H
282 |#21|#61|0|R/W|Standstill checking times|200|0-20000|Stable inspection time, used in conjunction with the stable inspection range, unit: ms.
283 |#22|#62|0|R/W|Checking range|1|1-10000|If the stability check range is set to 100 and the stability check time is set to 200ms, the current weight jump range is within 100 for 200ms, the value is considered stable, and other conditions are considered unstable. The stable flag is displayed in BFM#4.
284 |#23|#63|0|(% rowspan="2" %)R/W|Calibration weight value L|(% rowspan="2" %)1000|(% rowspan="2" %) |(% rowspan="2" %)(((
285 Range: -8388608~~8388607
286
287 Please refer to #8
288 )))
289 |#24|#64|0|Calibration weight value H
290 |#25|#65|0|R/W|Weight limit L|(% rowspan="2" %)32767|(% rowspan="2" %) |(% rowspan="2" %)(((
291 Show error when exceeds Max. weight value
292
293 Range: -8388608~~8388607
294 )))
295 |#26|#66|0|R/W|Weight limit H
296 |#27|#67|0|R/W|Zero upper limit L|(% rowspan="2" %)10|(% rowspan="2" %)-8388608~~ 8388607|(% rowspan="4" %)The user can use the zero judgment function to know that the item has been removed from the weighing module. Bit of zero weight equals to 1 when all of load removed
297 |#28|#68|0|R/W|Zero upper limit H
298 |#29|#69|0|R/W|Zero lower limit L|(% rowspan="2" %)-10|(% rowspan="2" %)-8388608~~ 8388607
299 |#30|#70|0|R/W|Zero lower limit H
300 |#31|#71|X|R/W|Additional function options|0|0~~1|(((
301 0: Default, disable additional functions;
302
303 1: Enable filter reset function.
304
305 Other: Reserved
306 )))
307 |#32|#72|X|R/W|Additional function parameters|0|0~~100|(((
308 Enable filter reset function:
309
310 0: Default;
311
312 0~~100: The number of sampling cycles to wait for the filter to restart.
313
314 The values collected during the period are cumulatively averaged as the initial value of the filtering.
315 )))
316 |#33|#73|X|R|Digital value L|(% rowspan="2" %)0|(% rowspan="2" %)-|(% rowspan="2" %)Digital value collected by the ADC
317 |#34|#74|X|R|Digital value H
318 |#35|#75|X|R|Reserved|(% colspan="2" rowspan="4" %)
319 \\ |(% rowspan="4" %)Read only
320 |#36|#76|X|R|Reserved
321 |#37|#77|X|R|Reserved
322 |#38|#78|X|R|Reserved
323 |#39|#79|0|R/W|Sensor sensitivity setting|2|0-32767|Current sensor sensitivity in mV/V. If 10mV/V sensor is used, set to 10 (this setting is only related to the calibration flag)
324 |#40|#80|0|R/W|Sensor feedback voltage L|0|-|(((
325 Write:
326
327 0: not displayed
328
329 1: display current sensor feedback voltage in real time
330
331 2: Display zero voltage during calibration
332
333 3: Display the voltage when the weight is placed
334
335 Read:
336
337 Displays the high byte voltage value in uV.
338 )))
339 |#41|#81|0|R|Sensor feedback voltage H|0| |(((
340 Read:
341
342 Displays the high byte voltage value in uV.
343 )))
344
345 **✎Note: **
346
347 1. 0: means latched address
348 1. X: means non-latched address
349 1. R: means readable
350 1. W: means writable
351
352 BFM No. is the same as Modbus communication address.
353
354 == **5.2 Buffer (BFM) description** ==
355
356 * **BFM0: Module code**
357
358 LCM-2WT code: 6050
359
360 * **BFM1: module version**
361
362 Module version (decimal) for example BFM1=100, means V1.0.0
363
364 * **BFM2: Polarity**
365
366 Bipolarity means that the signal passes through zero during the change process. Since the analog value converted to a digital value is a signed integer, the value corresponding to the bipolar signal will have a negative number.
367
368 * **BFM3: Sampling frequency**
369
370 The frequency at the module collects the signal. The lower the frequency, the more stable the value is, the higher the accuracy, but the lower the rate.
371
372 Table 5 ‑3
373
374 (((
375 (% class="table-bordered" %)
376 |**Setting**|**Sample frequency (HZ)**|**Sample precision (Bits)**|**Setting**|**Sample frequency (HZ)**|**Sample precision (Bits)**
377 |0|7.5|23.5|5|150|21.5
378 |1|10|23.5|6|300|21
379 |2|25|23|7|600|20.5
380 |3|50|22|8|960|20
381 |4|60|22|9|2400|17.5
382 )))
383
384 * **BFM4: State code**
385
386 Table 5 ‑4
387
388 (% class="table-bordered" %)
389 |(% rowspan="2" %)**Bit No**|(% colspan="2" %)**Description**
390 |**1**|**0**
391 |Bit0|CH1 zero weight (load free)|CH1 is not empty
392 |Bit1|CH2 zero weight (load free)|CH2 is not empty
393 |Bit2|(((
394 CH1 is overload
395
396 Note: The upper limit weight is set by #27, #28
397 )))|CH1is not overload
398 |Bit3|(((
399 CH2 is overload
400
401 Note: The upper limit weight is set by #27, #28
402 )))|CH2 is not overload
403 |Bit4|CH1 value is stable|CH1 value is not stable
404 |Bit5|CH2 value is stable|CH2 value is not stable
405 |Bit6|CH1 not calibrated|CH1 calibrated
406 |Bit7|CH2 not calibrated|CH2 calibrated
407 |(((
408 Bit8
409
410 Bit9
411 )))|(((
412 00: no error
413
414 10: inputted weight is too large
415 )))|(((
416 01: load free calibrated
417
418 11: not calibrated
419 )))
420 |(((
421 Bit10
422
423 Bit11
424 )))|(((
425 00: no error
426
427 10: inputted weight is too large
428 )))|(((
429 01: load free calibrated
430
431 11: not calibrated
432 )))
433 |Bit12|(((
434 CH1 exceeds sensor range
435
436 Note: determined by the sensor feedback voltage
437 )))|CH1 is within the sensor range
438 |Bit13|(((
439 CH2 exceeds sensor range
440
441 Note: determined by the sensor feedback voltage
442 )))|CH2 is within the sensor range
443
444 * **BFM5: Error code**
445
446 Table 5 ‑5
447
448 (% class="table-bordered" %)
449 |**Bit No.**|**Value**|**Error**|**Bit No.**|**Value**|**Error**
450 |bit 0|K1 (H0001)|Power failure|bit 1|K1 (H0001)|Hardware failure
451 |bit 2|K2 (H0004)|CH1 conversion error|bit 3|K8 (H0008)|CH2 conversion error
452 |Others|(% colspan="2" %)Reserved|BFM#45|(% colspan="2" %)Reserve not use
453 |(% colspan="6" %)**✎Note:** Save all error state of data registers, each error status is determined by the corresponding bit, there are May generate more than two states at same time, 0: no error, 1: error.
454
455 * **BFM6(CH1) & BFM46(CH2): Tare setting**
456
457 Select the current weight value (BFM16-17) as a tare (BFM19-20) weight value. Each channel occupies one bit, available when 1, reset to zero automatically.
458
459 **Use CH1 as example**
460
461 The current weight is 100, after setting tare weight:
462
463 If it displays gross weight (BFM7 = 0) currently, the tare weight (BFM19-20) will become 100, the current weight is still 100;
464
465 If it displays net weight (BFM7 = 1), the tare weight (BFM19-20) will be original value + current weight value, the current weight value becomes zero.
466
467 * **BFM8: calibration steps: (described in CH1)**
468
469 Step1: Do not put any weight on the load cell;
470
471 Step2: #8 value is written as 0x0001;
472
473 Step3: Add a standard weight to the load cell;
474
475 Step4: Write the weight of the weight on the current chassis to #23.
476
477 Step5: The #8 value is written as 0x0002.
478
479 * **BFM11: filtering strength**
480
481 The higher filter strength , the more stable and accurate weight value will be. but the delay will increase, and the sensitivity will decrease accordingly. It can be set according to need.
482
483 * **BFM12: Zero tracking interval**
484
485 BFM#12 is used together with BFM#13. When BFM#13 is not 0, BFM#12 indicates the time interval between the automatic weight clearing and the next automatic clearing to prevent continuous clearing.
486
487 **Note:** This function is generally used to correct the temperature drift of the sensor.
488
489 * **BFM13: Zero tracking range**
490
491 The cumulative range of zero tracking, if the total exceeds this range, the tracking will not continue.
492
493 Table 5 ‑6
494
495 (% class="table-bordered" %)
496 |**Settings**|**Description**|**Note**
497 |0|Zero tracking OFF|Default
498 |1-100|When setting the zero tracking range (absolute value), the tracking must be performed when the value is stable and the current weight is within the zero tracking range.|If set to 10, the current weight is ±9, and the stable flag is 1, the current weight is cleared.
499 |(% colspan="3" %)Note: when lower precision required, user could disable this function.
500
501 **For example:**
502
503 The setting value is 100. After the zero point drifts from the 0 position to over ±100, the tracking will not continue. If it drifts back within ±100, the tracking is resumed.
504
505 1. **BFM15: **Set the gain of the AD chip, which can be set according to the sensor range. After the BFM is set, it needs to be recalibrated.
506
507 (% class="table-bordered" %)
508 |**BFM15**|**Voltage range**|**Sensor precision**
509 |0|±5V|<1V/V
510 |1|±625mV|<125mV/V
511 |2|±312.5mV|<62.5mV/V
512 |3|±156.2mV|<31.25mV/V
513 |4|±78.125mV|<15.625mV/V
514 |5|±39.06mV|<7.812mV/V
515
516 == **5.3 Function Instruction** ==
517
518 **1.Weight measurement**
519
520 Normally, users can choose to measure the net weight or gross weight of an object. The net weight means the weight of the product itself, that is, the actual weight of the product without its external packaging.
521
522 The weight of the packaging is called the tare weight. The gross weight is the total weight, namely the net weight plus the tare weight.
523
524 * Tare weight: weight of the packaging
525 * Net weight: the weight of the product, excluding the packaging.
526 * Gross weight: the net weight plus the tare of the product.
527 * Gross weight= net weight + tare weight.
528
529 **Example 1**
530
531 A product weighs 10kg and the carton contains it weighs 0.2kg, then its gross weight is 10.2 kg (net weight=10kg, tare weight=0.2kg, gross weight=10.2kg)
532
533 **Example 2**
534
535 Use the measured value at CH1 as the net weight and disable CH2. If you know the weight of the packaging already, you can skip the step of reading the tare weight.
536
537 * Read the tare weight
538
539 Step 1: Write H0000 into BFM7.
540
541 Step 2: Place the packaging on the CH1 load cell.
542
543 Step 3: Write H0001 into BFM6 to take the weight of the packaging as the tare weight.
544
545 * Set BFM7 = H0001.
546
547 **2.Standstill check**
548
549 When an object is placed on the load cell to measure its weight, you can use the standstill check to know that the measured value has been stable.
550
551 * If the measured value shifts within the range for standstill check set up by the user, bit4 will be set to “1”.
552 * If the measured value shifts beyond the range for standstill check set up by the user, bit4 will be set to “0”. They will be set to “1” again when the range is returned to the set range.
553
554 **Example**
555
556 The measuring time is 10ms, the times of standstill check is 10, and the range for standstill check is 1,000. When the range for standstill check exceeds 1,000, the measured value will be regarded unstable, i.e. bit4 will be set to 0. When the measuring time is within 100ms (10 × 10ms) and the range returns to be within 1,000, bit4 will be set to 1 again. We recommend you check if the measured value is stable enough before operating it.
557
558 **3.Zero detection**
559
560 Users can use this function to know if the object has been removed from the load cell. If the bit4 is 1, and the bit0 and bit1 are 1 as well, the object has been removed from the load cell already, and you will be able to perform the next step of the control.
561
562 **4.Filtering**
563
564 The average value is a steady value obtained from the sum of the read values. However, due to unavoidable external factors, the read values may be an acute pulse, resulting in fierce changes in the average value. The filtering function thus exclude the read value that is an acute pulse from the sum-up and equalization, so the average value obtained will not be affected by the acute read value.
565
566 (((
567 = **6 MODBUS settings** =
568 )))
569
570 == **6.1 Com port communication configuration** ==
571
572 (% class="table-bordered" %)
573 |(% colspan="2" %)**Com port comm. configuration**
574 |Station No.|1~~32 (Adjust by DIP switch)
575 |Baud rate|9600~~115200 (Adjust by DIP switch)
576 |Stop bit|1
577 |Data bit|8
578 |parity|even
579
580 == **6.2 Communication** ==
581
582 The communication protocol is Modbus, support function codes 03 (read holding register), 06 (write single register), and 16 (write multiple registers).
583
584 **1.0x03 function code description**
585
586 Request (send from master)
587
588 (% class="table-bordered" %)
589 |Slave address|1 byte|Slave station No.
590 |Function code|1 byte|0x03
591 |Start address|2 bytes|0x0000 to 0xFFFF
592 |Register No.|2 bytes|1 to 125
593 |CRC|2 bytes|CRC of all the above data
594
595 Respond (reply from slave)
596
597 (% class="table-bordered" %)
598 |Slave address|1 byte|Slave station No.
599 |Function code|1 byte|0x03
600 |Byte number|1 byte|2*N
601 |Register value|N*2 bytes|
602 |CRC|2 bytes|CRC of all the above data
603
604 **✎Note: **N is the number of register.
605
606 Error (reply from slave)
607
608 (% class="table-bordered" %)
609 |Slave address|1 byte|Slave station No.
610 |Error code|1 byte|0x83
611 |Exception code|1 byte|(((
612 01 (not support this function code)
613
614 02 (Address over range)
615 )))
616 |CRC|2 bytes|CRC of all the above data
617
618 Example: reading the value of the holding register (0x0000-0x0001) from slave (station No. 0x0f)
619
620 (% class="table-bordered" %)
621 |(% colspan="2" %)**Send from master**|(% colspan="2" %)**Reply from slave**
622 |Slave address|0x0F|Slave address|0x0F
623 |Function code|0x03|Function code|0x03
624 |Holding register high byte|0x00|Byte number|0x04
625 |Holding register low byte|0x00|High byte of register 0|0x00
626 |High byte of read No.|0x00|low byte of register 0|0x0F
627 |Low byte of read No.|0x02|High byte of register 1|0x00
628 |CRC low byte|0xC5|low byte of register 1|0x01
629 |CRC high byte|0x25|CRC low byte|0xE4
630 | | |CRC high byte|0x30
631
632 **2.0x06 function code description**
633
634 Request (send from master)
635
636 (% class="table-bordered" %)
637 |Slave address|1 byte|Slave station No.
638 |Function code|1 byte|0x06
639 |Start address|2 bytes|0x0000 to 0xFFFF
640 |Register value|2 bytes|0x0000 to 0xFFFF
641 |CRC|2 bytes|CRC of all the above data
642
643 Reply (reply from slave)
644
645 (% class="table-bordered" %)
646 |Slave address|1 byte|Slave station No.
647 |Function code|1 byte|0x06
648 |Register address|2 bytes|0x0000 to 0xFFFF
649 |Register value|2 bytes|0x0000 to 0xFFFF
650 |CRC|2 bytes|CRC of all the above data
651
652 Error (reply from slave)
653
654 (% class="table-bordered" %)
655 |Slave address|1 byte|Slave station No.
656 |Error code|1 byte|0x86
657 |Exception code|1 byte|(((
658 01 (not support this function code)
659
660 02 (Address over range)
661 )))
662 |CRC|2 bytes|CRC of all the above data
663
664 Example: writing 0x001 to address 0x00A from slave(station No. 0x0f)
665
666 (% class="table-bordered" %)
667 |(% colspan="2" %)**Send from master**|(% colspan="2" %)**Reply from slave**
668 |Slave address|0x0F|Slave address|0x0F
669 |Function code|0x06|Function code|0x06
670 |Holding register high byte|0x00|Register High byte|0x00
671 |Holding register low byte|0x0A|Register low byte|0x0A
672 |High byte of register value|0x00|High byte of register value|0x00
673 |Low byte of register value|0x01|low byte of register value|0x01
674 |CRC low byte|0x69|CRC low byte|0x69
675 |CRC high byte|0x26|CRC high byte|0x26
676
677 **3.0X10 Function code description**
678
679 Request (send from master)
680
681 (% class="table-bordered" %)
682 |Slave address|1 byte|Slave station No.
683 |Function code|2 bytes|0x10
684 |Start address|2 bytes|0x0000 to 0xFFFF
685 |Register No.|2 bytes|0x0001 to 0x0078
686 |Byte No.|1 byte|2*N
687 |Register value|N*2 bytes|VALUE
688 |CRC|2 bytes|CRC of all the above data
689
690 Reply (reply from slave)
691
692 (% class="table-bordered" %)
693 |Slave address|1 byte|Slave station No.
694 |Function code|1 byte|0x01
695 |Starting address|2 bytes|0x0000 to 0xFFFF
696 |Register No.|2 bytes|1 to 123
697 |CRC|2 bytes|CRC of all the above data
698
699 Error (reply from slave)
700
701 (% class="table-bordered" %)
702 |Slave address|1 byte|Slave station No.
703 |Error code|1 byte|0x90
704 |Exception code|1 byte|(((
705 01 (not support this function code)
706
707 02 (Address over range)
708 )))
709 |CRC|2 bytes|CRC of all the above data
710
711 Example: writing 0x001 and 0x002 to address 0x00A and 0x00B from slave (station No. 0x0f)
712
713 (% class="table-bordered" %)
714 |(% colspan="2" %)**Send from master**|(% colspan="2" %)**Reply from slave**
715 |Slave address|0x0F|Slave address|0x0F
716 |Function code|0x06|Function code|0x06
717 |Start address High byte|0x00|Start address High byte|0x00
718 |Start address low byte|0x0A|Start address low byte|0x0A
719 |High byte of register No.|0x00|High byte of register No.|0x00
720 |low byte of register|0x02|low byte of register|0x02
721 |Byte No.|0x04|CRC low byte|0x29
722 |High byte of register 0|0x00|CRC high byte|0x27
723 |low byte of register 0|0x01| |
724 |High byte of register 1|0x00| |
725 |low byte of register 1|0x02| |
726 |CRC Low byte|0x76| |
727 |CRC Low byte|0xB3| |
728
729 == **6.3 Introduction of DIP switch** ==
730
731 **1.DIP switch introduction**
732
733 (% style="text-align:center" %)
734 [[image:LCM-2WT user manual_html_93aa56002bebd679.png||class="img-thumbnail" height="191" width="400"]]
735
736
737 (% style="text-align:center" %)
738 [[image:LCM-2WT user manual_html_79b07e8411c992f6.png||class="img-thumbnail" height="681" width="500"]]
739
740 Figure 6 ‑1 DIP switch
741
742 **✎Note: **
743
744 In practical use, the dial switch is ON (1) downward and OFF (0) upward. As shown in the figure, the status of the DIP switch is downward, all are ON.
745
746 **2.DIP switch and station setting**
747
748 In practical use, the # 1 to # 5 of the DIP switch is used for the selection of the module station number, and the relationship between the station number and the 1 # 5 dial number switch is shown in the following table:
749
750 (% class="table-bordered" %)
751 |**#1 DIP switch**|**#2 DIP switch**|**#3 DIP switch**|**#4 DIP switch**|**#5 DIP switch**|**Module station**
752 |0|0|0|0|0|1
753 |1|0|0|0|0|2
754 |0|1|0|0|0|3
755 |1|1|0|0|0|4
756 |0|0|1|0|0|5
757 |1|0|1|0|0|6
758 |0|1|1|0|0|7
759 |1|1|1|0|0|8
760 |0|0|0|1|0|9
761 |1|0|0|1|0|10
762 |0|1|0|1|0|11
763 |1|1|0|1|0|12
764 |0|0|1|1|0|13
765 |1|0|1|1|0|14
766 |0|1|1|1|0|15
767 |1|1|1|1|0|16
768 |0|0|0|0|1|17
769 |1|0|0|0|1|18
770 |0|1|0|0|1|19
771 |1|1|0|0|1|20
772 |0|0|1|0|1|21
773 |1|0|1|0|1|22
774 |0|1|1|0|1|23
775 |1|1|1|0|1|24
776 |0|0|0|1|1|25
777 |1|0|0|1|1|25
778 |0|1|0|1|1|27
779 |1|1|0|1|1|28
780 |0|0|1|1|1|29
781 |1|0|1|1|1|30
782 |0|1|1|1|1|31
783 |1|1|1|1|1|32
784
785 **3.DIP switch and baud rate setting**
786
787 In practical use, the #6 to #8 of the DIP switch are used for the selection of the baud rate, and the relationship between the baud rate and #6-# 8 DIP switch is shown in the following table:
788
789 Table 6 ‑7
790
791 (% class="table-bordered" %)
792 |**#6 DIP switch**|**#7 DIP switch**|**#8 DIP switch**|**Module baud rate**
793 |0|0|0|115200
794 |1|0|0|57600
795 |0|1|0|38400
796 |1|1|0|19200
797 |0|0|1|9600
798 |1|0|1|Reserved for later expansion (Default: 115200)
799 |0|1|1|Reserved for later expansion (Default: 115200)
800 |1|1|1|Reserved for later expansion (Default: 115200)
801
802 == **6.4 Note** ==
803
804 LCM-2WT and LX3V-2WT differentiate in communication method, but the register functions are the same.
805
806 Table 6 ‑8
807
808 (% class="table-bordered" %)
809 |**Module**|**Max. accessible address (BFM address)**
810 |2WT|81
811
812 (((
813 = **7 Example** =
814 )))
815
816 == **7.1 Set the com port parameter** ==
817
818 Set the station number as 2 and the baud rate as 115200 according to chapter 6.3.
819
820 (% style="text-align:center" %)
821 [[image:LCM-2WT user manual_html_221220adb9906bdd.png||class="img-thumbnail" height="272" width="700"]]
822
823 PLC COM2 is set as MODBUS master, parameter is 115200, 1, 8 ,even.
824
825 == **7.2 The current state** ==
826
827 (% style="text-align:center" %)
828 [[image:LCM-2WT user manual_html_173d560166f58213.png||class="img-thumbnail" height="276" width="700"]]
829
830 Read the current state from BFM4, refer to the detail in chapter 5.2.
831
832 == **7.3 Calibration** ==
833
834 The first step can also be used for manual zeroing.
835
836 The adjustment is to match the value of the module to the load cell.
837
838 (% style="text-align:center" %)
839 [[image:LCM-2WT user manual_html_6b8ba1f27fc70625.png||class="img-thumbnail" height="419" width="700"]]
840
841 * Step 1: Put nothing on the load cell
842 * Step 2: Write 0x001 to bfm8
843 * Step 3: Put a standard weight on the load cell
844 * Step 4: Write the value(D32)to BFM23
845 * Step 5: Write 0x0002 to BFM8
846
847 == **7.4 Net weight and tare 1** ==
848
849 (% style="text-align:center" %)
850 [[image:LCM-2WT user manual_html_9c77452304086840.png||class="img-thumbnail" height="438" width="700"]]
851
852 * Step 1: Write K1 to BFM6 set the tare value
853 * Step 2: Write k1 to BFM7 (display net weight)
854 * Step 3: Write k0 to BFM7 (display gross weight)
855
856 == **7.5 Net weight and tare 2** ==
857
858 After the filter mode or filter strength is changed, it needs to be recalibrated.
859
860 (% style="text-align:center" %)
861 [[image:LCM-2WT user manual_html_c4648aa945cc090d.png||class="img-thumbnail" height="203" width="700"]]
862
863 * Step 1: Configure filter mode by writing value to BFM10
864 * Step 2: Set the filter strength (BFM11)
865
866 == **7.6 Zero point track** ==
867
868 Zero tracking is used to reduce temperature drift.
869
870 The zero tracking strength is 0, which means that zero tracking is not turned on.
871
872 (% style="text-align:center" %)
873 [[image:1623053104387-331.png||class="img-thumbnail" height="215" width="700"]]
874
875 = **8 Diagnosis** =
876
877 == **8.1 Preliminary examination** ==
878
879 1. Check if the input/output wiring and/or extension cable are connected to the LCM-2WT module.
880 1. Check if the number of special functions modules exceeds 8, and the total number of system I/O points cannot exceed 256 points.
881 1. Ensure that the correct operating range is selected in the program.
882 1. Check that there is no power overload in the 5V or 24V power supply.
883 1. The LX3V main unit is at the RUN state.
884
885 == **8.2 Check error** ==
886
887 If LCM-2WT does not work properly, please check the following items.
888
889 * Check the status of the power LED
890
891 ON: the extension cable is properly connected
892
893 Otherwise: Check the connection of the extension cable.
894
895 * Check external wiring
896 * Check the status of the "24V" LED (upper right corner of the LCM-2WT)
897
898 ON: The LCM-2WT is normal and the 24VDC power supply is normal.
899
900 Otherwise: The 24V DC power supply may be faulty. If the power supply is normal, the LCM-4LTC is faulty.
901
902 * Check the status of the “A/D” LED (upper right corner of LCM-2WT)
903
904 Lit: A/D conversion works normally.
905
906 Otherwise: Check buffer memory #29 (error status). If any of the bits (b2 and b3) are in the ON state, which is why the A/D indicator is off.