Wiki source code of Mitsubishi

Version 60.1 by Theodore Xu on 2023/09/15 11:34

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