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