Wiki source code of Mitsubishi

Version 42.1 by Theodore Xu on 2023/09/15 09:55

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