Wiki source code of Xinje

Last modified by Hunter on 2023/09/22 15:23

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