Wiki source code of Xinje

Version 14.1 by Hunter on 2023/09/22 13:45

Show last authors
1 = **XC MODBUS** =
2
3 **HMI Settings**
4
5 |**Item**|**Settings**|**Note**
6 |Protocol|XINJE XC MODBUS|
7 |Connection|RS232|
8 |Baud rate|19200|
9 |Data bit|8|
10 |Parity|EVEN|
11 |Stop bit|1|
12 |PLC station No.|1|
13
14 **Address List**
15
16 |=**Type**|=**Device registers**|=**HMI registers**|=**Format**|=**Range**|=**Note**
17 |Bit|M|M|M d|0~~8511|
18 |Bit|X|X|X o|0~~1747|
19 |Bit|Y|Y|Y o|0~~1747|
20 |Bit|S|S|S d|0~~1023|
21 |Bit|T|T|T d|0~~4095|
22 |Bit|C|C|C d|0~~634|
23 |Word|D|D|D d|0~~8511|
24 |Word|TD|TD|TD d|0~~618|
25 |Word|CD|CD|CD d|0~~634|
26 |Word|FD|FD|FD d|0~~8511|
27
28 **Configure the communication protocol**
29
30 {{id name="Iimage-20220830154105-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_5150b44e12bc052d.png||alt="image-20220830154105-1.png" height="735" width="616"]]
31
32 {{id name="Iimage-20220830154159-3.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_8ca0135815f1b6dd.png||alt="image-20220830154159-3.png" height="905" width="1038"]]
33
34 **Cable Wiring**
35
36 Figure
37
38 {{id name="Iimage-20220830155728-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ef557d084f69a7e1.png||alt="image-20220830155728-4.png" height="203" width="846"]]
39
40 Pin Definition Diagram
41
42 {{id name="Iimage-20220830154131-2.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_58247140e9fe4230.png||alt="image-20220830154131-2.png" height="240" width="395"]]
43
44 = **XD/XE MODBUS** =
45
46 Supported Series: Xinjie XD Series
47
48 **HMI Settings**
49
50 |=**Item**|=**Settings**|=**Note**
51 |Protocol|XINJE XD/XC MODBUS|
52 |Connection|RS232|
53 |Baud rate|19200|
54 |Data bit|8|
55 |Parity|EVEN|
56 |Stop bit|1|
57 |PLC station No.|1|Need to be same as PLC setting
58
59 **Address List**
60
61 |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
62 |(% colspan="1" rowspan="18" %)Bit|M|MDDDDD|0~~74999|
63 |X1xx|X1xxOOOO|0~~1177|
64 |X2xx|X2xxOOO|0~~277|
65 |X|XOO|0~~77|
66 |Y1xx|Y1xxOOOO|0~~1177|
67 |Y2xx|Y2xxOOO|0~~277|
68 |Y|YOOOO|0~~77|
69 |SM|SMDDDD|0~~4999|
70 |T|TDDDD|0~~4999|
71 |C|CDDDD|0~~4999|
72 |ET|ETDD|0~~31|
73 |SE|SEDD|0~~31|
74 |HM|HMDDDDD|0~~11999|
75 |HSC|HSCDD|0~~39|
76 |HS|HSDDD|0~~999|
77 |HT|HTDDDD|0~~1999|
78 |HC|HCDDDD|0~~1999|
79 |S|SDDDD|0~~7999|
80 |(% colspan="1" rowspan="19" %)Word|D|DDDDDD|0~~69999|
81 |ID|IDDD|0~~99|
82 |ID1xx|ID1xxDDD|0~~999|
83 |ID2xx|ID2xxDDD|0~~299|
84 |QD|QDDD|0~~99|
85 |QD1xx|QD1xxDDD|0~~999|
86 |QD2xx|QD2xxDDD|0~~299|
87 |SD|SDDDDD|0~~4999|
88 |TD|TDDDD|0~~575|
89 |CD|CDDDD|0~~575|
90 |ETD|ETDDD|0~~31|
91 |HD|HDDDDDD|0~~24999|
92 |HSD|HSDDDDD|0~~1023|
93 |HTD|HTDDD|0~~95|
94 |HCD|HCDDD|0~~95|
95 |HSCD|HSCDDD|0~~31|
96 |FD|FDDDDD|0~~8191|
97 |SFD|SFDDDDD|0~~5999|
98 |FS|FSDD|0~~47|
99
100 **PLC Settings**
101
102 Create the new project, and select the specific model according to the actual PLC
103
104 (% style="text-align:center" %)
105 [[image:XinjieXDcreatenew.png]]
106
107 Program the PLC
108
109 (% style="text-align:center" %)
110 [[image:XinjieXDLDprg.png]]
111
112 Connect PLC with PC through RS232-USB converter cable. Click [Option]-[Software Serial Port Config]-[Communication configuration] to open the PC connection configuration.
113
114 (% style="text-align:center" %)
115 [[image:XinjieXDopenSWcom.png]]
116
117 New a Modbus configuration, and Click [Comm-Test] to test connection, if shows "Connect To PLC Succeeded", which means PLC connection set up successfully. And click OK to save the settings
118
119 (% style="text-align:center" %)
120 [[image:XinjieXDPLCtestconn.png]]
121
122 Remember to click the Status cell of new created Modbus configuration for change the status into "in use", then click OK to exit.
123
124 (% style="text-align:center" %)
125 [[image:XinjieXDclickto.png]]
126
127 After done the previous steps, it would prompt like the below
128
129 (% style="text-align:center" %)
130 [[image:XinjieXDsuccessprompt.png]]
131
132 Change the PLC communication setup if required. Click [Configure]-[PLC Comm Port Settings]-[Add]-[Modbus]. After parameters are modified, click [Write to PLC].
133
134 (% style="text-align:center" %)
135 [[image:XinjieXDSetPLCcom0.png]]
136
137 If wrote to PLC successfully, it would prompt like the below
138
139 (% style="text-align:center" %)
140 [[image:XinjieXDwriteComparadone.png]]
141
142 Click [Online]-[Download Program & Data], and wait for a while, the pop up window would ask for whether to stop PLC, and click [Stop PLC, contitue download]
143
144 (% style="text-align:center" %)
145 [[image:XinjieXDdownload.png]]
146
147 And then the XDPro ask for which options want to rewrite, and click OK to finish.
148
149 (% style="text-align:center" %)
150 [[image:XinjieXDdownloadopt.png]]
151
152 If download successfully, it would prompt like the below
153
154 (% style="text-align:center" %)
155 [[image:XinjieXDcomplete.png]]
156
157 **Cable Wiring**
158
159 (% style="text-align:center" %)
160 [[image:Xinjie.gif]]