Wiki source code of Xinje

Version 16.1 by Hunter on 2023/09/22 15:21

Show last authors
1 = **XC MODBUS** =
2
3 Support Series: Xinjie XC Series
4
5 **HMI Settings**
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
16 **Address List**
17
18 |=**Type**|=(% style="width: 301px;" %)**Device registers**|=(% style="width: 235px;" %)**Format**|=**Range**|=**Note**
19 |(% colspan="1" rowspan="6" %)Bit|(% style="width:301px" %)M|(% style="width:235px" %)MDDDD|0~~8511|Internal Relay
20 |(% style="width:301px" %)X|(% style="width:235px" %)XOOOO|0~~1747|Input Relay
21 |(% style="width:301px" %)Y|(% style="width:235px" %)YOOOO|0~~1747|Output Relay
22 |(% style="width:301px" %)S|(% style="width:235px" %)SDDDD|0~~1023|Flow
23 |(% style="width:301px" %)T|(% style="width:235px" %)TDDD|0~~618|Timer
24 |(% style="width:301px" %)C|(% style="width:235px" %)CDDD|0~~634|Counter
25 |(% colspan="1" rowspan="4" %)Word|(% style="width:301px" %)D|(% style="width:235px" %)DDDDD|0~~8511|Data Register
26 |(% style="width:301px" %)TD|(% style="width:235px" %)TDDDD|0~~618|Timer
27 |(% style="width:301px" %)CD|(% style="width:235px" %)CDDDD|0~~634|Counter
28 |(% style="width:301px" %)FD|(% style="width:235px" %)FDDDDD|0~~8511|FlashROM Register
29
30
31 **PLC Settings**
32
33 Create the new project, and select the specific model according to the actual PLC
34
35 (% style="text-align:center" %)
36 [[image:XinjieXCcreatenew.png]]
37
38 Program the PLC
39
40 (% style="text-align:center" %)
41 [[image:XinjieXCPrg.png]]
42
43 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.
44
45 (% style="text-align:center" %)
46 [[image:XinjieXCPCconn.png]]
47
48 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.
49
50 (% style="text-align:center" %)
51 [[image:XinjieXCPLCModbusConfig.png]]
52
53 Click [Online]-[Download Program] to download program into PLC. And the download pop up window would pop up, then click OK.
54
55 (% style="text-align:center" %)
56 [[image:XinjieXCDownloadPLC.png]]
57
58 **Cable Wiring**
59
60
61 (% style="text-align:center" %)
62 [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_58247140e9fe4230.png||alt="image-20220830154131-2.png" height="240" width="395"]]
63
64 = **XD/XE MODBUS** =
65
66 Supported Series: Xinjie XD Series
67
68 **HMI Settings**
69
70 |=**Item**|=**Settings**|=**Note**
71 |Protocol|XINJE XD/XC MODBUS|
72 |Connection|RS232|
73 |Baud rate|19200|
74 |Data bit|8|
75 |Parity|EVEN|
76 |Stop bit|1|
77 |PLC station No.|1|Need to be same as PLC setting
78
79 **Address List**
80
81 |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note**
82 |(% colspan="1" rowspan="18" %)Bit|M|MDDDDD|0~~74999|Internal Relay
83 |X1xx|X1xxOOOO|0~~1177|Extension Module Input Relay
84 |X2xx|X2xxOOO|0~~277|BD Card Input Relay
85 |X|XOO|0~~77|Input Relay
86 |Y1xx|Y1xxOOOO|0~~1177|Extenson Module Output Relay
87 |Y2xx|Y2xxOOO|0~~277|BD Card Output Relay
88 |Y|YOOOO|0~~77|Output Relay
89 |SM|SMDDDD|0~~4999|Special Auxiliary Relay
90 |T|TDDDD|0~~4999|Timer
91 |C|CDDDD|0~~4999|Counter
92 |ET|ETDD|0~~31|Precise Timer
93 |SE|SEDD|0~~31|Function Block WAIT Instruction Special Coil
94 |HM|HMDDDDD|0~~11999|Power Off Retentive Internal Relay
95 |HSC|HSCDD|0~~39|High Speed Counter
96 |HS|HSDDD|0~~999|Power Off Retentive Procedure
97 |HT|HTDDDD|0~~1999|Power Off Retentive Auxiliary Relay
98 |HC|HCDDDD|0~~1999|Power Off Retentive Counter
99 |S|SDDDD|0~~7999|Procedure
100 |(% colspan="1" rowspan="19" %)Word|D|DDDDDD|0~~69999|Data Register
101 |ID|IDDD|0~~99|Analog Input
102 |ID1xx|ID1xxDDD|0~~999|Extension Module Analog Input
103 |ID2xx|ID2xxDDD|0~~299|BD Card Analog Input
104 |QD|QDDD|0~~99|Analog Output
105 |QD1xx|QD1xxDDD|0~~999|Extension Module Analog Output
106 |QD2xx|QD2xxDDD|0~~299|BD Card Analog Output
107 |SD|SDDDDD|0~~4999|Data Register
108 |TD|TDDDD|0~~575|Timer
109 |CD|CDDDD|0~~575|Counter
110 |ETD|ETDDD|0~~31|Precise Timer
111 |HD|HDDDDDD|0~~24999|Data Register
112 |HSD|HSDDDDD|0~~1023|Power Off Retentive Data Register
113 |HTD|HTDDD|0~~95|Power Off Retentive Timer
114 |HCD|HCDDD|0~~95|Power Off Retentive Counter
115 |HSCD|HSCDDD|0~~31|High Speed Counter
116 |FD|FDDDDD|0~~8191|FlashROM Register
117 |SFD|SFDDDDD|0~~5999|Special Flash Register
118 |FS|FSDD|0~~47|Special Data Register
119
120 **PLC Settings**
121
122 Create the new project, and select the specific model according to the actual PLC
123
124 (% style="text-align:center" %)
125 [[image:XinjieXDcreatenew.png]]
126
127 Program the PLC
128
129 (% style="text-align:center" %)
130 [[image:XinjieXDLDprg.png]]
131
132 Connect PLC with PC through RS232-USB converter cable. Click [Option]-[Software Serial Port Config]-[Communication configuration] to open the PC connection configuration.
133
134 (% style="text-align:center" %)
135 [[image:XinjieXDopenSWcom.png]]
136
137 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
138
139 (% style="text-align:center" %)
140 [[image:XinjieXDPLCtestconn.png]]
141
142 Remember to click the Status cell of new created Modbus configuration for change the status into "in use", then click OK to exit.
143
144 (% style="text-align:center" %)
145 [[image:XinjieXDclickto.png]]
146
147 After done the previous steps, it would prompt like the below
148
149 (% style="text-align:center" %)
150 [[image:XinjieXDsuccessprompt.png]]
151
152 Change the PLC communication setup if required. Click [Configure]-[PLC Comm Port Settings]-[Add]-[Modbus]. After parameters are modified, click [Write to PLC].
153
154 (% style="text-align:center" %)
155 [[image:XinjieXDSetPLCcom0.png]]
156
157 If wrote to PLC successfully, it would prompt like the below
158
159 (% style="text-align:center" %)
160 [[image:XinjieXDwriteComparadone.png]]
161
162 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]
163
164 (% style="text-align:center" %)
165 [[image:XinjieXDdownload.png]]
166
167 And then the XDPro ask for which options want to rewrite, and click OK to finish.
168
169 (% style="text-align:center" %)
170 [[image:XinjieXDdownloadopt.png]]
171
172 If download successfully, it would prompt like the below
173
174 (% style="text-align:center" %)
175 [[image:XinjieXDcomplete.png]]
176
177 **Cable Wiring**
178
179 (% style="text-align:center" %)
180 [[image:Xinjie.gif]]