Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | = = |
| 2 | |||
| 3 | |||
| |
1.1 | 4 | = {{id name="HWECON"/}}WECON = |
| 5 | |||
| 6 | == {{id name="HLX3Series"/}}**LX3 Series** == | ||
| 7 | |||
| 8 | Supported series: WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM | ||
| 9 | |||
| 10 | **HMI Settings** | ||
| 11 | |||
| 12 | |=**Item**|=**Settings**|=**Note** | ||
| 13 | |=Protocol|WECON LX2V/ LX2E/ LX3V/LX3VP/LX3VE/LX3VM| | ||
| 14 | |=Connection|RS422/RS485| | ||
| 15 | |=Baud rate|9600| | ||
| 16 | |=Data bit|7| | ||
| 17 | |=Parity|EVEN| | ||
| 18 | |=Stop bit|1| | ||
| 19 | |=PLC station No.|1| | ||
| 20 | |||
| 21 | **Address List** | ||
| 22 | |||
| 23 | |=(% style="width: 181px;" %)**Type**|=(% style="width: 348px;" %)**Device registers**|=(% style="width: 431px;" %)**HMI registers**|=(% style="width: 321px;" %)**Range**|=(% style="width: 321px;" %)Note | ||
| 24 | |=(% colspan="1" rowspan="8" style="width: 181px;" %)Bit|(% style="width:348px" %)X|(% style="width:431px" %)X OOOOOO|(% style="width:321px" %)0~~303237|(% style="width:321px" %) | ||
| 25 | |(% style="width:348px" %)Y|(% style="width:431px" %)Y OOOOOO|(% style="width:321px" %)0~~303237|(% style="width:321px" %) | ||
| 26 | |(% style="width:348px" %)M|(% style="width:431px" %)M DDDDD|(% style="width:321px" %)0~~99999|(% style="width:321px" %) | ||
| 27 | |(% style="width:348px" %)T|(% style="width:431px" %)T DDDDD|(% style="width:321px" %)0~~99999|(% style="width:321px" %) | ||
| 28 | |(% style="width:348px" %)C|(% style="width:431px" %)C DDDDD|(% style="width:321px" %)0~~99999|(% style="width:321px" %) | ||
| 29 | |(% style="width:348px" %)SM|(% style="width:431px" %)SM DDDD|(% style="width:321px" %)8000~~9999|(% style="width:321px" %) | ||
| 30 | |(% style="width:348px" %)S|(% style="width:431px" %)S DDDDD|(% style="width:321px" %)0~~99999|(% style="width:321px" %) | ||
| 31 | |(% style="width:348px" %)Lamp|(% style="width:431px" %)Lamp D|(% style="width:321px" %)0~~0|(% style="width:321px" %)Communication indicator | ||
| 32 | |=(% colspan="1" rowspan="10" style="width: 181px;" %)Word|(% style="width:348px" %)X|(% style="width:431px" %)X OOOOOO|(% style="width:321px" %)0~~303237|(% style="width:321px" %) | ||
| 33 | |(% style="width:348px" %)Y|(% style="width:431px" %)Y OOOOOO|(% style="width:321px" %)0~~303237|(% style="width:321px" %) | ||
| 34 | |(% style="width:348px" %)M|(% style="width:431px" %)M DDDDD|(% style="width:321px" %)0~~99999|(% style="width:321px" %) | ||
| 35 | |(% style="width:348px" %)T|(% style="width:431px" %)T DDDDD|(% style="width:321px" %)0~~99999|(% style="width:321px" %) | ||
| 36 | |(% style="width:348px" %)C|(% style="width:431px" %)C DDD|(% style="width:321px" %)0~~199|(% style="width:321px" %) | ||
| 37 | |(% style="width:348px" %)D|(% style="width:431px" %)D DDDD|(% style="width:321px" %)0~~7999|(% style="width:321px" %) | ||
| 38 | |(% style="width:348px" %)S|(% style="width:431px" %)S DDDDD|(% style="width:321px" %)0~~99999|(% style="width:321px" %) | ||
| 39 | |(% style="width:348px" %)SD|(% style="width:431px" %)SD DDDD|(% style="width:321px" %)8000~~9999|(% style="width:321px" %) | ||
| 40 | |(% style="width:348px" %)CMOD|(% style="width:431px" %)CMOD D|(% style="width:321px" %)0~~1|(% style="width:321px" %) | ||
| 41 | |(% style="width:348px" %)CMSI|(% style="width:431px" %)CMSI D|(% style="width:321px" %)0~~1|(% style="width:321px" %) | ||
| 42 | |=(% colspan="1" style="width: 181px;" %)Double Word|(% style="width:348px" %)CH|(% style="width:431px" %)CH DDD|(% style="width:321px" %)200~~255|(% style="width:321px" %)C200~~234: 32-bit Counter | ||
| 43 | C235~~255: High Speed Counter | ||
| 44 | |||
| 45 | **Cable Wiring** | ||
| 46 | |||
| 47 | * **RS485** | ||
| 48 | |||
| 49 | {{id name="I12.PLCProtocol_html_1897d92be6948d58.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c6d16b5adff76549.png||alt="12.PLC Protocol_html_1897d92be6948d58.png" height="223" width="393"]] | ||
| 50 | |||
| 51 | * **RS422** | ||
| 52 | |||
| 53 | {{id name="I12.PLCProtocol_html_5c7fca9a70da2ee8.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_59ce051d2c5e70e0.png||alt="12.PLC Protocol_html_5c7fca9a70da2ee8.png" height="247" width="389"]] | ||
| 54 | |||
| 55 | **✎Note:** | ||
| 56 | |||
| 57 | * HMI COM3 is available in PI8000 series and COM3 is in COM2(hardware PIN 7 and PIN 8) . | ||
| 58 | * If PLC <= 20 points,such as LX3V-1208/LX3V-0806 PLC,PLC RS485A and RS485B mean PLC COM2 RS485+ and RS485- .PLC COM2 can support modbus. Please refer to PLC COM2 setting manual. | ||
| 59 | |||
| 60 | [[https:~~/~~/drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing>>url:https://drive.google.com/drive/folders/13rgso7oUlatZQN_SNEcJCcN4toEdDPoP?usp=sharing]] | ||
| 61 | |||
| 62 | **{{id name="HHMIsettings"/}}HMI settings** | ||
| 63 | |||
| 64 | **Download PIStudio Software** | ||
| 65 | |||
| 66 | Please visit the link below to get the latest version PIstudio for HMI programming: | ||
| 67 | |||
| 68 | * [[Download link>>url:https://docs.we-con.com.cn/bin/view/PIStudio/Download/3%20Software/]] | ||
| 69 | |||
| 70 | **Create a new HMI project connect with PLC** | ||
| 71 | |||
| 72 | Check the link below for the video to show you how to get started with a new project | ||
| 73 | |||
| 74 | * [[Video>>url:https://youtu.be/0FpmDZe_8U8]] | ||
| 75 | |||
| 76 | For more videos, please visit our Youtube channel: [[http:~~/~~/www.youtube.com/user/Wecon2004/videos>>url:http://www.youtube.com/user/Wecon2004/videos]] | ||
| 77 | |||
| 78 | **General** | ||
| 79 | |||
| 80 | HMI could communicate with PLC and support many PLC protocols. It is easy to operate and set communication parameters. This demo shows how to make a communication with PLC device, use WECON LX3V Series PLC as an example. | ||
| 81 | |||
| 82 | **Protocol settings** | ||
| 83 | |||
| 84 | The communication between two devices requires a protocol. The following contents show the steps of protocol settings. | ||
| 85 | |||
| 86 | Please select the protocol, when creating a new project. | ||
| 87 | |||
| 88 | 1. Select the COM port for communication; | ||
| 89 | 1. PLC type: It means PLC brand, like WECON; | ||
| 90 | 1. PLC model: It shows the model of PLC, such as LX3V; | ||
| 91 | |||
| 92 | {{id name="Iimage-20220819093729-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_271ccf1461ff2285.png||alt="image-20220819093729-1.png" height="236" width="464"]] | ||
| 93 | |||
| 94 | If you want to change the protocol for existing project, please click [Program] → [Communication] to open the [Communication] windows, shown as the following figure. | ||
| 95 | |||
| 96 | {{id name="Iimage-20220819093729-2.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_9089051384ca99de.png||alt="image-20220819093729-2.png" height="138" width="702"]] | ||
| 97 | |||
| 98 | The steps to change the protocol for project are as follows. | ||
| 99 | |||
| 100 | 1. Click [Setting] to open the [Communication device] window; | ||
| 101 | 1. Select communication port, such as COM1; | ||
| 102 | 1. Select Serial port for communication, such as RS422; | ||
| 103 | 1. Select device type (device brand), such as WECON; | ||
| 104 | 1. Select the protocol for communication, such as WECON LX3V; | ||
| 105 | |||
| 106 | {{id name="Iimage-20220819093729-3.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_33df6370c17ebfa9.png||alt="image-20220819093729-3.png" height="674" width="875"]] | ||
| 107 | |||
| 108 | **Parameter settings** | ||
| 109 | |||
| 110 | The parameters settings are in [Communication] window, shown as following below. | ||
| 111 | |||
| 112 | 1. Click [Setting] to open the [COM port setting] window; | ||
| 113 | 1. Set the parameters such as [connection], [Baud rate] and so on; | ||
| 114 | |||
| 115 | {{id name="Iimage-20220819093729-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_891cd58628495097.png||alt="image-20220819093729-4.png" height="636" width="818"]] | ||
| 116 | |||
| 117 | 1. Click [Setting] to open [Timeout] setting window, you could set the parameters according your requirements, or just use the default value. | ||
| 118 | |||
| 119 | {{id name="Iimage-20220819093729-5.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_b80c1a7329ce3f5f.png||alt="image-20220819093729-5.png" height="296" width="349"]] | ||
| 120 | |||
| 121 | **Set PLC address in HMI screen** | ||
| 122 | |||
| 123 | 1. Place the objects to HMI screen; | ||
| 124 | 1. Double-click the object to open the setting window; | ||
| 125 | 1. Click “Edit” to open the address setting windows; | ||
| 126 | 1. Connection: select the serial port in HMI; | ||
| 127 | 1. Address type: All the PLC address types will be display in this list, such as M; | ||
| 128 | 1. Address No.: Please input the number of this address, such as 0; | ||
| 129 | |||
| 130 | {{id name="Iimage-20220819093729-6.jpeg"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_c233137c112020bf.jpg||alt="image-20220819093729-6.jpeg" height="817" width="1593"]] | ||
| 131 | |||
| 132 | **HMI Compilation Download** | ||
| 133 | |||
| 134 | {{id name="Iimage-20220902171247-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_49085bc4fc23af93.png||alt="image-20220902171247-1.png" height="1078" width="1262"]] | ||
| 135 | |||
| 136 | **Communication cable** | ||
| 137 | |||
| 138 | In order to ensure the stability of communication, please use the twisted-pair communication cable with good grounding. The following figure shows the pin out definition. | ||
| 139 | |||
| 140 | {{id name="Iimage-20220819093729-7.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_e18a02a8b5c24f4a.png||alt="image-20220819093729-7.png" height="256" width="414"]] | ||
| 141 | |||
| 142 | **HMI communication PLC use Modbus ** | ||
| 143 | |||
| 144 | * HMI setting: [[https:~~/~~/docs.we-con.com.cn/bin/view/PIStudio/12.PLC%20protocols/>>url:https://docs.we-con.com.cn/bin/view/PIStudio/12.PLC%20protocols/]] | ||
| 145 | * PLC setting: [[https:~~/~~/docs.we-con.com.cn/bin/view/PLC%20Editor/8.1.%09Communication/>>url:https://docs.we-con.com.cn/bin/view/PLC%20Editor/8.1.%09Communication/]] | ||
| 146 | |||
| 147 | **{{id name="HPLCsettings"/}}PLC settings** | ||
| 148 | |||
| 149 | **Download PLC Software** | ||
| 150 | |||
| 151 | Please visit below link to get the latest version PLC Editor for HMI programming | ||
| 152 | |||
| 153 | * LX3V:[[Download link>>url:https://docs.we-con.com.cn/bin/view/PLC%20Editor/10%20Hardware%20/Software/]] | ||
| 154 | * LX5V:[[Download link>>url:https://docs.we-con.com.cn/bin/view/PLC%20Editor2/Download/03%20Software/]] | ||
| 155 | |||
| 156 | **Start a new PLC project** | ||
| 157 | |||
| 158 | Start a new PLC project by clicking “New” on the left top corner of screen, select the PLC mode from the drop-down list. | ||
| 159 | |||
| 160 | {{id name="Iimage-20220819101447-3.jpeg"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d5d194db9d1d33d0.jpg||alt="image-20220819101447-3.jpeg" height="411" width="726"]] | ||
| 161 | |||
| 162 | **Add a new instruction ** | ||
| 163 | |||
| 164 | Double click on the ladder, select the ladder symbol (instruction) from the drop-down list, then enter the address for this symbol. | ||
| 165 | |||
| 166 | {{id name="Iimage-20220819105530-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_6e59dd6d3eba4d.png||alt="image-20220819105530-1.png" height="387" width="698"]] | ||
| 167 | |||
| 168 | You could also select the ladder symbol from the menu bar directly. | ||
| 169 | |||
| 170 | {{id name="Iimage-20220819093729-12.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_db5a3ad72966c00e.png||alt="image-20220819093729-12.png" height="1040" width="1920"]] | ||
| 171 | |||
| 172 | **Add comment to PLC program** | ||
| 173 | |||
| 174 | {{id name="Iimage-20220819105630-3.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_50fcec6a5d6ac220.png||alt="image-20220819105630-3.png" height="413" width="698"]] | ||
| 175 | |||
| 176 | **Add the statement to PLC program** | ||
| 177 | |||
| 178 | Add the statement by single click on “Statement”, when finished, single click on “Statement” again to go back to Ladder edit. | ||
| 179 | |||
| 180 | {{id name="Iimage-20220819105644-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d44e5ea0b00e2e14.png||alt="image-20220819105644-4.png" height="345" width="698"]] | ||
| 181 | |||
| 182 | **Compile ** | ||
| 183 | |||
| 184 | You need to compile the PLC program before downloading or running Off-line simulator. The background color will be changed from purple to white when there is no error. | ||
| 185 | |||
| 186 | {{id name="Iimage-20220819093729-15.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_e2d51171f234946a.png||alt="image-20220819093729-15.png" height="356" width="1912"]] | ||
| 187 | |||
| 188 | **Download setting ** | ||
| 189 | |||
| 190 | Click on “Transfer Setup” to select download mode. | ||
| 191 | |||
| 192 | {{id name="Iimage-20220820150853-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_98b1686a16c575ea.png||alt="image-20220820150853-1.png" height="713" width="1509"]] **Download PLC program to PLC** | ||
| 193 | |||
| 194 | Quick select the parameters and main program of PLC program, then download to PLC, “Yes”-”Yes”-”OK” | ||
| 195 | |||
| 196 | {{id name="Iimage-20220819093729-17.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_575b66f5b3d8cac5.png||alt="image-20220819093729-17.png" height="808" width="1920"]] | ||
| 197 | |||
| 198 | **Upload PLC program from PLC** | ||
| 199 | |||
| 200 | Read the PLC program from PLC to computer. | ||
| 201 | |||
| 202 | {{id name="Iimage-20220819093729-18.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_66ea9f304121cf6d.png||alt="image-20220819093729-18.png" height="762" width="1920"]] | ||
| 203 | |||
| 204 | **Device monitor** | ||
| 205 | |||
| 206 | Monitor the value of certain address in PLC, double click “Current value” to change the value in this address. | ||
| 207 | |||
| 208 | {{id name="Iimage-20220819093730-19.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ee6125099c14cb2b.png||alt="image-20220819093730-19.png" height="781" width="1920"]] | ||
| 209 | |||
| 210 | **Online monitor** | ||
| 211 | |||
| 212 | Monitor the each address in PLC by online monitor. Changing the state or value in PLC is also allowd. | ||
| 213 | |||
| 214 | {{id name="Iimage-20220819093730-20.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_21923412853b2626.png||alt="image-20220819093730-20.png" height="564" width="1607"]] | ||
| 215 | |||
| 216 | **Monitor edit** | ||
| 217 | |||
| 218 | In this mode, you could edit the PLC program during PLC is running. | ||
| 219 | |||
| 220 | {{id name="Iimage-20220819105928-9.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_9c0519bed3567723.png||alt="image-20220819105928-9.png" height="229" width="669"]] | ||
| 221 | |||
| 222 | == {{id name="HLX5VA0Series"/}}**LX5V Series** == | ||
| 223 | |||
| 224 | This example introduces the establishment of serial port communication between Wecon HMI and LX5V, including three parts: PLC software configuration, HMI software configuration, and hardware wiring. | ||
| 225 | |||
| 226 | **Software configuration of PLC** | ||
| 227 | |||
| 228 | PLC programming software | ||
| 229 | |||
| 230 | {{id name="Iimage-20220810164710-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_7599c2849074f02b.png||alt="image-20220810164710-1.png" height="326" width="424"]] | ||
| 231 | |||
| 232 | **New PLC project** | ||
| 233 | |||
| 234 | Click "New Project" and select the PLC model. | ||
| 235 | |||
| 236 | {{id name="Iimage-20220810172412-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d6bc182897bb2201.png||alt="image-20220810172412-1.png" height="898" width="1672"]] | ||
| 237 | |||
| 238 | |||
| 239 | |||
| 240 | **HMI software configuration** | ||
| 241 | |||
| 242 | HMI programming software | ||
| 243 | |||
| 244 | {{id name="Iimage-20220810171237-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d127b46be5bf7497.png||alt="image-20220810171237-4.png" height="419" width="673"]] | ||
| 245 | |||
| 246 | **New HMI project** | ||
| 247 | |||
| 248 | Click New Project and select the HMI model. | ||
| 249 | |||
| 250 | {{id name="Iimage-20220810172010-5.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_e73d0d6216dbf983.png||alt="image-20220810172010-5.png" height="912" width="1697"]] | ||
| 251 | |||
| 252 | Set communication port parameters | ||
| 253 | |||
| 254 | Click the communication configuration button on the left to find the communication protocol with LX5V. After selecting the protocol, configure the communication parameters of the COM port. | ||
| 255 | |||
| 256 | * Baud rate:115200 | ||
| 257 | * Data bit:8 | ||
| 258 | * Stop bit:1 | ||
| 259 | * Parity:No verification | ||
| 260 | |||
| 261 | {{id name="Iimage-20220811104012-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_dac87f79e1471c71.png||alt="image-20220811104012-1.png" height="965" width="1383"]] | ||
| 262 | |||
| 263 | **hardware connection** | ||
| 264 | |||
| 265 | Hardware wiring diagram | ||
| 266 | |||
| 267 | This example introduces WeconHMI with LX5V PLC to establish communication through serial port. The connection diagram is as follows: | ||
| 268 | |||
| 269 | {{id name="Iimage-20220811103005-4.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_dab0150e5cf17042.png||alt="image-20220811103005-4.png" height="150" width="681"]] | ||
| 270 | |||
| 271 | {{id name="Iimage-20220811103227-7.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d72bd5e65a0f052c.png||alt="image-20220811103227-7.png" height="209" width="342"]] | ||
| 272 | |||
| 273 | The above are all the steps for establishing serial port communication between Wecon HMI with LX5V PLC. | ||
| 274 | |||
| 275 | == {{id name="HLX5V-NEthernet"/}}**LX5V-N Ethernet** == | ||
| 276 | |||
| 277 | {{id name="cke_bm_147709S"/}} This example introduces the establishment of Ethernet communication between Wecon HMI and LX5V, including three parts: PLC software configuration, HMI software configuration, and hardware wiring. | ||
| 278 | |||
| 279 | **Software configuration of PLC** | ||
| 280 | |||
| 281 | **PLC programming software** | ||
| 282 | |||
| 283 | {{id name="Iimage-20220810164710-1.png-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_7599c2849074f02b.png||alt="image-20220810164710-1.png" height="326" width="424"]] | ||
| 284 | |||
| 285 | **New PLC project** | ||
| 286 | |||
| 287 | Click New Project and select the PLC model. | ||
| 288 | |||
| 289 | {{id name="Iimage-20220811115454-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_ff2c1cc959b53fdd.png||alt="image-20220811115454-1.png" height="930" width="1699"]] | ||
| 290 | |||
| 291 | **Set Ethernet port parameters** | ||
| 292 | |||
| 293 | Follow the steps below to configure Ethernet parameters | ||
| 294 | |||
| 295 | * PLC IP address:192.168.39.200 | ||
| 296 | * default gateway:192.168.39.1 | ||
| 297 | * subnet mask:255.255.255.0 | ||
| 298 | |||
| 299 | {{id name="Iimage-20220811140530-2.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_60404ed3c7204071.png||alt="image-20220811140530-2.png" height="1031" width="1920"]] | ||
| 300 | |||
| 301 | **Registers list** | ||
| 302 | |||
| 303 | {{id name="Iimage-20220811102219-3.png-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_eb0d8d9280761af1.png||alt="image-20220811102219-3.png" height="658" width="1226"]] | ||
| 304 | |||
| 305 | **HMI software configuration** | ||
| 306 | |||
| 307 | HMI programming software | ||
| 308 | |||
| 309 | {{id name="Iimage-20220810171237-4.png-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_d127b46be5bf7497.png||alt="image-20220810171237-4.png" height="419" width="673"]] | ||
| 310 | |||
| 311 | **New HMI project** | ||
| 312 | |||
| 313 | Click New Project and select the HMI model. | ||
| 314 | |||
| 315 | {{id name="Iimage-20220810172010-5.png-1"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_e73d0d6216dbf983.png||alt="image-20220810172010-5.png" height="912" width="1697"]] | ||
| 316 | |||
| 317 | **Set communication port parameters** | ||
| 318 | |||
| 319 | Click the project setting button on the left to configure the IP address of the HMI machine to ensure that the HMI and PLC IP remain in a local area network. | ||
| 320 | |||
| 321 | * HMI IP address:192.168.39.201 | ||
| 322 | * Default gateway:192.168.39.1 | ||
| 323 | * Subnet mask:255.255.255.0 | ||
| 324 | |||
| 325 | {{id name="Iimage-20220811170753-2.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_94717717b08e9074.png||alt="image-20220811170753-2.png" height="1008" width="1920"]] | ||
| 326 | |||
| 327 | Next, click Communication Settings to configure the IP of the HMI communication object. | ||
| 328 | |||
| 329 | {{id name="Iimage-20220811163047-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_291564bcc9db7b1b.png||alt="image-20220811163047-1.png" height="1030" width="1920"]] | ||
| 330 | |||
| 331 | **Hardware connection** | ||
| 332 | |||
| 333 | This example introduces WeconHMI with LX5V-N PLC to establish communication through ethernet. The connection diagram is as follows: | ||
| 334 | |||
| 335 | {{id name="Iimage-20220811170248-1.png"/}}[[image:xwiki_PIStudio_12.PLC+protocols_WebHome_dcab5cd2ecf22982.png||alt="image-20220811170248-1.png" height="199" width="779"]] | ||
| 336 | |||
| 337 | The above are all the steps for establishing ethernet communication between Wecon HMI with LX5V PLC. | ||
| 338 | |||
| 339 | == **LX6V Ethernet** == | ||
| 340 | |||
| 341 | **HMI Setting** | ||
| 342 | |||
| 343 | |=**Items**|=**Settings** | ||
| 344 | |Protocol|WECON LX6V EtherNet/IP | ||
| 345 | |Connection|Ethernet | ||
| 346 | |Port No.|33818 | ||
| 347 | |Device No.|1 | ||
| 348 | |HMI No.|0 | ||
| 349 | |||
| 350 | **Support Variable Type** | ||
| 351 | |||
| 352 | |=Data Type|=PIStudio Data Format | ||
| 353 | |=BOOL|Bit | ||
| 354 | |=BYTE|16-bit Unsigned/Binary/BCD/Hex | ||
| 355 | |=WORD|16-bit Unsigned/Binary/BCD/Hex | ||
| 356 | |=DWORD|32-bit Unsigned/Binary/BCD/Hex | ||
| 357 | |=LWORD|64-bit Signed/Binary/BCD/Hex | ||
| 358 | |=SINT|16-bit Signed/Binary/BCD/Hex | ||
| 359 | |=USINT|16-bit Unsigned/Binary/BCD/Hex | ||
| 360 | |=INT|16-bit Signed/Binary/BCD/Hex | ||
| 361 | |=UINT|16-bit Unsigned/Binary/BCD/Hex | ||
| 362 | |=DINT|32-bit Signed/Binary/BCD/Hex | ||
| 363 | |=UDINT|32-bit Unsigned/Binary/BCD/Hex | ||
| 364 | |=LINT|64-bit Signed/Binary/BCD/Hex | ||
| 365 | |=REAL|32-bit Float | ||
| 366 | |=LREAL|64-bit Float | ||
| 367 | |||
| 368 | **PLC Setting** | ||
| 369 | |||
| 370 | PLC programmer software | ||
| 371 | |||
| 372 | (% style="text-align:center" %) | ||
| 373 | [[image:1726822663840-435.png]] | ||
| 374 | |||
| 375 | Create and Export the Freetags | ||
| 376 | |||
| 377 | **①**[Program]→[Global variable]→[GVL]→Create the Freetags you need,notice the Category and Type of data | ||
| 378 | |||
| 379 | (% class="box infomessage" %) | ||
| 380 | ((( | ||
| 381 | **✎**Note: Only global variables can be exported normally | ||
| 382 | ))) | ||
| 383 | |||
| 384 | (% style="text-align:center" %) | ||
| 385 | [[image:图片2.png]] | ||
| 386 | |||
| 387 | **②**[File]→[Export label] | ||
| 388 | |||
| 389 | (% style="text-align:center" %) | ||
| 390 | [[image:图片3.png]] | ||
| 391 | |||
| 392 | **③**Set the Name and Type→[Save]→[OK] | ||
| 393 | |||
| 394 | (% style="text-align:center" %) | ||
| 395 | [[image:图片4.png]] | ||
| 396 | |||
| 397 | **HMI Setting ** | ||
| 398 | |||
| 399 | Tags import | ||
| 400 | |||
| 401 | [Labels manage]→[Import Tags From File]→Choose the .CSV file you need→[Open]→[Save]→[OK] | ||
| 402 | |||
| 403 | (% style="text-align:center" %) | ||
| 404 | [[image:图片1.png]] | ||
| |
2.1 | 405 | |
| 406 | == [[**LX 6C Series/AC60 Series **>>https://docs.we-con.com.cn/bin/view/PIStudio/PLC%20Protocol/CODESYS%20V3/#]] == |