Wiki source code of LX6V-4AD/4DA

Version 1.1 by Wecon on 2025/09/03 21:02

Show last authors
1 = **Introductions** =
2
3 (% style="text-align:center" %)
4 [[image:1718104585862-174.png]]
5
6 LX6V-4DA (4-channel analog output) module is used to treat voltage, current and other analog signal output. The module is adapted to LX6 series PLC and LX6V-EM□-ECAT module device.
7
8 Supported software version (Wecon PLC Editor2): 2.3.118 and above;
9
10 Supported firmware version: 2.198 and above.
11
12 (% class="box infomessage" %)
13 (((
14 ✎**Note: The total power of expansion module for LX6 series PLC and coupler connection cannot exceed 48W.**
15 )))
16
17 === Naming rules ===
18
19 (% style="margin-left:auto; margin-right:auto; width:190px" %)
20 |=(% style="width: 84px;" %)LX6V|=(% style="width: 5px;" %)-|=(% style="width: 40px;" %)4|=(% style="width: 40px;" %)AD
21 |(% style="width:84px" %)①|(% style="width:5px" %) |(% style="width:40px" %)②|(% style="width:40px" %)③
22
23 ① Series
24
25 ② Number of channels
26
27 ③ AD: Analog input; DA: Analog output
28
29 (% style="margin-left:auto; margin-right:auto" %)
30 |=**Model**|=**Description**
31 |LX6V-4AD|4-channel analog input module
32 |LX6V-4DA|4-channel analog output module
33
34 === Terminal Description ===
35
36 The terminal line arrangement of the analog expansion module is as follows:
37
38 |=**Module model**|=**Terminal arrangement**
39 |LX6V-4AD|[[image:1718104863154-417.png]]
40 |LX6V-4DA|[[image:1718104863155-245.png]]
41
42 === Indicator lamp ===
43
44 (% style="text-align:center" %)
45 [[image:1718104894756-928.png]]
46
47 4AD indicator lamp function description
48
49 (% style="margin-left:auto; margin-right:auto" %)
50 |=Indicator lamp|=Description
51 |PWR|Expansion module is normally on when power-on.
52 |LINK lamp|(((
53 Expansion module and PLC communication indicator lamp;
54
55 ON: Data interaction executing;
56
57 OFF: Data interaction abnormal, stop or fail.
58 )))
59 |VIn-|(((
60 Defined as an ERR lamp,
61
62 On: Indicate over-range;
63
64 Off: In normal status;
65
66 Flashing: Channel without calibration.
67 )))
68 |Vn+/In+|(((
69 Defined as a channel enable indicator light;
70
71 ON: Indicate that the channel is enabled;
72
73 OFF: Indicate that the channel is disabled.
74 )))
75
76 4DA LED Function Description
77
78 |=**Indicator lamp**|=**Description**
79 |PWR|Expansion module is normally on when power-on.
80 |LINK lamp|(((
81 Expansion module and PLC communication indicator lamp;
82
83 ON: Data interaction executing;
84
85 OFF: Data interaction abnormal, stop or fail. Normally on, data interaction executing
86 )))
87 |VIn-/In-|(((
88 Defined as an ERR lamp,
89
90 Vn-On: Indicate over-range or DAV short-circuit;
91
92 In- On: Indicate over-range or DAI open circuit;
93
94 Vn-/In- Flashing: Channel without calibration.
95 )))
96 |Vn+/In+|(((
97 Defined as a channel enable indicator light;
98
99 ON: Enabled;
100
101 OFF: Disabled.
102 )))
103
104 == **Parameter specifications** ==
105
106 === AD input specifications ===
107
108 |=**Project**|=**Specification requirements**
109 |Input type|Analog input
110 |Input circuit composition|[[image:1718105059213-977.png]]
111 |Input mode|Voltage/current
112 |Input channel|4
113 |Resolution|1/16384 (14bit)
114 |Voltage input range|-10V-10V
115 |Voltage input impedance|190kΩ
116 |Current input range|4mA-20mA, -20mA-20mA
117 |Current input impedance|250Ω
118 |Comprehensive precision|±1%
119 |Conversion speed|1ms
120 |Power supply|Interface power supply, DC 24V±10%, 55mA
121
122 === DA output specifications ===
123
124 |=**Project**|=**Specification requirements**
125 |Output type|Analog output
126 |Output circuit composition|[[image:1718105433747-332.png]]
127 |Output mode|Voltage/current
128 |Output channel|4
129 |Resolution|1/20000, hardware can meet 16bit resolution
130 |Voltage output range|-10V-10V
131 |Voltage output load|≥2KΩ
132 |Voltage output diagnosis|Support non-zero voltage output short-circuit detection with about 14mA overcurrent protection
133 |Current output range|0-20mA, 4-20mA
134 |Current output load|≤500Ω
135 |Current output diagnosis|Support non-zero current output open circuit detection
136 |Comprehensive precision|±1%
137 |Conversion speed|Approximately 1ms
138 |Power supply|Interface power supply, DC 24V±10%, 125mA
139
140 === Environment specifications ===
141
142 |=**Project**|=**Specification requirements**
143 |Usage environment|(((
144 No corrosive or combustible gas
145
146 No large amount of conductive dust
147 )))
148 |Storage temperature|-20℃ to 70℃
149 |Storage humidity|5-95%RH (No condensation)
150 |Environment temperature (Running)|0℃-60℃
151 |Environment humidity (Running)|5-95%RH (No condensation)
152 |Installation|After being installed on the host, it is installed on the rail through the fastener.
153 |Appearance size|91*28.1*95mm
154 |Impact/vibration resistance|Compliant with JISC 0040 standard
155 |Grounding|Cannot be co-located with the high-voltage system
156 |Shell material|Plastic
157 |Terminal type|Motherboard is with 3.5mm pitch black terminal seat
158 |Cooling|Natural ventilation
159
160 === Software specifications ===
161
162 4AD
163
164 |=**Project**|=**Specification requirements**
165 |Independent channel enable configuration|Support
166 |Conversion mode configuration|-10V to 10V, 4 to 20mA, -20mA to 20mA
167 |Filter parameter configuration|Set the range from 0 to 255, unit: ms
168 |Overrun detection|Support
169 |Converse digital range configuration|-10000 to 10000, 0 to 20000, -20000 to 20000
170 |Sampling time|4 channels 1ms
171 |Sample refresh|Refresh asynchronously according to sampling time, which is not required synchronous refresh according to bus cycle.
172
173 **~ **4DA
174
175 |=**Project**|=**Specification requirements**
176 |Independent channel enable configuration|Support
177 |Conversion mode configuration|-10V to 10V, 4 to 20mA, 0mA to 20mA
178 |Output status configuration on downtime|Output clear, Output hold, Output preset
179 |Output preset configuration after downtime|Support
180 |Converse digital range configuration|-10000 to 10000, -5000 to 20000, 0 to 20000
181 |Stop mode|Output by failure down status mode and preset value, no more refreshing
182
183 = **Instructions for use** =
184
185 The parameter configuration interface is as below:
186
187 (% style="text-align:center" %)
188 [[image:1718105660037-705.png]]
189
190
191 PLC Expansion Module Configuration Description (The following takes the model LX6V-4AD as an example to explain).
192
193 ① Double-click the expansion module configuration to open the configuration interface;
194
195 ② Adding new modules according to the model and position of the current module connected host;
196
197 ③ Double-click the module in the current machine slot to open the parameter configuration interface;
198
199 == Parameter configuration interface ==
200
201 === 4AD module configuration ===
202
203 (% style="text-align:center" %)
204 [[image:1718106066949-949.png]]
205
206
207 ① Enable channels: It can be set whether to enable the current expansion module channel;
208
209 ② Conversion mode: The default setting is ADV conversion mode, the measurement range is-10V-10V (-10000-10000);
210
211 Supported conversion modes:
212
213 -10V-10V (-10000-10000);
214
215 4mA-20mA (0-20000);
216
217 -20mA-20mA (-20000-20000).
218
219 ③Filtering time: Support 1-255ms, used to reduce the fluctuation of channel output data, the default filtering time is 4ms. Please adjust the channel output data according to the requirements of the actual application scenario
220
221 to select the appropriate filtering time;
222
223 ④ Enable calibration: When the actual analog input of the module channel deviates greatly from the measured channel value of the module, it can be used to improve the measurement precision and accuracy.
224
225 For modules with calibration enabled, the channel value is calculated as follows: Actual channel value = digital*gain+offset, e.g.:
226
227 When the channel input analog is 10000mV, the measured digital is 9950, and the actual channel value should be 10000;
228
229 When the channel input analog is -10000mV, the measured digital is-9950, and the actual channel value should be -10000;
230
231 Assume gain as a and offset as b
232
233 [[image:1718106123150-981.png]]; the result is[[image:1718106147823-937.png]].
234
235 The derivation formula is as follows:
236
237 Gain = (Actual input analog 1-actual input analog 2)/ (Expansion module measured digital 1-Expansion module measured digital 2)
238
239 Offset = actual channel value-digital*gain
240
241 With the above formula, the gain and offset values can be derived to calibrate the module to improve the accuracy and stability of the measurement. When performing calibration, it is necessary to select the appropriate
242
243 parameters and methods, ensuring accurate and reliable measurement results.
244
245 === I/O mapping ===
246
247 (% style="text-align:center" %)
248 [[image:1718106182932-462.png]]
249
250 By default, channels are mapped to R device according to the current number of module channels. The figure below shows modules CH1-CH4 mapped to R0-R3 device.
251
252 === 4DA module configuration ===
253
254 (% style="text-align:center" %)
255 [[image:1718106283506-575.png]]
256
257 ① Enable channels: It can be set whether to enable the current expansion module channel;
258
259 ② Conversion mode: The default setting is DAV conversion mode, and the output range is-10V-10V (-10000-10000);
260
261 Supported conversion modes: -10V-10V (-10000-10000), 4mA-20mA (0-20000), -20mA-20mA (-20000-20000)
262
263 ③ Output status after stopping: When the PLC is in the stop status, the output status of the module channel mainly includes the following three types:
264
265 Output cleared: When PLC STOP, the output voltage/current of the module channel is 0V/0uA;
266
267 The output holds: When PLC STOP, the module channel output holds the digital output value set by the corresponding channel in the current I/O mapping device;
268
269 Output presets: When PLC STOP, the module channel outputs the voltage/current value corresponding to the preset digital or the preset analog.
270
271 ④ Enable calibration: When the actual output analog of the module channel deviates greatly from the analog measured by the high-precision multimeter, it can be used to improve the output precision and accuracy.
272
273 For modules with calibration enabled, the channel value is calculated as follows: Channel input digital=actual voltage output corresponding digital*gain+offset
274
275 For example:
276
277 When the input digital of the channel is 10000, the measured output voltage of the channel by the high-precision multimeter is 9950mV (the corresponding digital is 9950);
278
279 When the channel input digital is -10000, the measured output voltage of the channel by the high-precision multimeter is -9950mV (the corresponding digital is-9950);
280
281 Assume gain as a and offset as b
282
283 [[image:1718106305711-472.png]]the result is[[image:1718106352778-889.png]]
284
285 The derivation formula is as follows:
286
287 Gain = (channel input digital quantity 1-channel input digital quantity 2)/ (multimeter measured digital 1-multimeter measured digital 2)
288
289 Offset=channel input digital-actual voltage output corresponding digital *gain
290
291 === I/O mapping ===
292
293 (% style="text-align:center" %)
294 [[image:1718106387395-183.png]]
295
296 By default, channels are mapped to R device according to the current number of module channels. The figure below shows modules CH1-CH4 mapped to R0-R3 device.
297
298 (% style="text-align:center" %)
299 [[image:1718106416037-286.png]]
300
301 Click PLC download and check the extension function the interface in turn. Click Execute, and download the extension module configuration to PLC.
302
303 == EtherCAT IO Slave Configuration ==
304
305 === 4AD Module Startup Parameters ===
306
307 (% style="text-align:center" %)
308 [[image:1718106480022-528.png]]
309
310 ① 4AD module CHx transform mode: Used to specify the current channel CHx (x∈[0, 3]) conversion mode:
311
312 Supported conversion modes:
313
314 0: Not enabled
315
316 1: -10V-10V (-10000-10000)
317
318 2: 4mA-20mA (0-20000)
319
320 3: -20mA-20mA (-20000-20000)
321
322 ② 4AD module CHx filter time: Used to specify the current channel CHx (x ∈ [0, 3]) filtering time, range: 0-255, unit: ms
323
324 ③ Reserve: reserve, not in use for the time being
325
326 I/O mapping: Modules CH0 to CH3 can be mapped into variables/device, for example, the figure below CH0 to CH3 channel values was mapped into D0 to D3 device.
327
328 (% style="text-align:center" %)
329 [[image:1718106497880-255.png]]
330
331 === 4DA startup parameters ===
332
333 (% style="text-align:center" %)
334 [[image:1718106522024-994.png]]
335
336
337 ① 4DA module CHx transform mode: For specifying the current channel CHx (x∈ [0, 3]) conversion mode;
338
339 Supported conversion modes:
340
341 0: Not enabled
342
343 1: -10V-10V (-10000-10000)
344
345 2: 4mA-20mA (0-20000)
346
347 3: -20mA-20mA (-20000-20000)
348
349 ② 4DA module CHx stopmode: For specifying the current channel CHx (x∈ [0, 3]) stop mode;
350
351 Supported stop modes:
352
353 0: Output cleared
354
355 1: Output hold
356
357 2: Output preset value
358
359 ③ 4DA module CHx stopvalue: Used to specify that the current channel CHx (x∈ [0, 3]), which is set to the output digital in the preset value mode. When 4DA module CHx stopmode is set to 2, if PLC STOP or EtherCAT is disconnected, module channel will output the digital specified by this parameter.
360
361 I/O mapping: Modules CH0 to CH3 can be mapped into variables/device, for example, the figure below CH0 to CH3 channel values was mapped into D0 to D3 device.
362
363 (% style="text-align:center" %)
364 [[image:1718106542731-503.png]]