Wiki source code of MEGMEET

Last modified by Wecon on 2025/09/03 21:04

Show last authors
1 = MC Series =
2
3 Supported Series: MEGMEET MC280 Series
4
5 **V-Box Settings**
6
7 |=**Item**|=**Settings**|=**Note**
8 |Protocol|megmeet|
9 |Connection|RS232|
10 |Baud rate|9600|
11 |Data bit|8|
12 |Parity|Even|
13 |Stop bit|1|
14 |PLC station No.|0|
15
16 (% style="text-align:center" %)
17 [[image:麦格米特串口协议配置.png]]
18
19 **Address List**
20
21 |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
22 |(% colspan="1" rowspan="14" %)Bit|Y|YOOO|0~~377|
23 |X|XOOO|0~~377|
24 |M0|M0DDDD|0~~2047|
25 |M1|M1DDDD|2048~~10239|
26 |SM0|SM0DDD|0~~255|
27 |SM1|SM1DDD|256~~512|
28 |S0|S0DDDD|0~~1023|
29 |S1|S1DDDD|1024~~4095|
30 |T0|T0DDD|0~~255|
31 |T1|T1DDD|256~~511|
32 |C0|C0DDD|0~~255|
33 |C1|C1DDD|256~~306|
34 |D|DDDDD.dd|0~~7999.15|
35 |R|RDDDDD.dd|0~~32767.15|
36 |(% colspan="1" rowspan="8" %)Word|D|DDDDD|0~~7999|
37 |Z|ZDD|0~~15|
38 |TW0|TW0DDD|0~~255|
39 |TW1|TW1DDD|256~~511|
40 |SD0|SD0DDD|0~~255|
41 |SD1|SD1DDD|256~~511|
42 |CW|CWDDD|0~~306|
43 |R|RDDDDD|0~~32767|
44 |(% colspan="1" rowspan="9" %)Double Word|CW0|TDDDD|0~~9999|
45 |CW1|CDDDD|0~~9999|
46
47 **PLC Settings**
48
49 Create a new project and select the corresponding model
50
51 (% style="text-align:center" %)
52 [[image:MEG01createproject.png]]
53
54 Set the Comm Port configuration from the System block tree node, select PORT0 as Program port protocol.
55
56 (% style="text-align:center" %)
57 [[image:MEG02COMMport.png]]
58
59 Program the PLC project
60
61 (% style="text-align:center" %)
62 [[image:MEGprogram.png]]
63
64 Connect PLC by RS232-USB convertor cable, and set the Serial Port settings. If the pop up like the following prompt, which means the connection is setup successfully.
65
66 (% style="text-align:center" %)
67 [[image:MEG03PCserialconnect.png]]
68
69 Find the PLC option on the toolbar, and click [Download...]-[Yes]-[Download] to process the download procedure.
70
71 (% style="text-align:center" %)
72 [[image:MEG04downloadprg.png]]
73
74 **Cable Wiring**
75
76 (% style="text-align:center" %)
77 [[image:MEGMEETRS232.gif]]