Wiki source code of Mitsubishi
Version 72.1 by Theodore Xu on 2023/09/15 11:56
Show last authors
author | version | line-number | content |
---|---|---|---|
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: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 | |||
64 | **RS422** | ||
65 | |||
66 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_1e904556bb758dfe.png||alt="image-20220825103421-5.png" height="296" width="715"]] | ||
67 | |||
68 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_860bcf87f6ca7b98.png||alt="image-20220825100845-4.png" height="246" width="419"]] | ||
69 | |||
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**|=**Format**|=**Range**|=**Note** | ||
91 | |(% rowspan="8" %)Bit|X|X o|0~~303237| | ||
92 | |Y|Y o|0~~303237| | ||
93 | |M|M d|0~~99999| | ||
94 | |T|T d|0~~99999| | ||
95 | |C|C d|0~~99999| | ||
96 | |S|S d|0~~99999| | ||
97 | |SM|SM d|8000~~9999| | ||
98 | |Lamp|Lamp d|0~~0| | ||
99 | |(% rowspan="8" %)Word|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~~199| | ||
104 | |D|D d|0~~7999| | ||
105 | |S|S d|0~~99999| | ||
106 | |SD|SD d|8000~~9999| | ||
107 | |||
108 | **Cable Wiring** | ||
109 | |||
110 | [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_1717efe8d969a43c.png]] | ||
111 | |||
112 | == **FX3U Ethernet ** == | ||
113 | |||
114 | Supported Modules: FX3U-ENET-ADP, FX3U-ENET-L | ||
115 | |||
116 | **V-BOX Settings** | ||
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 | |||
124 | (% style="text-align:center" %) | ||
125 | [[image:三菱 FX3U 以太网协议配置.png]] | ||
126 | |||
127 | **Address List** | ||
128 | |||
129 | |**Type**|**Device registers**|**Format**|**Range**|**Note** | ||
130 | |(% rowspan="7" %)Bit|X|X OOO|0~~377| | ||
131 | |Y|Y OOO|0~~377| | ||
132 | |M|M DDDD|0~~7679| | ||
133 | |SM|SM DDDD|8000~~8511| | ||
134 | |S|S DDDD|0~~4095| | ||
135 | |TS|TS DDD|0~~511| | ||
136 | |CS|CS DDD|0~~255| | ||
137 | |(% rowspan="5" %)Word|CN|CN DDD|0~~199| | ||
138 | |TN|TN DDD|0~~511| | ||
139 | |D|D DDDD|0~~7999| | ||
140 | |SD|SD DDDD|8000~~8511| | ||
141 | |R|R DDDDD|0~~32767| | ||
142 | |||
143 | **Ethernet Module Settings** | ||
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 | |||
149 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_949d5d77c1d9cf1e.png||alt="image-20221116105850-1.png" height="573" width="706"]] | ||
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 | |||
155 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_dfbfdd586c855c47.png||alt="image-20221116105947-1.png" height="573" width="706"]] | ||
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 | |||
163 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_7c01ac15090fcc5b.png||alt="image-20221116110802-1.png" height="549" width="706"]] | ||
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 | |||
171 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d6fd9ce3b96f99e2.png||alt="image-20221116110832-2.png" height="423" width="708"]] | ||
172 | |||
173 | Read and write data from the Ethernet module | ||
174 | |||
175 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_690b3e57b29cfd4b.png||alt="image-20221116110907-3.png" height="549" width="706"]] | ||
176 | |||
177 | Set "Transter setup" to COM communication, and read or write operation as shown below | ||
178 | |||
179 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_b317253742f7151.png||alt="image-20221116110917-4.png" height="549" width="706"]] | ||
180 | |||
181 | **PLC Settings (GX Works 2)** | ||
182 | |||
183 | Create a blank FX5U project | ||
184 | |||
185 | Find Current Connection in the navigation | ||
186 | |||
187 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d2a46ba9c005cf38.png||alt="image-20221116111427-1.png" height="421" width="705"]] | ||
188 | |||
189 | Select Connection Channel List | ||
190 | |||
191 | Select Ethernet board communication | ||
192 | |||
193 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_8f49721a3e5b0ef9.png||alt="image-20221116111451-2.png" height="421" width="705"]] | ||
194 | |||
195 | Select Ethernet Module | ||
196 | Set the IP address of the PLC | ||
197 | |||
198 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_1e9a9e29a46a1041.png||alt="image-20221116111509-3.png" height="666" width="699"]] | ||
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 | |||
204 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_7f29923ebcb670d1.png||alt="image-20221116111727-5.png" height="416" width="697"]] | ||
205 | |||
206 | == **FX5U Serial ** == | ||
207 | |||
208 | Mitsubishi FX5U series PLC | ||
209 | |||
210 | **V-BOX Settings** | ||
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 | |||
221 | (% style="text-align:center" %) | ||
222 | [[image:三菱 FX5U 串口协议配置.png]] | ||
223 | |||
224 | **Address List** | ||
225 | |||
226 | |**Type**|**Device registers**|**Format**|**Range**|**Note** | ||
227 | |(% rowspan="15" %)Bit|X|X o|0~~303237| | ||
228 | |Y|Y o|0~~303237| | ||
229 | |M|M d|0~~99999| | ||
230 | |B|B h|0~~7FFF| | ||
231 | |F|F d|0~~32767| | ||
232 | |SB|SB h|0~~7FFF| | ||
233 | |TS|TS d|0~~1023| | ||
234 | |TC|TC d|0~~1023| | ||
235 | |STS|STS d|0~~1023| | ||
236 | |STC|STS d|0~~1023| | ||
237 | |CS|CS d|0~~1023| | ||
238 | |CC|CC d|0~~1023| | ||
239 | |SM|SM d|0~~9999| | ||
240 | |L|L d|0~~32767| | ||
241 | |S|S d|0~~4095| | ||
242 | |(% rowspan="9" %)Word|W|W h|0~~3FF| | ||
243 | |TN|TN d|0~~1023| | ||
244 | |STN|STN d|0~~1023| | ||
245 | |CN|CN d|0~~1023| | ||
246 | |R|R d|0~~32767| | ||
247 | |SW|SW h|0~~7FFF| | ||
248 | |Z|Z d|0~~23| | ||
249 | |D|D d|0~~7999| | ||
250 | |SD|SD d|0~~11999| | ||
251 | |||
252 | **PLC Settings (GX Works 3)** | ||
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 | |||
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"]] | ||
259 | |||
260 | Select protocol in the setting item, and set parameters. | ||
261 | |||
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"]] | ||
263 | |||
264 | Set station number, and [Message Pattern] (Pattern 1 or Pattern 4) | ||
265 | |||
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"]] | ||
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 | |||
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"]] | ||
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 | |||
278 | **Cable Wiring** | ||
279 | |||
280 | **RS422** | ||
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 | |||
286 | == **FX5U Ethernet ** == | ||
287 | |||
288 | Mitsubishi FX5U series PLC | ||
289 | |||
290 | **V-BOX Settings** | ||
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 | |||
298 | (% style="text-align:center" %) | ||
299 | [[image:三菱 FX5U 以太网协议配置.png]] | ||
300 | |||
301 | **Address List** | ||
302 | |||
303 | |**Type**|**Device registers**|**Format**|**Range**|**Note** | ||
304 | |(% rowspan="15" %)Bit|X|X o|0~~303237| | ||
305 | |Y|Y o|0~~303237| | ||
306 | |M|M d|0~~99999| | ||
307 | |B|B h|0~~7FFF| | ||
308 | |F|F d|0~~32767| | ||
309 | |SB|SB h|0~~7FFF| | ||
310 | |TS|TS d|0~~1023| | ||
311 | |TC|TC d|0~~1023| | ||
312 | |STS|STS d|0~~1023| | ||
313 | |STC|STS d|0~~1023| | ||
314 | |CS|CS d|0~~1023| | ||
315 | |CC|CC d|0~~1023| | ||
316 | |SM|SM d|0~~9999| | ||
317 | |L|L d|0~~32767| | ||
318 | |S|S d|0~~4095| | ||
319 | |(% rowspan="9" %)Word|W|W h|0~~3FF| | ||
320 | |TN|TN d|0~~1023| | ||
321 | |STN|STN d|0~~1023| | ||
322 | |CN|CN d|0~~1023| | ||
323 | |R|R d|0~~32767| | ||
324 | |SW|SW h|0~~7FFF| | ||
325 | |Z|Z d|0~~23| | ||
326 | |D|D d|0~~7999| | ||
327 | |SD|SD d|0~~11999| | ||
328 | |||
329 | **PLC Settings (GX Works 3)** | ||
330 | |||
331 | Find the [Ethernet port] in the navigation area. | ||
332 | |||
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"]] | ||
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 | |||
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"]] | ||
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 | |||
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"]] | ||
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 | |||
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"]] | ||
356 | |||
357 | |||
358 | **Cable Wiring** | ||
359 | |||
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"]] | ||
361 | |||
362 | == **L02 Serial ** == | ||
363 | |||
364 | Mitsubishi L02 series CPU built-in serial port. | ||
365 | |||
366 | **V-BOX Settings** | ||
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 | |||
377 | (% style="text-align:center" %) | ||
378 | [[image:三菱 L02串口协议配置.png]] | ||
379 | |||
380 | **Address List** | ||
381 | |||
382 | |**Type**|**Device registers**|**Format**|**Range**|**Note** | ||
383 | |(% colspan="1" rowspan="20" %)Bit | ||
384 | |X|X h|0~~FFFF| | ||
385 | |Y|Y h|0~~FFFF| | ||
386 | |M|M d|0~~9999| | ||
387 | |L|L d|0~~9999| | ||
388 | |F|F d|0~~9999| | ||
389 | |B|B h|0~~FFFF| | ||
390 | |V|V d|0~~2047| | ||
391 | |TC|TC d|0~~9999| | ||
392 | |SS|SS d|0~~9999| | ||
393 | |SC|SC d|0~~9999| | ||
394 | |CS|CS d|0~~9999| | ||
395 | |CC|CC d|0~~9999| | ||
396 | |SB|SB h|0~~FFFF| | ||
397 | |SM|SM d|0~~2047| | ||
398 | |STS|STS d|0~~1023| | ||
399 | |S|S d|0~~9999| | ||
400 | |DX|DX h|0~~FFFF| | ||
401 | |DY|DY h|0~~FFFF| | ||
402 | |TS|TS d|0~~9999| | ||
403 | |Dbit|Dbit d.d|0~~99999.0~~15| | ||
404 | |(% colspan="1" rowspan="9" %)Word | ||
405 | |W|W h|0~~FFFF| | ||
406 | |TN|TN d|0~~99999| | ||
407 | |SN|SN d|0~~99999| | ||
408 | |CN|CN d|0~~99999| | ||
409 | |R|R d|0~~99999| | ||
410 | |SW|SW h|0~~FFFF| | ||
411 | |Z|Z d|0~~99999| | ||
412 | |ZR|ZR h|0~~FFFF| | ||
413 | |D|D d|0~~99999| | ||
414 | |||
415 | **Cable Wiring** | ||
416 | |||
417 | **RS422** | ||
418 | |||
419 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_90e38f152d639809.png||alt="image-20220825161612-8.png" height="278" width="612"]] | ||
420 | |||
421 | [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d301e675d8224725.png||alt="image-20220825160820-4.png" height="208" width="359"]] | ||
422 | |||
423 | == **L02 Ethernet ** == | ||
424 | |||
425 | Mitsubishi L series CPU built-in Ethernet port. | ||
426 | |||
427 | **V-BOX Settings** | ||
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 | |||
435 | (% style="text-align:center" %) | ||
436 | [[image:三菱 L02以太网协议配置1.png]] | ||
437 | |||
438 | **PLC Settings (GX Works2 )** | ||
439 | |||
440 | Create a project | ||
441 | |||
442 | Set PLC IP, subnet mask and gateway; | ||
443 | |||
444 | Select [Binary Code] as communication data code; | ||
445 | |||
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"]] | ||
447 | |||
448 | Set PLC port number, for example 1025 | ||
449 | |||
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"]] | ||
451 | |||
452 | Save settings; | ||
453 | |||
454 | Download project into PLC device; | ||
455 | |||
456 | Restart PLC device; | ||
457 | |||
458 | **Cable Wiring** | ||
459 | |||
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"]] | ||
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 | |||
468 | == **QJ71E71 Ethernet ** == | ||
469 | |||
470 | Mitsubishi QJ71E71 Ethernet communication module; | ||
471 | |||
472 | **V-BOX Settings** | ||
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 | |||
480 | (% style="text-align:center" %) | ||
481 | [[image:三菱 QJ71 以太网协议配置.png]] | ||
482 | |||
483 | **Address List** | ||
484 | |||
485 | |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note** | ||
486 | |(% rowspan="18" %)Bit|X|X|X h|0~~1FFF| | ||
487 | |Y|Y|Y h|0~~1FFF| | ||
488 | |M|M|M d|0~~99999| | ||
489 | |L|L|L d|0~~8191| | ||
490 | |F|F|F d|0~~2047| | ||
491 | |B|B|B h|0~~1FFF| | ||
492 | |V|V|V d|0~~2047| | ||
493 | |TS|TS|TS d|0~~2047| | ||
494 | |TC|TC|TC d|0~~2047| | ||
495 | |SS|SS|SS d|0~~2047| | ||
496 | |SC|SC|SC d|0~~2047| | ||
497 | |CS|CS|CS d|0~~1023| | ||
498 | |CC|CC|CC d|0~~1023| | ||
499 | |SB|SB|SB h|0~~7FF| | ||
500 | |S|S|S d|0~~8191| | ||
501 | |DX|DX|DX h|0~~1FFF| | ||
502 | |DY|DY|DY h|0~~1FFF| | ||
503 | |SM|SM|SM d|8000~~9999| | ||
504 | |(% rowspan="10" %)Word|SD|SD|SD d|0~~2047| | ||
505 | |D|D|D d|0~~12287| | ||
506 | |W|W|W h|0~~1FFF| | ||
507 | |TN|TN|TN d|0~~2047| | ||
508 | |SN|SN|SN d|0~~2047| | ||
509 | |CN|CN|CN d|0~~1023| | ||
510 | |R|R|R d|0~~32767| | ||
511 | |SW|SW|SW h|0~~7FF| | ||
512 | |Z|Z|Z d|0~~15| | ||
513 | |ZR|ZR|ZR h|0~~FE7FF| | ||
514 | |||
515 | **PLC Settings(GX Works2)** | ||
516 | |||
517 | * Click [Ethernet/CC IE/MELSECNET]; | ||
518 | * Please select [Ethernet] as network type; | ||
519 | * Set station I/O number according to situation (For example, 0020 means that the module is connected to PLC CPU in first order); | ||
520 | * Select [Online] as Mode; | ||
521 | * [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_d54f23688c520f78.png||alt="image-20221119171343-2.png" height="341" width="587"]] | ||
522 | * Click [Operation setting] to set IP; | ||
523 | * Select [Binary Code] as [Communication Data Code]; | ||
524 | * [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_ce8e6a671b9508e0.png||alt="image-20221119171436-3.png" height="354" width="588"]] | ||
525 | * Click [Open setting] | ||
526 | * Set protocol: TCP; | ||
527 | * Set [unpassive] in [Open system]; | ||
528 | * Set [receive] in [Fixed buffer]; | ||
529 | * Set [procedure Exist] in [Fixed buffer communication]; | ||
530 | * Disable [Pairing open]; | ||
531 | * Set [No confirm] in [Existence confirmation]; | ||
532 | * Host station port number: 5009; | ||
533 | * Save settings; | ||
534 | * {{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"]] | ||
535 | * Download project into PLC and restart it | ||
536 | |||
537 | **Cable Wiring** | ||
538 | |||
539 | [[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"]] |