Version 10.1 by Leo Wei on 2022/06/14 15:29

Show last authors
1 = **1 Basic difference between 3V, 5V and 5S** =
2
3 |=(% scope="row" %)Functions|=5V|=5S|=3V
4 |=Running Mode|(% colspan="3" %)Cyclic scan /Interrupt
5 |=Power supply|(% colspan="3" %)A:AC 220V;D:DC 24V
6 |=Output type|MT:Transistor|MT:Transistor;MR:Relay|MT:Transistor;MR:Relay
7 |=I/O|1212;1412;1616;2416;2424;3624;|0806;1208;1212;1412;
8 1616;2416;2424;3624;|0806;1208;1212;1412;
9 1616;2416;2424;3624;
10 |=Programming|(% colspan="3" %)Ladder
11 |=Type of instruction| | |
12 |=Execute Time|Basic 0.01-0.03μs|Basic 0.03-0.08μs|Basic 0.06μs/Applied instruction:1-10us
13 |=Program Capacity|(% colspan="2" %)512KB|16k
14 |=High Speed Pulse Output|≤1412MT and smaller: 4*200KHz;
15 ≥1616MT and bigger:  8*200KHz。|MT/MR2H: 2* 200KHz;
16 MT4H: 4* 200KHz。|MT/2H: 2*100KHZ, or 4H: 4*100, single: 200kHZ
17 |=High speed counter Interrupt|(% colspan="2" %)100 channels|21channels
18 |=Timer Interrupt|(% colspan="2" %)100 channels,Support 0.1ms Interrupt|95 channels
19 |=X Interrupt|X0-X7 Rising & Falling|X0-X5 Rising & Falling|X0-X5 Rising & Falling
20 |=**High speed counter Single Phase**|**≤1412 and smaller: 4*150KHz
21 ≥1616 and bigger: 8*150KHz**|**≤1412 and smaller: 2*150KHz;4*10KHz
22 ≥1616 and bigger: 6*150KHz**|**2*200KHz; 4*10KHz**
23 |=**High speed counter AB phase**|**≤1412 and smaller: 4*100KHz
24 ≥1616 and bigger: 8*100KHz**|**≤1412 and smaller: 1*100KHz+2*10KHz
25 ≥1616 and bigger: 3*100KHz**|**2*100KHz**
26 |=Storage Type|(% colspan="3" %)FLASH
27 |=Serial Communication|(((
28 COM1: RS422、RS485;COM2: RS485
29 )))|1208 and smaller: COM1: RS422;COM2: RS485;
30 1212 and bigger: COM1: RS422、RS485;COM2:RS485|1208 and smaller: COM1: RS422;COM2: RS485;
31 1212 and bigger: COM1: RS422、RS485;COM2: RS485
32 |=BD board support|yes|yes|yes
33 |=Communication BD board|(% colspan="2" %)inbuilt ethernet port series, RS485 BD board in developing |RS485 BD support, 3vp supports ethernet bd board
34 |=Expansion Module|(% colspan="2" %)yes √ (1212 and bigger can support)|yes √ (1212 and bigger can support)
35 |=Electronic CAM|√(2 sheets for switch)|√(2 sheets for switch)|N/A
36 |=S-type CAM|√|√|N/A
37 |=N:N Comm|√|√|N/A
38 |=Linear Interpolation|√|√|N/A
39 |=Circular Interpolation|√|√|N/A
40 |=sub-rotine|√|√|N/A
41 |= | | |
42
43 = **2 Software interface difference between 5S and 5V** =
44
45 == **2.1 High speed counter configuration** ==
46
47 **5V as below**
48
49 [[image:image-20220614151005-1.png]]
50
51 **5S is as below**
52
53 [[image:image-20220614151015-2.png]]
54
55 **More detail information,please check the product catalog**
56
57 = **3** **Functions that 3V has but 5V does not** =
58
59 == **3.1 BD board** ==
60
61 LX5V does not support RS485 BD
62
63 LX5V does not support Ethernet BD
64
65 LX5V does not support CAN BD
66
67 == **3.2 Analog BD board expansion address** ==
68
69 Provides the function of analog board BD to modify parameters such as filtering. For specific functions, please refer to the BD board manual.
70
71 == **3.3 PLDID** ==
72
73 Program label function, when the label of the program corresponds to the label of the PLC, the ladder diagram can be uploaded and downloaded. Clearing the memory does not clear this tag either. It is mainly to limit the ladder diagram used by PLC.
74
75 == **3.4 Instructions** ==
76
77 (1) NOP instruction (null instruction)
78
79 (2) TRAN instruction (SFC transfer begins)
80
81 (3) FEND instruction (main program ends)
82
83 (4) IRET instruction (interrupt return)
84
85 (5) SRET instruction (subroutine return)
86
87 (6) SPD instruction
88
89 (7) DRVI2 instruction
90
91 (8) PTO/DPTO instruction(envelope pulse command)
92
93 (9) DABS instruction
94
95 (10) RSLIST instruction
96
97 (11) CPAVL instruction(communication BD configuration)
98
99 == **3.5 Unsupported special register function (M8000, D8000)** ==
100
101 === **3.5.1 Clock related** ===
102
103 Clock function not supported by LX5V
104
105 |=M8014|Oscillation clock with 1 minute clock period
106 |=M8015|Clock stop and preset
107 |=M8016|Stop time to read the display
108 |=M8017|±30 seconds correction
109 |=M8018|install and examine
110 |=M8019|Real-time clock (RTC) error
111
112 === **3.5.2 High-speed counter ring counting function** ===
113
114 |=M8099|High-speed ring counter count start
115 |=M8099|Ring count configuration
116
117 === **3.5.3 X0~~X5 pulse capture function** ===
118
119 |=M8170|X000 pulse capture
120 |=M8171|X001 pulse capture
121 |=M8172|X002 pulse capture
122 |=M8173|X003 pulse capture
123 |=M8174|X004 pulse capture
124 |=M8175|X005 pulse capture
125
126 = **4. 5V function under development** =
127
128 N:N communication protocol
129
130 Interpolation instructions (G90G01, G90G02, G90G03, G91G01, G91G02, G91G03)
131
132 = **5. 3V and 5V incompatible functions (These can be automatically converted in the future)** =
133
134 == **5.1 General register** ==
135
136 (% class="table-bordered" %)
137 |=(% scope="row" %)**register**|=**LX3V**|=**LX5V**|=**Remarks**
138 |=Input|X0~~X377|X0~~X1777|
139 |=Output|Y0~~Y377|Y0~~Y1777|
140 |=Auxiliary|M0~~M3071|M0~~M7999|
141 |=Status|S0~~S999|S0~~S4095|
142 |=Timer|T0~~T255|T0~~T511|
143 |=counter|C0~~C199|C0~~C255|
144 |=Double word counter|C200~~C219|LC0~~LC99|Non-power-down save
145 |=Double word counter|C220~~C234|LC100~~LC255|Power-down save
146 |=High-speed counter|C235~~C255|HSC0~~HSC7|Check the high-speed input function
147 |=Data Register|D0~~D7999|D0~~D7999 (R0~~R29999)|
148 |=Pointer P|P0~~P127|P0~~P4095|
149 |=Instruction I|I0~~I8xx|None|
150 |=constant|K, H, E|K, H, E|
151
152 **Incompatible part**
153
154 ~1. T250~~T255 of LX3V are 100ms timers, while T250~~T255 of LX5V are 10ms timer.
155
156 2. C200~~C234 of LX3V are double word counters, LX5V is changed to single word, and LC0~~LC255 are added as double word counters.
157
158 3. LX3V's high-speed counters C235~~C255 are no longer used. In LX5V, the high-speed counter type is configured through the configuration table, and HSC0~~HSC7 is selected as the high-speed input counter according to the channel. See the high-speed input function for details.
159
160 4. CJ instruction uses pointer P63 to jump directly to END instruction in 3V, but P63 of LX5V is a normal label.
161
162 5. Pointer I is cancelled in LX5V, please check the programming mode for details.
163
164 == **5.2 Programming method** ==
165
166 === **5.2.1 Subroutine (For details, please refer to LX5V Programming Manual Chapter 1.4-Subroutine Branch)** ===
167
168 **Use of LX3V subroutines**
169 [[image:1652684087594-147.png]]
170
171 (% id="cke_bm_21076S" style="display:none" %)** **(%%)Use of LX5V subroutines
172
173 Add new subroutine: project management -> subroutine -> right click -> new
174
175 [[image:1652684473552-267.png]]
176
177 Subroutine can be directly used in the main program by calling its name.
178
179 [[image:1652684829740-769.png]]
180
181 === **5.2.2 Interrupt (For details, please refer to LX5V Programming Manual Chapter 1.4-Branch)** ===
182
183 **LX3V interrupt**
184
185 The interrupt program is under FEND and returns with IRET. The meaning of the specific interrupt is distinguished by the pointer I number.(Refer to EI/DI instruction in 3V)
186
187 The 1ms interrupt program of LX3V is as follows:
188
189 [[image:1652685542135-419.png]]
190
191 **LX5V interrupt**
192
193 Add new interrupt: Project Management -> program->Interrupt -> New
194
195 [[image:1652685665041-340.png]]
196
197 Interrupt configuration: select interrupt mode
198
199 [[image:1652685809566-630.png]]
200
201 === **5.2.3 Instructions** ===
202
203 **OUT command**
204
205 Double word counter[[image:file:///C:\Users\ANNAXU~~1\AppData\Local\Temp\ksohtml14432\wps28.png]]
206
207 LX3V: OUT C200 KXXX
208
209 LX5V: OUT LC0 KXXX
210
211 The C200~~C219 of LX3V are converted to LC0~~LC19 of LX5V (Un-power-down save).
212
213 The OUT C220~~C234 of LX3V is converted to OUT LC100~~LC114 of LX5V (Power-down save).
214
215 **CALL instruction**
216
217 LX3V: OUT C200 PXXX
218
219 LX5V: OUT LC0 subroutine name(See LX5V programming manual for details)
220
221 **CJ instruction**
222
223 LX5V does not support CJ P63 to jump directly to the END instruction.
224
225 LX5V does not support CJ instructions to jump into subroutines and interrupts.
226
227 **DI, EI instructions**
228
229 There is no need to connect the contact before the DI instruction of LX3V.
230
231 [[image:1652687225743-267.png]]
232
233 The contact must be connected before the DI instruction of LX5V.
234
235 [[image:1652687930224-987.png]]
236
237 **DHSCS instruction**
238
239 LX3V: calls interrupt using IXX
240
241 [[image:1652688357931-327.png]]
242
243 LX5V: calls interrupts by using the interrupt program name
244
245 [[image:1652688536392-339.png]]
246
247 **CPAVL instruction**
248
249 CPVAL is used to configure communication BD boards in 3V. LX5V does not currently support it.
250
251 CPVAL is used to switch electronic cam table in LX3V. LX5V uses ECAMCUT instruction(Refer to Chapter 9.1 of LX5V Programming Manual for details).
252
253 **TRH instruction**
254
255 LX3V: input parameters are floating
256
257 LX5V: input parameters are integer
258
259 **ASC instruction**
260
261 LX3V: input strings don't need double quotes
262
263 [[image:1652689598958-799.png]]
264
265 LX5V: input strings need double quotes
266
267 [[image:1652689626279-240.png]]
268
269 = **6. High-speed input function** =
270
271 == **6.1 Use on LX3V** ==
272
273 Find the high-speed input counter you need to use according to the following table:
274
275 [[image:1652689864332-317.png]]
276
277 Through special registers, configure the functions such as frequency multiplication and counting direction.
278
279 Use the OUT instruction to start the high-speed counter counting.
280
281 [[image:1652690126303-800.png]]
282
283 == **6.2 Use on LX5V** ==
284
285 According to channel, select the HSC register to use:
286
287 [[image:1652692297496-626.png]]
288
289 Configure the high-speed counter mode through the host computer configuration table:
290
291 [[image:1652692281566-353.png]]
292
293 Use the OUT instruction to start the high-speed counter counting.
294
295 [[image:1652692388207-617.png]]
296
297 == **6.3 Difference between high-speed counters on LX5V and LX3V** ==
298
299 LX3V updates the count value when the OUT instruction is executed, which is affected by the scan cycle.
300
301
302 LX5V is updated in the 100us interrupt, not affected by the scan cycle, and provides the REF instruction to refresh the current high-speed counter value immediately.
303
304 LX5V single-phase high-speed counter supports filtering function, configurable 0~~17us.
305
306 LX5V high-speed input counter will update the input frequency in the special soft element (SD) every 100us.
307
308 = **7. High-speed output function** =
309
310 **High-speed pulse commands are the same in the use of commands.**
311
312 (% class="table-bordered" %)
313 |=(% scope="row" %) |=LX3V|=LX5V
314 |=DRVI|√|√
315 |=DRVA|√|√
316 |=PLSR|√|√
317 |=PLSV|√|√
318 |=PLSY|√|√
319 |=DVIT|√|√
320 |=ZRN|√|√
321 |=PLSR2|√|√
322
323 **High-speed pulse command difference.**
324
325 PLSR2 instruction parameter address is different
326
327 **Special device change**
328
329 ~1. LX3V has multiple high-speed pulse devices that are shared by multiple axes, while LX5V is separated. Therefore, when converting the program, this type of special address needs to be assigned to all axes together. For example, D8148 of 3V is the acceleration and deceleration time of 4 axes Y0~~Y3, then in LX5V, Y0 acceleration time SD902, deceleration time SD962 and other axis acceleration and deceleration time need to be set to the value of D8148.
330
331 2. Comparison of bit devices
332
333 (% class="table-bordered" %)
334 |=(% scope="row" %)**3V**|=**Description**|=**5V**|=**Description**
335 |=M8145|Y000 pulse output stop|SM898|Y000 pulse output stop
336 |=M8146|Y001 Pulse output stop|SM958|Y001 Pulse output stop
337 |=M8152|Y002 pulse output stop|SM1018|Y002 pulse output stop
338 |=M8153|Y003 Pulse output stop|SM1078|Y003 Pulse output stop
339 |=M8147|Y000 monitoring during pulse output|SM880|Y000 monitoring during pulse output
340 |=M8148|Y001 Monitoring during pulse output|SM940|Y001 Monitoring during pulse output
341 |=M8149|Y002 Monitoring during pulse output|SM1000|Y002 Monitoring during pulse output
342 |=M8150|Y003 Monitoring during pulse output|SM1060|Y003 Monitoring during pulse output
343 |=(% rowspan="4" %)(((
344
345
346
347 M8029
348 )))|(% rowspan="4" %)(((
349
350
351 Some instructions (PLSR, etc.) instruction execution completed (Y0-Y3)
352 )))|SM882|Y0 pulse sending completed
353 |=SM942|Y1 pulse sending completed
354 |=SM1002|Y2 pulse transmission completed
355 |=SM1062|Y3 pulse transmission completed
356 |=M8134|Y0's thousandth control bit|SM897|Y0's thousandth control bit
357 |=M8135|(((
358 The acceleration and deceleration time between each axis of Y1's thousandth control position positioning command is separated
359 )))|(((
360 SM957
361 )))|Y1 Perimeter control bit
362 |=M8136|Y2 Perimeter control bit|SM1017|Y2 Perimeter control bit
363 |=M8137|Y3 Perimeter control bit|SM1077|Y3 Perimeter control bit
364
365 3. Comparison of word devices
366
367 (% class="table-bordered" %)
368 |=(% scope="row" %)**3V**|=**Description**|=**5V**|=**Description**
369 |=D8104|Y0 acceleration and deceleration time (open M8135)|SD902/SD962|Y0 acceleration/deceleration time
370 |=D8105|Y1 acceleration and deceleration time (open M8135)|SD1022/SD1082|Y1 acceleration/deceleration time
371 |=D8106|Y2 acceleration and deceleration time (open M8135)|SD1142/SD1202|Y2 acceleration/deceleration time
372 |=D8107|Y3 acceleration and deceleration time (open M8135)|SD1262/SD1322|Y3 acceleration/deceleration time
373 |=D8140|Y000 Current position low|SD880|Y000 Current position low
374 |=D8141|Y000 current position high|SD881|Y000 current position high
375 |=D8142|Y001 Current position low|SD940|Y001 Current position low
376 |=D8143|Y001 Current position high|SD941|Y001 Current position high
377 |=D8150|Y002 current position low|SD1000|Y002 current position low
378 |=D8151|Y002 current position high|SD1001|Y002 current position high
379 |=D8152|Y003 Current position low|SD1060|Y003 Current position low
380 |=D8153|Y003 Current position high|SD1061|Y003 Current position high
381 |=(% rowspan="4" %)(((
382
383
384
385 D8145
386 )))|(% rowspan="4" %)(((
387
388
389
390 Y0-Y3 Paranoid speed (single word)
391 )))|SD900, SD901|Y0 Paranoid speed (double word)
392 |=SD960, SD961|Y1 Paranoid speed (double word)
393 |=SD1020, SD1021|Y2 Paranoid speed (double word)
394 |=SD1080, SD1081|Y3 Paranoid speed (double word)
395 |=(% rowspan="8" %)(((
396
397
398
399
400
401 D8146,D8147
402 )))|(% rowspan="8" %)(((
403
404
405
406
407
408 Y0-Y3 maximum frequency (double word)
409 )))|SD898|Y0 Maximum speed low
410 |=SD899|Y0 Highest speed
411 |=SD958|Y1 Maximum speed low
412 |=SD959|Y1 Highest speed
413 |=SD1018|Y2 Maximum speed low
414 |=SD1019|Y2 Highest speed
415 |=SD1078|Y3 Maximum speed low
416 |=SD1079|Y3 Highest speed
417 |=(% rowspan="4" %)(((
418
419
420
421 D8148
422 )))|(% rowspan="4" %)(((
423
424
425 4-axis acceleration/deceleration time (when M8135 is not turned on)
426 )))|SD902/SD962|Y0 acceleration/deceleration time
427 |=SD1022/SD1082|Y1 acceleration/deceleration time
428 |=SD1142/SD1202|Y2 acceleration/deceleration time
429 |=SD1262/SD1322|Y3 acceleration/deceleration time
430
431 4. New features of high-speed pulse instructions on LX5V
432
433 ①Support lower frequency output
434
435 3V: 10hz-200KHZ 5V: 1HZ-200K
436
437 ②Support a larger range of acceleration/deceleration time, separate acceleration/deceleration
438
439 3V: 50ms-5000ms 5V: 15ms-32000ms
440
441 ③Support to directly set the start frequency
442
443 ④Support to modify the pulse frequency during operation
444
445 ⑤Support to modify the pulse position (number) during operation
446
447 ⑥Support direction delay (first output the direction and then delay and then output the pulse)
448
449 ⑦Support positive and negative limit
450
451 ⑧Provide different stopping methods (deceleration to stop or immediate stop)
452
453 ⑨Support direction reversal (can set the forward direction to low level)
454
455 = **8. Communication function** =
456
457 **~1. Communication parameter configuration**
458
459 There is a difference in the serial port parameter settings, mainly in the start bit of STX and ETX of the custom protocol. 3V is B8 B9 and 5V is B10 B11. The main reason is that 5V increases the baud rate of 921600.
460
461 **2. Differences in protocol settings**
462
463 3V settings:
464
465 (% class="table-bordered" %)
466 |=(% scope="row" %)**protocol**|=**D8126 value setting**
467 |=RS instruction (custom protocol)|00H
468 |=HMI monitoring protocol (PLC protocol)|01H
469 |=MODBUS-RTU slave|02H
470 |=MODBUS-ASCII slave|03H
471 |=N:N network communication protocol slave|04H
472 |=RS instruction (custom protocol)|10H
473 |=MODBUS-RTU master station|20H
474 |=MODBUS-ASCII master station|30H
475 |=N:N network communication protocol master station|40H
476
477 5V settings:
478
479 (% class="table-bordered" %)
480 |**SD2592 value setting**|**Protocol**
481 |0 H|Wecon Modbus slave
482 |2 H|ModbusRTU slave
483 |3 H|ModbusASCII slave
484 |10 H|User-defined protocol
485 |20 H|ModbusRTU master station
486 |30 H|(((
487 ModbusASCII master
488
489
490 )))
491
492 Although 5V does not have 3V HMI monitoring protocol. But the current HMI has matched the 5V Wecon Modbus slave protocol. The Wecon Modbus slave protocol is modified based on ModbusRTU slave,  Compatible with all ModbusRTU slave content.
493
494 **3. Differences in special devices**
495
496 3V only supports setting the serial port parameters in the first cycle of the scan cycle. The mode of the first cycle setting can be switched only by modifying the corresponding soft element setting according to the special soft element comparison table.
497
498 **4. Slave address difference**
499
500 5V address:
501
502 (% class="table-bordered" %)
503 |Port|Occupy|(% style="width:240px" %)Address range|(% style="width:221px" %)(((
504 10 hex Register
505 )))|(((
506 Total reserved land Address size
507 )))
508 |**Word address**| |(% style="width:240px" %) |(% style="width:221px" %) |
509 |T0~~T511|512 WORD|(% style="width:240px" %)0x0000-0x01ff|(% style="width:221px" %)0|1536
510 |C0~~C255|256 WORD|(% style="width:240px" %)0x0600-0x06ff|(% style="width:221px" %)1536|1024
511 |LC0~~LC255|512 WORD|(% style="width:240px" %)0x0A00-0x0BFF|(% style="width:221px" %)2560|1024
512 |HSC0~~HSC15|128 WORD|(% style="width:240px" %)0x0E00-0x0E1F|(% style="width:221px" %)3584|512
513 |D0~~D7999|8000 WORD|(% style="width:240px" %)0x1000-0x2F3F|(% style="width:221px" %)4096|16384
514 |SD0~~SD4095|4096 WORD|(% style="width:240px" %)0x5000-0x5FFF|(% style="width:221px" %)20480|12288
515 |R0~~R30000|30000 WORD|(% style="width:240px" %)0x8000-0xF52F|(% style="width:221px" %)32768|30000
516 |**Bit address**| |(% style="width:240px" %) |(% style="width:221px" %) |
517 |T0~~T511|512 bit|(% style="width:240px" %)0x0000-0x01ff|(% style="width:221px" %) |1536
518 |C0~~C255|256 bit|(% style="width:240px" %)0x0600-0x06ff|(% style="width:221px" %)1536|1024
519 |LC0~~LC255|256 bit|(% style="width:240px" %)0x0A00-0x0AFF|(% style="width:221px" %)2560|1024
520 |HSC0~~HSC15|64 bit|(% style="width:240px" %)0x0E00-0x0E0F|(% style="width:221px" %)3584|512
521 |M0~~M8000|8192bit|(% style="width:240px" %)0x1000-0x2F3F|(% style="width:221px" %)4096|16384
522 |SM0~~SM4095|4096bit|(% style="width:240px" %)0x5000-0x5FFF|(% style="width:221px" %)20480|12288
523 |Reserved| |(% style="width:240px" %)0x8000-0xBFFF|(% style="width:221px" %) |16383
524 |S0~~S4095|4096bit|(% style="width:240px" %)0xC000-0xCFFF|(% style="width:221px" %)49152|8192
525 |X0~~X1023|1024bit|(% style="width:240px" %)0xE000-0xE3FF|(% style="width:221px" %)57344|4096
526 |Y0~~Y1023|1024bit|(% style="width:240px" %)0xF000-0xF3FF|(% style="width:221px" %)61440|4096
527
528 **5. LX5V added functions**
529
530 Modify serial communication parameters during RUN. For example, use PROTOCOL instruction to modify the protocol during run. The corresponding instruction description can also find the method of setting without instruction. For details, please refer to the relevant instructions of the instruction. Commands are PROTOCOL (set serial port protocol), PROTPARA (set serial port parameters), STATION (set station number)
531
532
533