Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
11.1 | 1 | = **XC MODBUS** = |
![]() |
2.1 | 2 | |
![]() |
15.2 | 3 | Support Series: Xinjie XC Series |
4 | |||
![]() |
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 | |||
![]() |
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 | ||
![]() |
2.1 | 29 | |
30 | |||
![]() |
16.1 | 31 | **PLC Settings** |
![]() |
2.1 | 32 | |
![]() |
16.1 | 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 | |||
![]() |
2.1 | 58 | **Cable Wiring** |
59 | |||
60 | |||
![]() |
16.1 | 61 | (% style="text-align:center" %) |
![]() |
15.2 | 62 | [[image:xwiki_PIStudio_12.PLC+protocols_WebHome_58247140e9fe4230.png||alt="image-20220830154131-2.png" height="240" width="395"]] |
![]() |
2.1 | 63 | |
![]() |
11.1 | 64 | = **XD/XE MODBUS** = |
![]() |
2.1 | 65 | |
![]() |
11.1 | 66 | Supported Series: Xinjie XD Series |
67 | |||
![]() |
2.1 | 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| | ||
![]() |
11.1 | 77 | |PLC station No.|1|Need to be same as PLC setting |
![]() |
2.1 | 78 | |
79 | **Address List** | ||
80 | |||
![]() |
11.1 | 81 | |=**Type**|=**Device registers**|=**Format**|=**Range**|=**Note** |
![]() |
14.2 | 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 | ||
![]() |
15.1 | 93 | |SE|SEDD|0~~31|Function Block WAIT Instruction Special Coil |
![]() |
14.3 | 94 | |HM|HMDDDDD|0~~11999|Power Off Retentive Internal Relay |
95 | |HSC|HSCDD|0~~39|High Speed Counter | ||
![]() |
15.1 | 96 | |HS|HSDDD|0~~999|Power Off Retentive Procedure |
97 | |HT|HTDDDD|0~~1999|Power Off Retentive Auxiliary Relay | ||
![]() |
14.3 | 98 | |HC|HCDDDD|0~~1999|Power Off Retentive Counter |
99 | |S|SDDDD|0~~7999|Procedure | ||
![]() |
14.2 | 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 | ||
![]() |
2.1 | 119 | |
![]() |
11.1 | 120 | **PLC Settings** |
![]() |
2.1 | 121 | |
![]() |
11.2 | 122 | Create the new project, and select the specific model according to the actual PLC |
![]() |
2.1 | 123 | |
![]() |
11.2 | 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 | |||
![]() |
11.3 | 147 | After done the previous steps, it would prompt like the below |
![]() |
11.2 | 148 | |
![]() |
11.4 | 149 | (% style="text-align:center" %) |
150 | [[image:XinjieXDsuccessprompt.png]] | ||
![]() |
11.3 | 151 | |
![]() |
13.1 | 152 | Change the PLC communication setup if required. Click [Configure]-[PLC Comm Port Settings]-[Add]-[Modbus]. After parameters are modified, click [Write to PLC]. |
![]() |
11.4 | 153 | |
![]() |
13.1 | 154 | (% style="text-align:center" %) |
155 | [[image:XinjieXDSetPLCcom0.png]] | ||
![]() |
11.5 | 156 | |
![]() |
13.1 | 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 | |||
![]() |
2.1 | 177 | **Cable Wiring** |
178 | |||
![]() |
14.1 | 179 | (% style="text-align:center" %) |
180 | [[image:Xinjie.gif]] |