Wiki source code of Xinje

Version 15.2 by Hunter on 2023/09/22 15:08

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