Wiki source code of Xinje

Version 9.1 by Theodore Xu on 2023/11/06 10:26

Hide last authors
Theodore Xu 9.1 1 = **XC serial** =
Leo Wei 2.1 2
Theodore Xu 9.1 3 Support Series: Xinjie XC Series
Leo Wei 2.1 4
Theodore Xu 9.1 5 **V-Box Settings**
Leo Wei 2.1 6
7 |**Item**|**Settings**|**Note**
8 |Protocol|XINJE XC MODBUS|
9 |Connection|RS232|
10 |Baud rate|19200|
11 |Data bit|8|
12 |Parity|EVEN|
13 |Stop bit|1|
14 |PLC station No.|1|
15
Theodore Xu 9.1 16 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_848ef1522d877523.png||alt="image-20220831163041-1.png" height="705" width="1676"]]
Leo Wei 2.1 17
Theodore Xu 9.1 18 **Address List**
19
Leo Wei 2.1 20 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
21 |Bit|M|M|M d|0~~8511|
22 |Bit|X|X|X o|0~~1747|
23 |Bit|Y|Y|Y o|0~~1747|
24 |Bit|S|S|S d|0~~1023|
25 |Bit|T|T|T d|0~~4095|
26 |Bit|C|C|C d|0~~634|
27 |Word|D|D|D d|0~~8511|
28 |Word|TD|TD|TD d|0~~618|
29 |Word|CD|CD|CD d|0~~634|
30 |Word|FD|FD|FD d|0~~8511|
31
Theodore Xu 9.1 32 **PLC Settings**
Leo Wei 2.1 33
Theodore Xu 9.1 34 Create the new project, and select the specific model according to the actual PLC
Leo Wei 2.1 35
Theodore Xu 9.1 36 (% style="text-align:center" %)
37 [[image:XinjieXCcreatenew.png]]
Leo Wei 2.1 38
Theodore Xu 9.1 39 Program the PLC
40
41 (% style="text-align:center" %)
42 [[image:XinjieXCPrg.png]]
43
44 Connect PLC with PC through RS232-USB converter cable. Click [Option]-[Software Serial Port Config] to open the software connection setup window, and select the serial port, if the red text prompt "Connect To PLC Succeeded", which means the connection is setup successfully, then click OK to save the settings.
45
46 (% style="text-align:center" %)
47 [[image:XinjieXCPCconn.png]]
48
49 Change the PLC communication setup if required. Double click the tree node [PLC Serial Port] from Project tree. And change Modbus parameters, then click [Write to PLC] and OK to finish.
50
51 (% style="text-align:center" %)
52 [[image:XinjieXCPLCModbusConfig.png]]
53
54 Click [Online]-[Download Program] to download program into PLC. And the download pop up window would pop up, then click OK.
55
56 (% style="text-align:center" %)
57 [[image:XinjieXCDownloadPLC.png]]
58
59 **Cable Wiring**
60
Leo Wei 2.1 61 Figure
62
Theodore Xu 9.1 63 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_a14861f1794a6a42.png||alt="image-20220831163406-2.png" height="266" width="101"]] [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_3e55283fe70031d.png||alt="image-20220831163422-3.png" height="232" width="533"]]
Leo Wei 2.1 64
65 Pin Definition Diagram
66
Theodore Xu 9.1 67 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_4e0c72812b72a12a.png||alt="image-20220831163441-4.png" height="167" width="336"]]
Leo Wei 2.1 68
Theodore Xu 9.1 69 == **XD serial** ==
Leo Wei 2.1 70
Theodore Xu 9.1 71 **V-Box Settings**
Leo Wei 2.1 72
73 Supported Series: Xinjie XD/XE Series PLC
74
75 |**Item**|**Settings**|**Note**
76 |Protocol|XINJE XD/XC MODBUS|
77 |Connection|RS232|
78 |Baud rate|19200|
79 |Data bit|8|
80 |Parity|EVEN|
81 |Stop bit|1|
82 |PLC station No.|1|
83
Theodore Xu 9.1 84 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_2094eb9a27becb2c.png||alt="image-20220831163923-7.png" height="709" width="1677"]]
Leo Wei 2.1 85
Theodore Xu 9.1 86 **Address List**
87
Leo Wei 2.1 88 |**Type**|**Device registers**|**HMI registers**|**Format**|**Range**|**Note**
89 |Bit|M|M|M d|0~~74999|
90 |Bit|X1xx|X1xx|X1xx o|0~~1177|
91 |Bit|X2xx|X2xx|X2xx o|0~~277|
92 |Bit|X|X|X o|0~~77|
93 |Bit|Y1xx|Y1xx|Y1xx o|0~~1177|
94 |Bit|Y2xx|Y2xx|Y2xx o|0~~277|
95 |Bit|Y|Y|Y o|0~~4095|
96 |Bit|SM|SM|SM d|0~~4999|
97 |Bit|T|T|T d|0~~4999|
98 |Bit|C|C|C d|0~~4999|
99 |Bit|ET|ET|ET d|0~~31|
100 |Bit|SE|SE|SE d|0~~31|
101 |Bit|HM|HM|HM d|0~~11999|
102 |Bit|HSC|HSC|HSC d|0~~39|
103 |Bit|HS|HS|HS d|0~~999|
104 |Bit|HT|HT|HT d|0~~1999|
105 |Bit|HC|HC|HC d|0~~1999|
106 |Bit|S|S|S d|0~~7999|
107 |Word|D|D|D d|0~~69999|
108 |Word|ID|ID|ID d|0~~99|
109 |Word|ID1xx|ID1xx|ID1xx d|0~~999|
110 |Word|ID2xx|ID2xx|ID2xx d|0~~299|
111 |Word|QD|QD|QD d|0~~99|
112 |Word|QD1xx|QD1xx|QD1xx d|0~~999|
113 |Word|QD2xx|QD2xx|QD2xx d|0~~299|
114 |Word|SD|SD|SD d|0~~4999|
115 |Word|TD|TD|TD d|0~~575|
116 |Word|CD|CD|CD d|0~~575|
117 |Word|ETD|ETD|ETD d|0~~31|
118 |Word|HD|HD|HD d|0~~24999|
119 |Word|HSD|HSD|HSD d|0~~1023|
120 |Word|HTD|HTD|HTD d|0~~95|
121 |Word|HCD|HCD|HCD d|0~~95|
122 |Word|HSCD|HSCD|HSCD d|0~~31|
123 |Word|FD|FD|FD d|0~~8191|
124 |Word|SFD|SFD|SFD d|0~~5999|
125 |Word|FS|FS|FS d|0~~47|
126
Theodore Xu 9.1 127 **PLC Settings**
Leo Wei 2.1 128
Theodore Xu 9.1 129 Create the new project, and select the specific model according to the actual PLC
Leo Wei 2.1 130
Theodore Xu 9.1 131 (% style="text-align:center" %)
132 [[image:XinjieXDcreatenew.png]]
Leo Wei 2.1 133
Theodore Xu 9.1 134 Program the PLC
135
136 (% style="text-align:center" %)
137 [[image:XinjieXDLDprg.png]]
138
139 Connect PLC with PC through RS232-USB converter cable. Click [Option]-[Software Serial Port Config]-[Communication configuration] to open the PC connection configuration.
140
141 (% style="text-align:center" %)
142 [[image:XinjieXDopenSWcom (1).png]]
143
144 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.
145
146 (% style="text-align:center" %)
147 [[image:XinjieXDPLCtestconn.png]]
148
149 Remember to click the Status cell of new created Modbus configuration for change the status into "in use", then click OK to exit.
150
151 (% style="text-align:center" %)
152 [[image:XinjieXDclickto.png]]
153
154 After done the previous steps, it would prompt like the below.
155
156 (% style="text-align:center" %)
157 [[image:XinjieXDsuccessprompt.png]]
158
159 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]
160
161 (% style="text-align:center" %)
162 [[image:XinjieXDdownload.png]]
163
164 And then the XDPro ask for which options want to rewrite, and click OK to finish.
165
166 (% style="text-align:center" %)
167 [[image:XinjieXDdownloadopt.png]]
168
169 If download successfully, it would prompt like the below.
170
171 (% style="text-align:center" %)
172 [[image:XinjieXDcomplete.png]]
173
174 **Cable Wiring**
175
Leo Wei 2.1 176 Figure
177
Theodore Xu 9.1 178 [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_a14861f1794a6a42.png||alt="image-20220831163406-2.png" height="266" width="101"]] [[image:xwiki_V-BOX_V-Net_Training_1+Communication_WebHome_a8ea42846b443604.png||alt="image-20220831163553-6.png" height="206" width="465"]]
Leo Wei 2.1 179
180 Pin Definition Diagram
181
Theodore Xu 9.1 182 [[image:https://docs.we-con.com.cn/bin/download/PIStudio/12.PLC%20protocols/WebHome/image-20220830160232-3.png?rev=1.1||alt="image-20220830160232-3.png" height="218" width="709"]]