Wiki source code of Mitsubishi

Version 82.1 by Theodore Xu on 2023/09/16 10:43

Show last authors
1 == **FX3U,3G,3GA Serial ** ==
2
3 Supported Series: Mitsubishi FX3U, FX3G, FX3GA series
4
5 **V-BOX Settings**
6
7 |**Item**|**Settings**|**Note**
8 |Protocol|Mitsubishi FX3U/3G/3GA|
9 |Connection|RS422/RS485/RS232|
10 |Baud rate|9600~~115200|
11 |Data bit|7/8|
12 |Parity|EVEN/Odd/None|
13 |Stop bit|1/2|
14 |PLC station No.|1~~255|
15
16 (% style="text-align:center" %)
17 [[image:三菱 FX3U 串口协议配置.png]]
18
19 **Address List**
20
21 |**Type**|**Device registers**|**Format**|**Range**|**Note**
22 |(% rowspan="7" %)Bit|X|Xo|0~~303237|
23 |Y|Y o|0~~303237|
24 |M|M d|0~~99999|
25 |T|T d|0~~99999|
26 |C|C d|0~~99999|
27 |S|S d|0~~99999|
28 |SM|SM d|8000~~9999|
29 |(% rowspan="8" %)Word|X|Xo|0~~303237|
30 |Y|Y o|0~~303237|
31 |M|M d|0~~99999|
32 |T|T d|0~~99999|
33 |C|C d|0~~199|
34 |D|D d|0~~7999|
35 |S|S d|0~~99999|
36 |SD|SD d|8000~~9999|
37
38 **PLC Setting**
39
40 Open GX Works2, create a new PLC project or open the project that has been created.
41 Create new project: [Project]→[New]→[Series] FXCPU→[Type] FX3G/FX3GC→[OK].
42
43 (% style="text-align:center" %)
44 [[image:GX2.png]]
45
46 (% style="text-align:center" %)
47 [[image:1.2.png]]
48
49 PLC Default Parameters:
50 [Connection type]RS422;[Baud rate]9600, [Data bit]7, [Stop bit]1,[Parity]EVEN; [Station number]0
51 Note:The serial port parameters should be set depending on field requirements
52
53 PC and PLC connection:
54
55 [All connection]→[Connection 1]→[Transfer Setup Connection1]→[Serial USB]→RS-232C: PC and PLC are connected by USB to RS232 adapter,choose corresponding [COM Port]COM 5 →[Transmission speed]9.6Kbps→[setup] →[Parity]EVEN→[Data bits]7→[Stop bits]1→[OK]
56
57 (% style="text-align:center" %)
58 [[image:1.5.1.png]]
59
60 Connection test:when connection is OK,the GX Works2 prompts “Successfully connected with the FX3G/FX3GCCPU.”
61
62 (% style="text-align:center" %)
63 [[image:1.5.2.png]]
64
65 [PLC]→[Write to PLC]→[Online operation]→[Param+program]→[Execute]→[OK]
66
67 (% style="text-align:center" %)
68 [[image:FX3U串口下载.png]]
69
70 **Cable Wiring**
71
72 **RS422**
73
74 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_1e904556bb758dfe.png||alt="image-20220825103421-5.png" height="296" width="715"]]
75
76 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_860bcf87f6ca7b98.png||alt="image-20220825100845-4.png" height="246" width="419"]]
77
78 == **FX NOPROTOCOL** ==
79
80 Mitsubishi FX3G-RS232-BD
81
82 **V-Box Settings**
83
84 |=**Item**|=**Settings**|=**Note**
85 |Protocol|Mitsubishi FX NOPROTOCOL|
86 |Connection|RS232|
87 |Baud rate|9600|
88 |Data bit|7|
89 |Parity|EVEN|
90 |Stop bit|1|
91 |PLC station No.|0|
92
93 (% style="text-align:center" %)
94 [[image:三菱 FN盒子通讯配置.png]]
95
96 **Address List**
97
98 |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
99 |(% rowspan="8" %)Bit|X|X o|0~~303237|
100 |Y|Y o|0~~303237|
101 |M|M d|0~~99999|
102 |T|T d|0~~99999|
103 |C|C d|0~~99999|
104 |S|S d|0~~99999|
105 |SM|SM d|8000~~9999|
106 |Lamp|Lamp d|0~~0|
107 |(% rowspan="8" %)Word|X|X o|0~~303237|
108 |Y|Y o|0~~303237|
109 |M|M d|0~~99999|
110 |T|T d|0~~99999|
111 |C|C d|0~~199|
112 |D|D d|0~~7999|
113 |S|S d|0~~99999|
114 |SD|SD d|8000~~9999|
115
116 **Cable Wiring**
117
118 [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_1717efe8d969a43c.png]]
119
120 == **FX3U Ethernet ** ==
121
122 Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L
123
124 **V-BOX Settings**
125
126 |Items|Settings|Note
127 |Protocol|Mitsubishi FX3U|
128 |Connection|Ethernet|
129 |Port No.|5009|Must be the same as the PLC setting
130 |PLC station No.|0|
131
132 (% style="text-align:center" %)
133 [[image:三菱 FX3U 以太网协议配置.png]]
134
135 **Address List**
136
137 |**Type**|**Device registers**|**Format**|**Range**|**Note**
138 |(% rowspan="7" %)Bit|X|X OOO|0~~377|
139 |Y|Y OOO|0~~377|
140 |M|M DDDD|0~~7679|
141 |SM|SM DDDD|8000~~8511|
142 |S|S DDDD|0~~4095|
143 |TS|TS DDD|0~~511|
144 |CS|CS DDD|0~~255|
145 |(% rowspan="5" %)Word|CN|CN DDD|0~~199|
146 |TN|TN DDD|0~~511|
147 |D|D DDDD|0~~7999|
148 |SD|SD DDDD|8000~~8511|
149 |R|R DDDDD|0~~32767|
150
151 **Ethernet Module Settings**
152
153 FX3U-ENET-L module configuration
154 Set up the FX3U-ENET-L Ethernet module settings as follows.
155 Select the module location, which in this document is Module 0.
156
157 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_949d5d77c1d9cf1e.png||alt="image-20221116105850-1.png" height="573" width="706"]]
158
159 Select "Operational setting" to enter the following screen.
160
161 The Ethernet module IP is set to 192.168.39.254 in this document, and other options are default.
162
163 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_dfbfdd586c855c47.png||alt="image-20221116105947-1.png" height="573" width="706"]]
164
165 Select "Open setting" to enter the setting interface, the settings are as follows.
166
167 The third item "Protocol" selects TCP, and "Open system" selects MELSOFT connection, which allows the
168
169 Mitsubishi programming software GX works2 to communicate with the FX3U via the Ethernet module.
170
171 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_7c01ac15090fcc5b.png||alt="image-20221116110802-1.png" height="549" width="706"]]
172
173 Click on "transter setup" - "PC side I/F setting", see the following figure.
174
175 After setting, the first download must use the programming cable, as shown in the figure; after that, can
176
177 use the IP set in the "Ethernet board" to communicate directly with the network cable.
178
179 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d6fd9ce3b96f99e2.png||alt="image-20221116110832-2.png" height="423" width="708"]]
180
181 Read and write data from the Ethernet module
182
183 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_690b3e57b29cfd4b.png||alt="image-20221116110907-3.png" height="549" width="706"]]
184
185 Set "Transter setup" to COM communication, and read or write operation as shown below
186
187 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_b317253742f7151.png||alt="image-20221116110917-4.png" height="549" width="706"]]
188
189 **PLC Settings (GX Works 2)**
190
191 Create a blank FX5U project
192
193 Find Current Connection in the navigation
194
195 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d2a46ba9c005cf38.png||alt="image-20221116111427-1.png" height="421" width="705"]]
196
197 Select Connection Channel List
198
199 Select Ethernet board communication
200
201 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_8f49721a3e5b0ef9.png||alt="image-20221116111451-2.png" height="421" width="705"]]
202
203 Select Ethernet Module
204 Set the IP address of the PLC
205
206 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_1e9a9e29a46a1041.png||alt="image-20221116111509-3.png" height="666" width="699"]]
207
208 Read or write PLC data, in this document is read
209
210 {{id name="Iimage-20221116111651-4.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_e3d629103727a423.png||alt="image-20221116111651-4.png" height="416" width="697"]]
211
212 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_7f29923ebcb670d1.png||alt="image-20221116111727-5.png" height="416" width="697"]]
213
214 == **FX5U Serial ** ==
215
216 Mitsubishi FX5U series PLC
217
218 **V-BOX Settings**
219
220 |**Item**|**Settings**|**Note**
221 |Protocol|Mitsubishi FX5U|
222 |Connection|RS422/RS485|
223 |Baud rate|9600|
224 |Data bit|7|
225 |Parity|Odd|
226 |Stop bit|1|
227 |PLC station No.|1~~255|Need to be the same as PLC settings
228
229 (% style="text-align:center" %)
230 [[image:三菱 FX5U 串口协议配置.png]]
231
232 **Address List**
233
234 |**Type**|**Device registers**|**Format**|**Range**|**Note**
235 |(% rowspan="15" %)Bit|X|X o|0~~303237|
236 |Y|Y o|0~~303237|
237 |M|M d|0~~99999|
238 |B|B h|0~~7FFF|
239 |F|F d|0~~32767|
240 |SB|SB h|0~~7FFF|
241 |TS|TS d|0~~1023|
242 |TC|TC d|0~~1023|
243 |STS|STS d|0~~1023|
244 |STC|STS d|0~~1023|
245 |CS|CS d|0~~1023|
246 |CC|CC d|0~~1023|
247 |SM|SM d|0~~9999|
248 |L|L d|0~~32767|
249 |S|S d|0~~4095|
250 |(% rowspan="9" %)Word|W|W h|0~~3FF|
251 |TN|TN d|0~~1023|
252 |STN|STN d|0~~1023|
253 |CN|CN d|0~~1023|
254 |R|R d|0~~32767|
255 |SW|SW h|0~~7FFF|
256 |Z|Z d|0~~23|
257 |D|D d|0~~7999|
258 |SD|SD d|0~~11999|
259
260 **PLC Settings **
261
262 Create a blank FX5U project
263
264 Open GX Works3, create a new PLC project or open the project that has been created. Create new project: [Project]→[New]→[Series] FX5CPU→[Type] FX5U→[OK].
265
266 (% style="text-align:center" %)
267 [[image:GX3.png]]
268
269
270 (% style="text-align:center" %)
271 [[image:FX5U 串口选型号.png]]
272
273 PLC Default Parameters: 
274 [Navigation]→[Parameter]→[FX5UCPU]→[Module Parameter]→[485 Serial Port]:[Basic Settings] →[ Communication Protocol Type] MC Protocol→[Advanced Settings]:[Baud rate]9600Kbps, [Data Length]7, [Stop bit]1,[Parity]Odd.
275
276 (% style="text-align:center" %)
277 [[image:FX5U plc串口参数配置.png]]
278
279
280 [Navigation]→[Parameter]→[FX5UCPU]→[Module Parameter]→[485 Serial Port]: [fixed Setting] →[Station No.]0→[Message Pattern] Pattern 1 (X,Y OCT)→[Apply]
281
282 {{info}}
283 **✎Note:** The serial port parameters should be set depending on field requirements.
284 {{/info}}
285
286 (% style="text-align:center" %)
287 [[image:FX5U plc串口参数.png]]
288
289 **Cable Wiring**
290
291 **RS422**
292
293 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d022c5ff4cf8c68e.png||alt="image-20220825105105-2.png" height="288" width="711"]]
294
295 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_50e173394c73f154.png||alt="image-20220825105533-3.png" height="246" width="420"]]
296
297 == ==
298
299 == **FX5U Ethernet ** ==
300
301 Mitsubishi FX5U series PLC
302
303 **V-BOX Settings**
304
305 |**Items**|**Settings**|**Note**
306 |Protocol|Mitsubishi FX5U|
307 |Connection|Ethernet|
308 |Port No.|5002|Must be the same as the PLC setting
309 |PLC station No.|0|
310
311 (% style="text-align:center" %)
312 [[image:三菱 FX5U 以太网协议配置.png]]
313
314 **Address List**
315
316 |**Type**|**Device registers**|**Format**|**Range**|**Note**
317 |(% rowspan="15" %)Bit|X|X o|0~~303237|
318 |Y|Y o|0~~303237|
319 |M|M d|0~~99999|
320 |B|B h|0~~7FFF|
321 |F|F d|0~~32767|
322 |SB|SB h|0~~7FFF|
323 |TS|TS d|0~~1023|
324 |TC|TC d|0~~1023|
325 |STS|STS d|0~~1023|
326 |STC|STS d|0~~1023|
327 |CS|CS d|0~~1023|
328 |CC|CC d|0~~1023|
329 |SM|SM d|0~~9999|
330 |L|L d|0~~32767|
331 |S|S d|0~~4095|
332 |(% rowspan="9" %)Word|W|W h|0~~3FF|
333 |TN|TN d|0~~1023|
334 |STN|STN d|0~~1023|
335 |CN|CN d|0~~1023|
336 |R|R d|0~~32767|
337 |SW|SW h|0~~7FFF|
338 |Z|Z d|0~~23|
339 |D|D d|0~~7999|
340 |SD|SD d|0~~11999|
341
342 **PLC Settings **
343
344 Open GX Works3, create a new PLC project or open the project that has been created.
345
346 Create new project: [Project]→[New]→[Series] FX5CPU→[Type] FX5U→[OK].
347
348 (% style="text-align:center" %)
349 [[image:GX3.png]]
350
351 (% style="text-align:center" %)
352 [[image:FX5U 串口选型号.png]]
353
354 PLC Default Parameters: 
355 [Navigation]→[Parameter]→[FX5UCPU]→[Module Parameter]→[Ethernet Port]:[Basic Settings] →[Own node settings]:[IP Address]192.168.40.11, [Subnet Mask]255.255.255.0, [Default Gateway]192.168.40.1,[ Communication Data Code] Binary.
356
357 (% style="text-align:center" %)
358 [[image:FX5U 以太网配置.png]]
359
360 [External Device Configuration]→[Detailed Settings]→[Ethernet Configuration(Built-in Ethernet Port)]→[Ethernet Device (General)]→[SLMP Connection Module] Drag under Host for Connection No.1→[Port No.]5002→[Close with Reflecting the Setting]
361
362 (% style="text-align:center" %)
363 [[image:1.3.2.png]]
364
365 PC and PLC connection
366
367 [Online]→[Current Connection Destination]→[Direct Coupled Setting]→[Ethernet]→[Adapter] Realtek PCIe GBE Family Controller→[Communication Test]: Successfully connected with the FX5UCPU.
368
369 (% style="text-align:center" %)
370 [[image:FX5U 以太网连接PLC.png]]
371
372 Downloading PLC project
373 [Online]→[Write to PLC]→[Online Data operation]→[Param+program]→[Execute]→[Yes] →[Yes to all]
374
375 (% style="text-align:center" %)
376 [[image:FX5U以太网下载.png]]
377
378 **Cable Wiring**
379
380 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
381
382 == **L02 Serial ** ==
383
384 Mitsubishi L02 series CPU built-in serial port.
385
386 **V-BOX Settings**
387
388 |**Item**|**Settings**|**Note**
389 |Protocol|Mitsubishi L02|
390 |Connection|RS422|
391 |Baud rate|115200|
392 |Data bit|8|
393 |Parity|Odd|
394 |Stop bit|1|
395 |PLC station No.|1~~255|Need to be the same as PLC settings
396
397 (% style="text-align:center" %)
398 [[image:三菱 L02串口协议配置.png]]
399
400 **Address List**
401
402 |**Type**|**Device registers**|**Format**|**Range**|**Note**
403 |(% colspan="1" rowspan="20" %)Bit
404 |X|X h|0~~FFFF|
405 |Y|Y h|0~~FFFF|
406 |M|M d|0~~9999|
407 |L|L d|0~~9999|
408 |F|F d|0~~9999|
409 |B|B h|0~~FFFF|
410 |V|V d|0~~2047|
411 |TC|TC d|0~~9999|
412 |SS|SS d|0~~9999|
413 |SC|SC d|0~~9999|
414 |CS|CS d|0~~9999|
415 |CC|CC d|0~~9999|
416 |SB|SB h|0~~FFFF|
417 |SM|SM d|0~~2047|
418 |STS|STS d|0~~1023|
419 |S|S d|0~~9999|
420 |DX|DX h|0~~FFFF|
421 |DY|DY h|0~~FFFF|
422 |TS|TS d|0~~9999|
423 |Dbit|Dbit d.d|0~~99999.0~~15|
424 |(% colspan="1" rowspan="9" %)Word
425 |W|W h|0~~FFFF|
426 |TN|TN d|0~~99999|
427 |SN|SN d|0~~99999|
428 |CN|CN d|0~~99999|
429 |R|R d|0~~99999|
430 |SW|SW h|0~~FFFF|
431 |Z|Z d|0~~99999|
432 |ZR|ZR h|0~~FFFF|
433 |D|D d|0~~99999|
434
435 **Cable Wiring**
436
437 **RS422**
438
439 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_90e38f152d639809.png||alt="image-20220825161612-8.png" height="278" width="612"]]
440
441 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d301e675d8224725.png||alt="image-20220825160820-4.png" height="208" width="359"]]
442
443 == **L02 Ethernet ** ==
444
445 Mitsubishi L series CPU built-in Ethernet port.
446
447 **V-BOX Settings**
448
449 |**Items**|**Settings**|**Note**
450 |Protocol|MIT L02 CPU MELSEC|
451 |Connection|Ethernet|
452 |Port No.|1025|Must be the same as the PLC setting
453 |PLC station No.|0|Must be the same as the PLC setting
454
455 (% style="text-align:center" %)
456 [[image:三菱 L02以太网协议配置1.png]]
457
458 **PLC Settings (GX Works2 )**
459
460 Create a project
461
462 Set PLC IP, subnet mask and gateway;
463
464 Select [Binary Code] as communication data code;
465
466 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_776e17505f3fc6c0.png?width=600&height=524&rev=1.1||alt="12.PLC Protocol_html_776e17505f3fc6c0.png" height="524" width="600"]]
467
468 Set PLC port number, for example 1025
469
470 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_8d0d1a22d388f70b.png?width=600&height=524&rev=1.1||alt="12.PLC Protocol_html_8d0d1a22d388f70b.png" height="524" width="600"]]
471
472 Save settings;
473
474 Download project into PLC device;
475
476 Restart PLC device;
477
478 **Cable Wiring**
479
480 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.PLC Protocol_html_2297240b57346b2a.png" height="170" width="401"]]
481
482 == {{id name="HQ12HSerial"/}}**Q12H Serial ** ==
483
484 This Demo shows V-BOX communicate with Q12H PLC by Q02H serial Protocol
485
486 **[[Download link>>url:https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Communication/V-Box%20connect%20PLC%20Q12H.rar]]**
487
488 == **QJ71E71 Ethernet ** ==
489
490 Mitsubishi QJ71E71 Ethernet communication module;
491
492 **V-BOX Settings**
493
494 |**Items**|**Settings**|**Note**
495 |Protocol|MIT QJ71E71 MELSEC|
496 |Connection|Ethernet|
497 |Port No.|1025|Must be the same as the PLC setting
498 |PLC station No.|0|Must be the same as the PLC setting
499
500 (% style="text-align:center" %)
501 [[image:三菱 QJ71 以太网协议配置.png]]
502
503 **Address List**
504
505 |**Type**|**Device registers**|**Format**|**Range**|**Note**
506 |(% rowspan="18" %)Bit|X|X h|0~~1FFF|
507 |Y|Y h|0~~1FFF|
508 |M|M d|0~~99999|
509 |L|L d|0~~8191|
510 |F|F d|0~~2047|
511 |B|B h|0~~1FFF|
512 |V|V d|0~~2047|
513 |TS|TS d|0~~2047|
514 |TC|TC d|0~~2047|
515 |SS|SS d|0~~2047|
516 |SC|SC d|0~~2047|
517 |CS|CS d|0~~1023|
518 |CC|CC d|0~~1023|
519 |SB|SB h|0~~7FF|
520 |S|S d|0~~8191|
521 |DX|DX h|0~~1FFF|
522 |DY|DY h|0~~1FFF|
523 |SM|SM d|8000~~9999|
524 |(% rowspan="10" %)Word|SD|SD d|0~~2047|
525 |D|D d|0~~12287|
526 |W|W h|0~~1FFF|
527 |TN|TN d|0~~2047|
528 |SN|SN d|0~~2047|
529 |CN|CN d|0~~1023|
530 |R|R d|0~~32767|
531 |SW|SW h|0~~7FF|
532 |Z|Z d|0~~15|
533 |ZR|ZR h|0~~FE7FF|
534
535 **PLC Settings(GX Works2)**
536
537 * Click [Ethernet/CC IE/MELSECNET];
538 * Please select [Ethernet] as network type;
539 * Set station I/O number according to situation (For example, 0020 means that the module is connected to PLC CPU in first order);
540 * Select [Online] as Mode;
541 * [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d54f23688c520f78.png||alt="image-20221119171343-2.png" height="341" width="587"]]
542 * Click [Operation setting] to set IP;
543 * Select [Binary Code] as [Communication Data Code];
544 * [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ce8e6a671b9508e0.png||alt="image-20221119171436-3.png" height="354" width="588"]]
545 * Click [Open setting]
546 * Set protocol: TCP;
547 * Set [unpassive] in [Open system];
548 * Set [receive] in [Fixed buffer];
549 * Set [procedure Exist] in [Fixed buffer communication];
550 * Disable [Pairing open];
551 * Set [No confirm] in [Existence confirmation];
552 * Host station port number: 5009;
553 * Save settings;
554 * {{id name="Iimage-20221119171611-4.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_1d8e2f4fb7c72471.png||alt="image-20221119171611-4.png" height="354" width="588"]]
555 * Download project into PLC and restart it
556
557 **Cable Wiring**
558
559 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_2297240b57346b2a.png?width=401&height=170&rev=1.1||alt="12.可编程逻辑控制器Protocol_html_2297240b57346b2a.png" height="170" width="401"]]