Wiki source code of Mitsubishi

Version 59.1 by Theodore Xu on 2023/09/15 11:25

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
21 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
22 |(% rowspan="7" %)Bit|X|X|Xo|0~~303237|
23 |Y|Y|Y o|0~~303237|
24 |M|M|M d|0~~99999|
25 |T|T|T d|0~~99999|
26 |C|C|C d|0~~99999|
27 |S|S|S d|0~~99999|
28 |SM|SM|SM d|8000~~9999|
29 |(% rowspan="8" %)Word|X|X|Xo|0~~303237|
30 |Y|Y|Y o|0~~303237|
31 |M|M|M d|0~~99999|
32 |T|T|T d|0~~99999|
33 |C|C|C d|0~~199|
34 |D|D|D d|0~~7999|
35 |S|S|S d|0~~99999|
36 |SD|SD|SD d|8000~~9999|
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" %)
44 [[image:1.2.png]]
45
46 PLC Default Parameters:
47 [Connection type]RS422;[Baud rate]9600, [Data bit]7, [Stop bit]1,[Parity]EVEN; [Station number]0
48 Note:The serial port parameters should be set depending on field requirements
49
50 PC and PLC connection:
51
52 [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]
53
54 (% style="text-align:center" %)
55 [[image:1.5.1.png]]
56
57 Connection test:when connection is OK,the GX Works2 prompts “Successfully connected with the FX3G/FX3GCCPU.”
58
59 (% style="text-align:center" %)
60 [[image:1.5.2.png]]
61
62 **Cable Wiring**
63
Theodore Xu 38.1 64 **RS422**
Leo Wei 2.1 65
Theodore Xu 38.1 66 [[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 67
Theodore Xu 38.1 68 [[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 69
Theodore Xu 43.1 70 == **FX NOPROTOCOL** ==
71
72 Mitsubishi FX3G-RS232-BD
73
74 **V-Box Settings**
75
76 |=**Item**|=**Settings**|=**Note**
77 |Protocol|Mitsubishi FX NOPROTOCOL|
78 |Connection|RS232|
79 |Baud rate|9600|
80 |Data bit|7|
81 |Parity|EVEN|
82 |Stop bit|1|
83 |PLC station No.|0|
84
85 (% style="text-align:center" %)
86 [[image:三菱 FN盒子通讯配置.png]]
87
88 **Address List**
89
90 |=**Type**|=**Device registers**|=**HMI registers**|=**Format**|=**Range**|=**Note**
91 |(% rowspan="8" %)Bit|X|X|X o|0~~303237|
92 |Y|Y|Y o|0~~303237|
93 |M|M|M d|0~~99999|
94 |T|T|T d|0~~99999|
95 |C|C|C d|0~~99999|
96 |S|S|S d|0~~99999|
97 |SM|SM|SM d|8000~~9999|
98 |Lamp|Lamp|Lamp d|0~~0|
99 |(% rowspan="8" %)Word|X|X|X o|0~~303237|
100 |Y|Y|Y o|0~~303237|
101 |M|M|M d|0~~99999|
102 |T|T|T d|0~~99999|
103 |C|C|C d|0~~199|
104 |D|D|D d|0~~7999|
105 |S|S|S d|0~~99999|
106 |SD|SD|SD d|8000~~9999|
107
Theodore Xu 45.1 108 **Cable Wiring**
Theodore Xu 43.1 109
Theodore Xu 44.1 110 [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_1717efe8d969a43c.png]]
111
Theodore Xu 41.1 112 == **FX3U Ethernet ** ==
Leo Wei 2.1 113
114 Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L
115
Theodore Xu 41.1 116 **V-BOX Settings**
Leo Wei 2.1 117
118 |Items|Settings|Note
119 |Protocol|Mitsubishi FX3U|
120 |Connection|Ethernet|
121 |Port No.|5009|Must be the same as the PLC setting
122 |PLC station No.|0|
123
Theodore Xu 57.1 124 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_b2cdc33b6eb92b67.png||alt="image-20221119101946-2.png" height="395" width="695"]]
125
Theodore Xu 41.1 126 **Address List**
Leo Wei 2.1 127
128 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
129 |(% rowspan="7" %)Bit|X|X|X OOO|0~~377|
130 |Y|Y|Y OOO|0~~377|
131 |M|M|M DDDD|0~~7679|
132 |SM|SM|SM DDDD|8000~~8511|
133 |S|S|S DDDD|0~~4095|
134 |TS|TS|TS DDD|0~~511|
135 |CS|CS|CS DDD|0~~255|
136 |(% rowspan="5" %)Word|CN|CN|CN DDD|0~~199|
137 |TN|TN|TN DDD|0~~511|
138 |D|D|D DDDD|0~~7999|
139 |SD|SD|SD DDDD|8000~~8511|
140 |R|R|R DDDDD|0~~32767|
141
Theodore Xu 41.1 142 **Ethernet Module Settings**
Leo Wei 2.1 143
144 FX3U-ENET-L module configuration
145 Set up the FX3U-ENET-L Ethernet module settings as follows.
146 Select the module location, which in this document is Module 0.
147
Theodore Xu 41.1 148 [[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 149
150 Select "Operational setting" to enter the following screen.
151
152 The Ethernet module IP is set to 192.168.39.254 in this document, and other options are default.
153
Theodore Xu 41.1 154 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_dfbfdd586c855c47.png||alt="image-20221116105947-1.png" height="573" width="706"]]
Leo Wei 2.1 155
156 Select "Open setting" to enter the setting interface, the settings are as follows.
157
158 The third item "Protocol" selects TCP, and "Open system" selects MELSOFT connection, which allows the
159
160 Mitsubishi programming software GX works2 to communicate with the FX3U via the Ethernet module.
161
Theodore Xu 41.1 162 [[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 163
164 Click on "transter setup" - "PC side I/F setting", see the following figure.
165
166 After setting, the first download must use the programming cable, as shown in the figure; after that, can
167
168 use the IP set in the "Ethernet board" to communicate directly with the network cable.
169
Theodore Xu 41.1 170 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d6fd9ce3b96f99e2.png||alt="image-20221116110832-2.png" height="423" width="708"]]
Leo Wei 2.1 171
172 Read and write data from the Ethernet module
173
Theodore Xu 41.1 174 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_690b3e57b29cfd4b.png||alt="image-20221116110907-3.png" height="549" width="706"]]
Leo Wei 2.1 175
176 Set "Transter setup" to COM communication, and read or write operation as shown below
177
Theodore Xu 41.1 178 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_b317253742f7151.png||alt="image-20221116110917-4.png" height="549" width="706"]]
Leo Wei 2.1 179
Theodore Xu 41.1 180 **PLC Settings (GX Works 2)**
Leo Wei 2.1 181
182 Create a blank FX5U project
183
184 Find Current Connection in the navigation
185
Theodore Xu 41.1 186 [[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 187
188 Select Connection Channel List
189
190 Select Ethernet board communication
191
Theodore Xu 41.1 192 [[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 193
194 Select Ethernet Module
195 Set the IP address of the PLC
196
Theodore Xu 41.1 197 [[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 198
199 Read or write PLC data, in this document is read
200
201 {{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"]]
202
Theodore Xu 41.1 203 [[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 204
Theodore Xu 46.1 205 == **FX5U Serial ** ==
Leo Wei 2.1 206
207 Mitsubishi FX5U series PLC
208
Theodore Xu 46.1 209 **V-BOX Settings**
Leo Wei 2.1 210
211 |**Item**|**Settings**|**Note**
212 |Protocol|Mitsubishi FX5U|
213 |Connection|RS422/RS485|
214 |Baud rate|9600|
215 |Data bit|7|
216 |Parity|Odd|
217 |Stop bit|1|
218 |PLC station No.|1~~255|Need to be the same as PLC settings
219
Theodore Xu 54.1 220 (% style="text-align:center" %)
221 [[image:三菱 FX5U 串口协议配置.png]]
222
Theodore Xu 46.1 223 **Address List**
Leo Wei 2.1 224
225 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
226 |(% rowspan="15" %)Bit|X|X|X o|0~~303237|
227 |Y|Y|Y o|0~~303237|
228 |M|M|M d|0~~99999|
229 |B|B|B h|0~~7FFF|
230 |F|F|F d|0~~32767|
231 |SB|SB|SB h|0~~7FFF|
232 |TS|TS|TS d|0~~1023|
233 |TC|TC|TC d|0~~1023|
234 |STS|STS|STS d|0~~1023|
235 |STC|STC|STS d|0~~1023|
236 |CS|CS|CS d|0~~1023|
237 |CC|CC|CC d|0~~1023|
238 |SM|SM|SM d|0~~9999|
239 |L|L|L d|0~~32767|
240 |S|S|S d|0~~4095|
241 |(% rowspan="9" %)Word|W|W|W h|0~~3FF|
242 |TN|TN|TN d|0~~1023|
243 |STN|STN|STN d|0~~1023|
244 |CN|CN|CN d|0~~1023|
245 |R|R|R d|0~~32767|
246 |SW|SW|SW h|0~~7FFF|
247 |Z|Z|Z d|0~~23|
248 |D|D|D d|0~~7999|
249 |SD|SD|SD d|0~~11999|
250
Theodore Xu 46.1 251 **PLC Settings (GX Works 3)**
Leo Wei 2.1 252
253 Create a blank FX5U project
254
255 Find the 485 serial port module in the system navigation bar and double click to enter the settings.
256
Theodore Xu 46.1 257 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_5c9cb13fac1e6c93.png?width=200&height=462&rev=1.1||alt="12.PLC Protocol_html_5c9cb13fac1e6c93.png" height="462" width="200"]]
Leo Wei 2.1 258
259 Select protocol in the setting item, and set parameters.
260
Theodore Xu 46.1 261 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_de942589ca070228.png?width=600&height=324&rev=1.1||alt="12.PLC Protocol_html_de942589ca070228.png" height="324" width="600"]]
Leo Wei 2.1 262
263 Set station number, and [Message Pattern] (Pattern 1 or Pattern 4)
264
Theodore Xu 46.1 265 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_387ec7d00b5feb59.png?width=600&height=323&rev=1.1||alt="12.PLC Protocol_html_387ec7d00b5feb59.png" height="323" width="600"]]
Leo Wei 2.1 266
267 Click the [Apply] button to finish the setting.
268
269 Click download and select the items as below, then click [execute] to download the configuration to PLC.
270
Theodore Xu 46.1 271 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_cdef1c5ec8cc2105.png?width=600&height=434&rev=1.1||alt="12.PLC Protocol_html_cdef1c5ec8cc2105.png" height="434" width="600"]]
Leo Wei 2.1 272
273 As soon as download is completed, connect PLC with serial port, then configure it in the [Specify Connection Destination Connection].
274
275 Done.
276
Theodore Xu 46.1 277 **Cable Wiring**
Leo Wei 2.1 278
Theodore Xu 46.1 279 **RS422**
Leo Wei 2.1 280
281 {{id name="Iimage-20220825105105-2.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d022c5ff4cf8c68e.png||alt="image-20220825105105-2.png" height="288" width="711"]]
282
283 {{id name="Iimage-20220825105533-3.png"/}}[[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_50e173394c73f154.png||alt="image-20220825105533-3.png" height="246" width="420"]]
284
Theodore Xu 33.1 285 == **FX5U Ethernet ** ==
Leo Wei 2.1 286
287 Mitsubishi FX5U series PLC
288
Theodore Xu 59.1 289 **V-BOX Settings**
Leo Wei 2.1 290
291 |**Items**|**Settings**|**Note**
292 |Protocol|Mitsubishi FX5U|
293 |Connection|Ethernet|
294 |Port No.|5002|Must be the same as the PLC setting
295 |PLC station No.|0|
296
Theodore Xu 59.1 297 (% style="text-align:center" %)
298 [[image:三菱 FX5U 以太网协议配置.png]]
Leo Wei 2.1 299
Theodore Xu 59.1 300 **Address List**
301
Leo Wei 2.1 302 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
303 |(% rowspan="15" %)Bit|X|X|X o|0~~303237|
304 |Y|Y|Y o|0~~303237|
305 |M|M|M d|0~~99999|
306 |B|B|B h|0~~7FFF|
307 |F|F|F d|0~~32767|
308 |SB|SB|SB h|0~~7FFF|
309 |TS|TS|TS d|0~~1023|
310 |TC|TC|TC d|0~~1023|
311 |STS|STS|STS d|0~~1023|
312 |STC|STC|STS d|0~~1023|
313 |CS|CS|CS d|0~~1023|
314 |CC|CC|CC d|0~~1023|
315 |SM|SM|SM d|0~~9999|
316 |L|L|L d|0~~32767|
317 |S|S|S d|0~~4095|
318 |(% rowspan="9" %)Word|W|W|W h|0~~3FF|
319 |TN|TN|TN d|0~~1023|
320 |STN|STN|STN d|0~~1023|
321 |CN|CN|CN d|0~~1023|
322 |R|R|R d|0~~32767|
323 |SW|SW|SW h|0~~7FFF|
324 |Z|Z|Z d|0~~23|
325 |D|D|D d|0~~7999|
326 |SD|SD|SD d|0~~11999|
327
Theodore Xu 59.1 328 **PLC Settings (GX Works 3)**
Leo Wei 2.1 329
330 Find the [Ethernet port] in the navigation area.
331
Theodore Xu 59.1 332 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_8e8f85ace087346c.png?width=300&height=593&rev=1.1||alt="12.PLC Protocol_html_8e8f85ace087346c.png" height="593" width="300"]]
Leo Wei 2.1 333
334 Select [Own Node Settings] in the [Setting Item List];
335
336 Set [IP Address], [Subnet Mask], [Default Gateway];
337
338 Click [Detailed Settings] into [Ethernet Configuration (Built-in Ethernet Port)] windows;
339
Theodore Xu 59.1 340 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_5d98495052c8c10e.png?width=600&height=339&rev=1.1||alt="12.PLC Protocol_html_5d98495052c8c10e.png" height="339" width="600"]]
Leo Wei 2.1 341
342 Select [SLMP Connection Module] and add into host station as below picture shows;
343
344 Set Port number as 5002 (this is necessary settings);
345
346 Click [Close with Reflecting the Setting] to save and close window;
347
Theodore Xu 59.1 348 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_14b489fdc6c6589d.png?width=600&height=350&rev=1.1||alt="12.PLC Protocol_html_14b489fdc6c6589d.png" height="350" width="600"]]
Leo Wei 2.1 349
350 Click [Apply] to completed Etherenet settings;
351
352 Switch to the [On line data operation] interface as below, check the item and click [Execute] to download.
353
Theodore Xu 59.1 354 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/12.PLC%20Protocol_html_c93025a968a8a9e7.png?width=600&height=434&rev=1.1||alt="12.PLC Protocol_html_c93025a968a8a9e7.png" height="434" width="600"]]
Leo Wei 2.1 355
356
Theodore Xu 59.1 357 **Cable Wiring**
Leo Wei 2.1 358
Theodore Xu 33.1 359 [[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 360
Theodore Xu 47.1 361 == **L02 Serial ** ==
Leo Wei 2.1 362
363 Mitsubishi L02 series CPU built-in serial port.
364
Theodore Xu 47.1 365 **V-BOX Settings**
Leo Wei 2.1 366
367 |**Item**|**Settings**|**Note**
368 |Protocol|Mitsubishi L02|
369 |Connection|RS422|
370 |Baud rate|115200|
371 |Data bit|8|
372 |Parity|Odd|
373 |Stop bit|1|
374 |PLC station No.|1~~255|Need to be the same as PLC settings
375
Theodore Xu 53.1 376 (% style="text-align:center" %)
377 [[image:三菱 L02串口协议配置.png]]
378
Theodore Xu 47.1 379 **Address List**
Leo Wei 2.1 380
381 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
Theodore Xu 47.1 382 |(% colspan="1" rowspan="20" %)Bit
383 |X|X|X h|0~~FFFF|
384 |Y|Y|Y h|0~~FFFF|
385 |M|M|M d|0~~9999|
386 |L|L|L d|0~~9999|
387 |F|F|F d|0~~9999|
388 |B|B|B h|0~~FFFF|
389 |V|V|V d|0~~2047|
390 |TC|TC|TC d|0~~9999|
391 |SS|SS|SS d|0~~9999|
392 |SC|SC|SC d|0~~9999|
393 |CS|CS|CS d|0~~9999|
394 |CC|CC|CC d|0~~9999|
395 |SB|SB|SB h|0~~FFFF|
396 |SM|SM|SM d|0~~2047|
397 |STS|STS|STS d|0~~1023|
398 |S|S|S d|0~~9999|
399 |DX|DX|DX h|0~~FFFF|
400 |DY|DY|DY h|0~~FFFF|
401 |TS|TS|TS d|0~~9999|
402 |Dbit|Dbit|Dbit d.d|0~~99999.0~~15|
403 |(% colspan="1" rowspan="9" %)Word
404 |W|W|W h|0~~FFFF|
405 |TN|TN|TN d|0~~99999|
406 |SN|SN|SN d|0~~99999|
407 |CN|CN|CN d|0~~99999|
408 |R|R|R d|0~~99999|
409 |SW|SW|SW h|0~~FFFF|
410 |Z|Z|Z d|0~~99999|
411 |ZR|ZR|ZR h|0~~FFFF|
412 |D|D|D d|0~~99999|
Leo Wei 2.1 413
Theodore Xu 47.1 414 **Cable Wiring**
Leo Wei 2.1 415
Theodore Xu 47.1 416 **RS422**
Leo Wei 2.1 417
Theodore Xu 47.1 418 [[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 419
Theodore Xu 47.1 420 [[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 421
Theodore Xu 48.1 422 == **L02 Ethernet ** ==
Leo Wei 2.1 423
424 Mitsubishi L series CPU built-in Ethernet port.
425
Theodore Xu 48.1 426 **V-BOX Settings**
Leo Wei 2.1 427
428 |**Items**|**Settings**|**Note**
429 |Protocol|MIT L02 CPU MELSEC|
430 |Connection|Ethernet|
431 |Port No.|1025|Must be the same as the PLC setting
432 |PLC station No.|0|Must be the same as the PLC setting
433
Theodore Xu 52.1 434 (% style="text-align:center" %)
435 [[image:三菱 L02以太网协议配置1.png]]
Theodore Xu 51.1 436
Theodore Xu 48.1 437 **PLC Settings (GX Works2 )**
Leo Wei 2.1 438
439 Create a project
440
441 Set PLC IP, subnet mask and gateway;
442
443 Select [Binary Code] as communication data code;
444
Theodore Xu 49.1 445 [[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 446
447 Set PLC port number, for example 1025
448
Theodore Xu 49.1 449 [[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 450
451 Save settings;
452
453 Download project into PLC device;
454
455 Restart PLC device;
456
Theodore Xu 49.1 457 **Cable Wiring**
Leo Wei 2.1 458
Theodore Xu 49.1 459 [[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 460
461 == {{id name="HQ12HSerial"/}}**Q12H Serial ** ==
462
463 This Demo shows V-BOX communicate with Q12H PLC by Q02H serial Protocol
464
465 **[[Download link>>url:https://ftp.we-con.com.cn/Download/WIKI/PI%20HMI/Demo/Communication/V-Box%20connect%20PLC%20Q12H.rar]]**
466
Theodore Xu 32.1 467 == **QJ71E71 Ethernet ** ==
Leo Wei 2.1 468
469 Mitsubishi QJ71E71 Ethernet communication module;
470
Theodore Xu 50.1 471 **V-BOX Settings**
Leo Wei 2.1 472
473 |**Items**|**Settings**|**Note**
474 |Protocol|MIT QJ71E71 MELSEC|
475 |Connection|Ethernet|
476 |Port No.|1025|Must be the same as the PLC setting
477 |PLC station No.|0|Must be the same as the PLC setting
478
Theodore Xu 50.1 479 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_50990385ef491b9e.png||alt="image-20221119171832-5.png" height="354" width="625"]]
Leo Wei 2.1 480
Theodore Xu 50.1 481 **Address List**
482
Leo Wei 2.1 483 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
484 |(% rowspan="18" %)Bit|X|X|X h|0~~1FFF|
485 |Y|Y|Y h|0~~1FFF|
486 |M|M|M d|0~~99999|
487 |L|L|L d|0~~8191|
488 |F|F|F d|0~~2047|
489 |B|B|B h|0~~1FFF|
490 |V|V|V d|0~~2047|
491 |TS|TS|TS d|0~~2047|
492 |TC|TC|TC d|0~~2047|
493 |SS|SS|SS d|0~~2047|
494 |SC|SC|SC d|0~~2047|
495 |CS|CS|CS d|0~~1023|
496 |CC|CC|CC d|0~~1023|
497 |SB|SB|SB h|0~~7FF|
498 |S|S|S d|0~~8191|
499 |DX|DX|DX h|0~~1FFF|
500 |DY|DY|DY h|0~~1FFF|
501 |SM|SM|SM d|8000~~9999|
502 |(% rowspan="10" %)Word|SD|SD|SD d|0~~2047|
503 |D|D|D d|0~~12287|
504 |W|W|W h|0~~1FFF|
505 |TN|TN|TN d|0~~2047|
506 |SN|SN|SN d|0~~2047|
507 |CN|CN|CN d|0~~1023|
508 |R|R|R d|0~~32767|
509 |SW|SW|SW h|0~~7FF|
510 |Z|Z|Z d|0~~15|
511 |ZR|ZR|ZR h|0~~FE7FF|
512
Theodore Xu 50.1 513 **PLC Settings(GX Works2)**
Leo Wei 2.1 514
515 * Click [Ethernet/CC IE/MELSECNET];
516 * Please select [Ethernet] as network type;
517 * Set station I/O number according to situation (For example, 0020 means that the module is connected to PLC CPU in first order);
518 * Select [Online] as Mode;
Theodore Xu 50.1 519 * [[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 520 * Click [Operation setting] to set IP;
521 * Select [Binary Code] as [Communication Data Code];
Theodore Xu 50.1 522 * [[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 523 * Click [Open setting]
524 * Set protocol: TCP;
525 * Set [unpassive] in [Open system];
526 * Set [receive] in [Fixed buffer];
527 * Set [procedure Exist] in [Fixed buffer communication];
528 * Disable [Pairing open];
529 * Set [No confirm] in [Existence confirmation];
530 * Host station port number: 5009;
531 * Save settings;
532 * {{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"]]
533 * Download project into PLC and restart it
534
Theodore Xu 50.1 535 **Cable Wiring**
Leo Wei 2.1 536
Theodore Xu 34.1 537 [[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"]]