Wiki source code of Mitsubishi

Version 84.1 by Joe on 2024/04/29 14:40

Hide last authors
Theodore Xu 40.1 1 == **FX3U,3G,3GA Serial ** ==
Leo Wei 2.1 2
3 Supported Series: Mitsubishi FX3U, FX3G, FX3GA series
4
Theodore Xu 38.1 5 **V-BOX Settings**
Leo Wei 2.1 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
Theodore Xu 58.1 16 (% style="text-align:center" %)
17 [[image:三菱 FX3U 串口协议配置.png]]
18
Theodore Xu 38.1 19 **Address List**
Leo Wei 2.1 20
Theodore Xu 67.1 21 |**Type**|**Device registers**|**Format**|**Range**|**Note**
Joe 83.16 22 |(% rowspan="7" %)Bit|X|X o|0~~303237|
Theodore Xu 67.1 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|
Joe 83.16 29 |(% rowspan="8" %)Word|X|X o|0~~303237|
Theodore Xu 67.1 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|
Leo Wei 2.1 37
Theodore Xu 42.1 38 **PLC Setting**
Leo Wei 2.1 39
Theodore Xu 42.1 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" %)
Theodore Xu 77.1 44 [[image:GX2.png]]
45
46 (% style="text-align:center" %)
Theodore Xu 42.1 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
Theodore Xu 77.1 65 [PLC]→[Write to PLC]→[Online operation]→[Param+program]→[Execute]→[OK]
66
67 (% style="text-align:center" %)
Theodore Xu 78.1 68 [[image:FX3U串口下载.png]]
Theodore Xu 77.1 69
Theodore Xu 42.1 70 **Cable Wiring**
71
Theodore Xu 38.1 72 **RS422**
Leo Wei 2.1 73
Theodore Xu 38.1 74 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_1e904556bb758dfe.png||alt="image-20220825103421-5.png" height="296" width="715"]]
Leo Wei 2.1 75
Theodore Xu 38.1 76 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_860bcf87f6ca7b98.png||alt="image-20220825100845-4.png" height="246" width="419"]]
Leo Wei 2.1 77
Theodore Xu 43.1 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
Theodore Xu 68.1 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|
Theodore Xu 43.1 115
Theodore Xu 45.1 116 **Cable Wiring**
Theodore Xu 43.1 117
Theodore Xu 44.1 118 [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_1717efe8d969a43c.png]]
119
Theodore Xu 41.1 120 == **FX3U Ethernet ** ==
Leo Wei 2.1 121
122 Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L
123
Theodore Xu 41.1 124 **V-BOX Settings**
Leo Wei 2.1 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
Theodore Xu 60.1 132 (% style="text-align:center" %)
133 [[image:三菱 FX3U 以太网协议配置.png]]
Theodore Xu 57.1 134
Theodore Xu 41.1 135 **Address List**
Leo Wei 2.1 136
Theodore Xu 69.1 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|
Leo Wei 2.1 150
Theodore Xu 41.1 151 **Ethernet Module Settings**
Leo Wei 2.1 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
Theodore Xu 41.1 157 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_949d5d77c1d9cf1e.png||alt="image-20221116105850-1.png" height="573" width="706"]]
Leo Wei 2.1 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
Joe 83.18 163 (% style="text-align:center" %)
164 [[image:894qM2hnau.png]]
Leo Wei 2.1 165
166 Select "Open setting" to enter the setting interface, the settings are as follows.
167
168 The third item "Protocol" selects TCP, and "Open system" selects MELSOFT connection, which allows the
169
170 Mitsubishi programming software GX works2 to communicate with the FX3U via the Ethernet module.
171
Theodore Xu 41.1 172 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_7c01ac15090fcc5b.png||alt="image-20221116110802-1.png" height="549" width="706"]]
Leo Wei 2.1 173
174 Click on "transter setup" - "PC side I/F setting", see the following figure.
175
176 After setting, the first download must use the programming cable, as shown in the figure; after that, can
177
178 use the IP set in the "Ethernet board" to communicate directly with the network cable.
179
Joe 83.18 180 (% style="text-align:center" %)
181 [[image:xzZboZHffh.png]]
Leo Wei 2.1 182
Joe 83.18 183 (% style="text-align:center" %)
184 [[image:ivWMdrv1Gh.png]]
Leo Wei 2.1 185
Joe 83.18 186 (% style="text-align:center" %)
187 [[image:qoQNWSBoEQ.png]]
188
189
Theodore Xu 41.1 190 **PLC Settings (GX Works 2)**
Leo Wei 2.1 191
192 Create a blank FX5U project
193
194 Find Current Connection in the navigation
195
Theodore Xu 41.1 196 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d2a46ba9c005cf38.png||alt="image-20221116111427-1.png" height="421" width="705"]]
Leo Wei 2.1 197
198 Select Connection Channel List
199
200 Select Ethernet board communication
201
Theodore Xu 41.1 202 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_8f49721a3e5b0ef9.png||alt="image-20221116111451-2.png" height="421" width="705"]]
Leo Wei 2.1 203
204 Select Ethernet Module
205 Set the IP address of the PLC
206
Theodore Xu 41.1 207 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_1e9a9e29a46a1041.png||alt="image-20221116111509-3.png" height="666" width="699"]]
Leo Wei 2.1 208
209 Read or write PLC data, in this document is read
210
211 {{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"]]
212
Theodore Xu 41.1 213 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_7f29923ebcb670d1.png||alt="image-20221116111727-5.png" height="416" width="697"]]
Leo Wei 2.1 214
Theodore Xu 46.1 215 == **FX5U Serial ** ==
Leo Wei 2.1 216
217 Mitsubishi FX5U series PLC
218
Theodore Xu 46.1 219 **V-BOX Settings**
Leo Wei 2.1 220
221 |**Item**|**Settings**|**Note**
222 |Protocol|Mitsubishi FX5U|
223 |Connection|RS422/RS485|
224 |Baud rate|9600|
225 |Data bit|7|
226 |Parity|Odd|
227 |Stop bit|1|
228 |PLC station No.|1~~255|Need to be the same as PLC settings
229
Theodore Xu 54.1 230 (% style="text-align:center" %)
231 [[image:三菱 FX5U 串口协议配置.png]]
232
Theodore Xu 46.1 233 **Address List**
Leo Wei 2.1 234
Theodore Xu 70.1 235 |**Type**|**Device registers**|**Format**|**Range**|**Note**
236 |(% rowspan="15" %)Bit|X|X o|0~~303237|
237 |Y|Y o|0~~303237|
238 |M|M d|0~~99999|
239 |B|B h|0~~7FFF|
240 |F|F d|0~~32767|
241 |SB|SB h|0~~7FFF|
242 |TS|TS d|0~~1023|
243 |TC|TC d|0~~1023|
244 |STS|STS d|0~~1023|
245 |STC|STS d|0~~1023|
246 |CS|CS d|0~~1023|
247 |CC|CC d|0~~1023|
248 |SM|SM d|0~~9999|
249 |L|L d|0~~32767|
250 |S|S d|0~~4095|
251 |(% rowspan="9" %)Word|W|W h|0~~3FF|
252 |TN|TN d|0~~1023|
253 |STN|STN d|0~~1023|
254 |CN|CN d|0~~1023|
255 |R|R d|0~~32767|
256 |SW|SW h|0~~7FFF|
257 |Z|Z d|0~~23|
258 |D|D d|0~~7999|
259 |SD|SD d|0~~11999|
Leo Wei 2.1 260
Theodore Xu 79.1 261 **PLC Settings **
Leo Wei 2.1 262
263 Create a blank FX5U project
264
Theodore Xu 79.1 265 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].
Leo Wei 2.1 266
Theodore Xu 79.1 267 (% style="text-align:center" %)
268 [[image:GX3.png]]
Leo Wei 2.1 269
270
Theodore Xu 79.1 271 (% style="text-align:center" %)
272 [[image:FX5U 串口选型号.png]]
Leo Wei 2.1 273
Theodore Xu 79.1 274 PLC Default Parameters: 
275 [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.
Leo Wei 2.1 276
Theodore Xu 79.1 277 (% style="text-align:center" %)
278 [[image:FX5U plc串口参数配置.png]]
Leo Wei 2.1 279
280
Theodore Xu 79.1 281 [Navigation]→[Parameter]→[FX5UCPU]→[Module Parameter]→[485 Serial Port]: [fixed Setting] →[Station No.]0→[Message Pattern] Pattern 1 (X,Y OCT)→[Apply]
Leo Wei 2.1 282
Theodore Xu 79.1 283 {{info}}
284 **✎Note:** The serial port parameters should be set depending on field requirements.
285 {{/info}}
Leo Wei 2.1 286
Theodore Xu 79.1 287 (% style="text-align:center" %)
288 [[image:FX5U plc串口参数.png]]
Leo Wei 2.1 289
Theodore Xu 46.1 290 **Cable Wiring**
Leo Wei 2.1 291
Theodore Xu 46.1 292 **RS422**
Leo Wei 2.1 293
Theodore Xu 80.1 294 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d022c5ff4cf8c68e.png||alt="image-20220825105105-2.png" height="288" width="711"]]
Leo Wei 2.1 295
Theodore Xu 80.1 296 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_50e173394c73f154.png||alt="image-20220825105533-3.png" height="246" width="420"]]
Leo Wei 2.1 297
Theodore Xu 33.1 298 == **FX5U Ethernet ** ==
Leo Wei 2.1 299
300 Mitsubishi FX5U series PLC
301
Theodore Xu 59.1 302 **V-BOX Settings**
Leo Wei 2.1 303
304 |**Items**|**Settings**|**Note**
305 |Protocol|Mitsubishi FX5U|
306 |Connection|Ethernet|
307 |Port No.|5002|Must be the same as the PLC setting
308 |PLC station No.|0|
309
Theodore Xu 59.1 310 (% style="text-align:center" %)
311 [[image:三菱 FX5U 以太网协议配置.png]]
Leo Wei 2.1 312
Theodore Xu 59.1 313 **Address List**
314
Theodore Xu 71.1 315 |**Type**|**Device registers**|**Format**|**Range**|**Note**
316 |(% rowspan="15" %)Bit|X|X o|0~~303237|
317 |Y|Y o|0~~303237|
318 |M|M d|0~~99999|
319 |B|B h|0~~7FFF|
320 |F|F d|0~~32767|
321 |SB|SB h|0~~7FFF|
322 |TS|TS d|0~~1023|
323 |TC|TC d|0~~1023|
324 |STS|STS d|0~~1023|
325 |STC|STS d|0~~1023|
326 |CS|CS d|0~~1023|
327 |CC|CC d|0~~1023|
328 |SM|SM d|0~~9999|
329 |L|L d|0~~32767|
330 |S|S d|0~~4095|
331 |(% rowspan="9" %)Word|W|W h|0~~3FF|
332 |TN|TN d|0~~1023|
333 |STN|STN d|0~~1023|
334 |CN|CN d|0~~1023|
335 |R|R d|0~~32767|
336 |SW|SW h|0~~7FFF|
337 |Z|Z d|0~~23|
338 |D|D d|0~~7999|
339 |SD|SD d|0~~11999|
Leo Wei 2.1 340
Theodore Xu 81.1 341 **PLC Settings **
Leo Wei 2.1 342
Theodore Xu 81.1 343 Open GX Works3, create a new PLC project or open the project that has been created.
344
345 Create new project: [Project]→[New]→[Series] FX5CPU→[Type] FX5U→[OK].
346
Theodore Xu 75.2 347 (% style="text-align:center" %)
Theodore Xu 81.1 348 [[image:GX3.png]]
Leo Wei 2.1 349
Theodore Xu 81.1 350 (% style="text-align:center" %)
351 [[image:FX5U 串口选型号.png]]
352
353 PLC Default Parameters: 
354 [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.
355
356 (% style="text-align:center" %)
357 [[image:FX5U 以太网配置.png]]
358
Theodore Xu 75.2 359 [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]
Leo Wei 2.1 360
Theodore Xu 75.2 361 (% style="text-align:center" %)
362 [[image:1.3.2.png]]
Leo Wei 2.1 363
Theodore Xu 81.1 364 PC and PLC connection
365
366 [Online]→[Current Connection Destination]→[Direct Coupled Setting]→[Ethernet]→[Adapter] Realtek PCIe GBE Family Controller→[Communication Test]: Successfully connected with the FX5UCPU.
367
368 (% style="text-align:center" %)
369 [[image:FX5U 以太网连接PLC.png]]
370
371 Downloading PLC project
372 [Online]→[Write to PLC]→[Online Data operation]→[Param+program]→[Execute]→[Yes] →[Yes to all]
373
374 (% style="text-align:center" %)
375 [[image:FX5U以太网下载.png]]
376
Theodore Xu 59.1 377 **Cable Wiring**
Leo Wei 2.1 378
Theodore Xu 33.1 379 [[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"]]
Leo Wei 2.1 380
Theodore Xu 47.1 381 == **L02 Serial ** ==
Leo Wei 2.1 382
383 Mitsubishi L02 series CPU built-in serial port.
384
Theodore Xu 47.1 385 **V-BOX Settings**
Leo Wei 2.1 386
387 |**Item**|**Settings**|**Note**
388 |Protocol|Mitsubishi L02|
389 |Connection|RS422|
390 |Baud rate|115200|
391 |Data bit|8|
392 |Parity|Odd|
393 |Stop bit|1|
394 |PLC station No.|1~~255|Need to be the same as PLC settings
395
Theodore Xu 53.1 396 (% style="text-align:center" %)
397 [[image:三菱 L02串口协议配置.png]]
398
Theodore Xu 47.1 399 **Address List**
Leo Wei 2.1 400
Theodore Xu 72.1 401 |**Type**|**Device registers**|**Format**|**Range**|**Note**
Theodore Xu 47.1 402 |(% colspan="1" rowspan="20" %)Bit
Theodore Xu 72.1 403 |X|X h|0~~FFFF|
404 |Y|Y h|0~~FFFF|
405 |M|M d|0~~9999|
406 |L|L d|0~~9999|
407 |F|F d|0~~9999|
408 |B|B h|0~~FFFF|
409 |V|V d|0~~2047|
410 |TC|TC d|0~~9999|
411 |SS|SS d|0~~9999|
412 |SC|SC d|0~~9999|
413 |CS|CS d|0~~9999|
414 |CC|CC d|0~~9999|
415 |SB|SB h|0~~FFFF|
416 |SM|SM d|0~~2047|
417 |STS|STS d|0~~1023|
418 |S|S d|0~~9999|
419 |DX|DX h|0~~FFFF|
420 |DY|DY h|0~~FFFF|
421 |TS|TS d|0~~9999|
422 |Dbit|Dbit d.d|0~~99999.0~~15|
Theodore Xu 47.1 423 |(% colspan="1" rowspan="9" %)Word
Theodore Xu 72.1 424 |W|W h|0~~FFFF|
425 |TN|TN d|0~~99999|
426 |SN|SN d|0~~99999|
427 |CN|CN d|0~~99999|
428 |R|R d|0~~99999|
429 |SW|SW h|0~~FFFF|
430 |Z|Z d|0~~99999|
431 |ZR|ZR h|0~~FFFF|
432 |D|D d|0~~99999|
Leo Wei 2.1 433
Theodore Xu 47.1 434 **Cable Wiring**
Leo Wei 2.1 435
Theodore Xu 47.1 436 **RS422**
Leo Wei 2.1 437
Theodore Xu 47.1 438 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_90e38f152d639809.png||alt="image-20220825161612-8.png" height="278" width="612"]]
Leo Wei 2.1 439
Theodore Xu 47.1 440 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d301e675d8224725.png||alt="image-20220825160820-4.png" height="208" width="359"]]
Leo Wei 2.1 441
Theodore Xu 48.1 442 == **L02 Ethernet ** ==
Leo Wei 2.1 443
444 Mitsubishi L series CPU built-in Ethernet port.
445
Theodore Xu 48.1 446 **V-BOX Settings**
Leo Wei 2.1 447
448 |**Items**|**Settings**|**Note**
449 |Protocol|MIT L02 CPU MELSEC|
450 |Connection|Ethernet|
451 |Port No.|1025|Must be the same as the PLC setting
452 |PLC station No.|0|Must be the same as the PLC setting
453
Theodore Xu 52.1 454 (% style="text-align:center" %)
455 [[image:三菱 L02以太网协议配置1.png]]
Theodore Xu 51.1 456
Theodore Xu 48.1 457 **PLC Settings (GX Works2 )**
Leo Wei 2.1 458
459 Create a project
460
461 Set PLC IP, subnet mask and gateway;
462
463 Select [Binary Code] as communication data code;
464
Theodore Xu 49.1 465 [[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"]]
Leo Wei 2.1 466
467 Set PLC port number, for example 1025
468
Theodore Xu 49.1 469 [[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"]]
Leo Wei 2.1 470
471 Save settings;
472
473 Download project into PLC device;
474
475 Restart PLC device;
476
Theodore Xu 49.1 477 **Cable Wiring**
Leo Wei 2.1 478
Theodore Xu 49.1 479 [[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"]]
Leo Wei 2.1 480
481 == {{id name="HQ12HSerial"/}}**Q12H Serial ** ==
482
483 This Demo shows V-BOX communicate with Q12H PLC by Q02H serial Protocol
484
485 **[[Download link>>url:https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Communication/V-Box%20connect%20PLC%20Q12H.rar]]**
486
Theodore Xu 32.1 487 == **QJ71E71 Ethernet ** ==
Leo Wei 2.1 488
489 Mitsubishi QJ71E71 Ethernet communication module;
490
Theodore Xu 50.1 491 **V-BOX Settings**
Leo Wei 2.1 492
493 |**Items**|**Settings**|**Note**
494 |Protocol|MIT QJ71E71 MELSEC|
495 |Connection|Ethernet|
496 |Port No.|1025|Must be the same as the PLC setting
497 |PLC station No.|0|Must be the same as the PLC setting
498
Theodore Xu 61.1 499 (% style="text-align:center" %)
500 [[image:三菱 QJ71 以太网协议配置.png]]
Leo Wei 2.1 501
Theodore Xu 50.1 502 **Address List**
503
Theodore Xu 74.1 504 |**Type**|**Device registers**|**Format**|**Range**|**Note**
505 |(% rowspan="18" %)Bit|X|X h|0~~1FFF|
506 |Y|Y h|0~~1FFF|
507 |M|M d|0~~99999|
508 |L|L d|0~~8191|
509 |F|F d|0~~2047|
510 |B|B h|0~~1FFF|
511 |V|V d|0~~2047|
512 |TS|TS d|0~~2047|
513 |TC|TC d|0~~2047|
514 |SS|SS d|0~~2047|
515 |SC|SC d|0~~2047|
516 |CS|CS d|0~~1023|
517 |CC|CC d|0~~1023|
518 |SB|SB h|0~~7FF|
519 |S|S d|0~~8191|
520 |DX|DX h|0~~1FFF|
521 |DY|DY h|0~~1FFF|
522 |SM|SM d|8000~~9999|
523 |(% rowspan="10" %)Word|SD|SD d|0~~2047|
524 |D|D d|0~~12287|
525 |W|W h|0~~1FFF|
526 |TN|TN d|0~~2047|
527 |SN|SN d|0~~2047|
528 |CN|CN d|0~~1023|
529 |R|R d|0~~32767|
530 |SW|SW h|0~~7FF|
531 |Z|Z d|0~~15|
532 |ZR|ZR h|0~~FE7FF|
Leo Wei 2.1 533
Theodore Xu 50.1 534 **PLC Settings(GX Works2)**
Leo Wei 2.1 535
536 * Click [Ethernet/CC IE/MELSECNET];
537 * Please select [Ethernet] as network type;
538 * Set station I/O number according to situation (For example, 0020 means that the module is connected to PLC CPU in first order);
539 * Select [Online] as Mode;
Theodore Xu 50.1 540 * [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d54f23688c520f78.png||alt="image-20221119171343-2.png" height="341" width="587"]]
Leo Wei 2.1 541 * Click [Operation setting] to set IP;
542 * Select [Binary Code] as [Communication Data Code];
Theodore Xu 50.1 543 * [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ce8e6a671b9508e0.png||alt="image-20221119171436-3.png" height="354" width="588"]]
Leo Wei 2.1 544 * Click [Open setting]
545 * Set protocol: TCP;
546 * Set [unpassive] in [Open system];
547 * Set [receive] in [Fixed buffer];
548 * Set [procedure Exist] in [Fixed buffer communication];
549 * Disable [Pairing open];
550 * Set [No confirm] in [Existence confirmation];
551 * Host station port number: 5009;
552 * Save settings;
553 * {{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"]]
554 * Download project into PLC and restart it
555
Theodore Xu 50.1 556 **Cable Wiring**
Leo Wei 2.1 557
Theodore Xu 34.1 558 [[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"]]
Joe 83.2 559
560 == Q03UDV ==
Joe 83.3 561
562 Mitsubishi Q03UDV
563
564 **V-BOX Settings**
565
Joe 83.4 566 |**Items**|**Settings**|**Note**
Joe 83.7 567 |Protocol|MIT L02 CPU MELSEC PROTOCOL|
Joe 83.4 568 |Connection|Ethernet|
Joe 83.5 569 |Port No.|1025|Must be the same as the PLC setting
Joe 83.6 570 |PLC station No.|0|Must be the same as the PLC setting
Joe 83.7 571
Joe 83.8 572 [[image:1709779590561-640.png]]
573
574 **Address List**
575
576 |**Type**|**Device registers**|**Format**|**Range**|**Note**
577 |(% colspan="1" rowspan="18" %)Bit|X|X h|0~~1fff|
578 |Y|Y h|0~~1fff|
579 |SM|SM d|0~~2047|
580 |M|M d|0~~99999|
581 |L|L d|0~~8191|
582 |F|F d|0~~2047|
583 |V|V d|0~~2047|
584 |B|B h|0~~1fff|
585 |TS|TS d|0~~2047|
586 |TC|TC d|0~~2047|
587 |SS|SS d|0~~2047|
588 |SC|SC d|0~~2047|
589 |CS|CS d|0~~1023|
590 |CC|CC d|0~~1023|
591 |SB|SB h|0~~7ff|
592 |S|S d|0~~8191|
593 |DX|DX h|0~~1fff|
594 |DY|DY h|0~~1fff|
Joe 83.9 595 |(% colspan="1" rowspan="10" %)Word|SD|SD d|0~~2047|
Joe 83.8 596 |D|D d|0~~12287|
597 |W|W h|0~~1fff|
598 |TN|TN d|0~~2047|
599 |SN|SN d|0~~2047|
600 |CN|CN d|0~~1023|
601 |SW|SW h|0~~7ff|
602 |Z|Z d|0~~15|
603 |R|R d|0~~32767|
604 |ZR|ZR h|0~~fe7ff|
Joe 83.10 605
Joe 83.12 606 (% class="wikigeneratedid" id="HPLCSettings" %)
607 **PLC Settings(GX Works2)**
608
609 (% class="wikigeneratedid" %)
610 PC and PLC connection:
611
Joe 83.15 612 * Online→Read from PLC
Joe 83.12 613
614 (% style="text-align:center" %)
615 [[image:1.png]]
616
Joe 83.15 617 * choose PLC Series→OK
Joe 83.14 618
Joe 83.12 619 (% style="text-align:center" %)
620 [[image:StqCG53paq.png]]
621
Joe 83.15 622 * serial USB→OK
Joe 83.14 623
Joe 83.12 624 (% style="text-align:center" %)
625 [[image:Y7H80eq2Eb.png]]
626
Joe 83.15 627 * Choose Parameter、Global Device Comment and Device Memory→Execute
Joe 83.14 628
Joe 83.12 629 (% style="text-align:center" %)
630 [[image:6PAsdFz58I.png]]
631
Joe 83.15 632 * OK→wait loading successfully→Close
Joe 83.14 633
Joe 83.13 634 (% style="text-align:center" %)
635 [[image:0GBGUNn4hQ.png]]
636
Joe 83.15 637 * Navigation→Parameter→PLC Parameter→IP Address Setting→Built-in Ethernet Port Setting→Host Station(Same as the port on  V-box)→End
Joe 83.14 638
Joe 83.13 639 (% style="text-align:center" %)
640 [[image:Ypyl4SUHcf.png]]
641
Joe 83.15 642 * Debug→Start/ Stop Simulation→wait loading successfully→Close
Joe 83.14 643
Joe 83.13 644 (% style="text-align:center" %)
645 [[image:ZmUzFbS39y.png]]
646
647 (% style="text-align:center" %)
648 [[image:ehoO3C6bry.png]]
649
Joe 83.15 650 (% id="cke_bm_1296534S" style="display:none" %)** **(%%)**Cable Wiring**
651
652 [[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"]]