Wiki source code of 01 Getting Started

Version 34.1 by Stone Wu on 2022/08/22 11:29

Show last authors
1 (% class="wikigeneratedid" id="HPIStudio" %)
2 The HMI configuration software help can help you master the basic operation and usage of the configuration software more quickly, and assist you in completing your work successfully.
3
4 (% class="wikigeneratedid" %)
5 The following steps will show how to install PIStudio.
6
7 = Requirement =
8
9 PIStudio installation package downloaded.
10
11 * Windows 7 (32bit / 64bit)
12 * Windows 8 (32bit / 64bit)
13 * Windows 8.1 (32bit / 64bit)
14 * Windows 10 (32bit / 64bit)
15
16 = Download =
17
18 **Official Website** [[https:~~/~~/ftp.we-con.com.cn/Download/Software/PIStudio20211210.zip>>https://ftp.we-con.com.cn/Download/Software/PIStudio20211210.zip]]
19
20 **Google Drive **[[https:~~/~~/drive.google.com/open?id=1Im7YS2rtnRI7yFIHmqHDVPBUyWahqSXN>>https://drive.google.com/open?id=1Im7YS2rtnRI7yFIHmqHDVPBUyWahqSXN]]
21
22 = Installation =
23
24 Steps:
25
26 (((
27 1. Decompress downloaded file get PIStudio installation package.
28 1. Select PIStudio installation package.
29 1. Right click it.
30 1. Select "Run as administrator".
31 1. Select language for PIStudio interface, it supports Chinese (Simplified), Chinese (Traditional), English, Italian, Russian.
32 )))
33
34 (% style="text-align:center" %)
35 [[image:2.Installation Software_html_f3d49e1396c6e4f6.png||data-xwiki-image-style-alignment="center" height="153" width="300" class="img-thumbnail"]]
36
37 (% start="6" %)
38 1. Click "Next".
39
40 (% style="text-align:center" %)
41 [[image:2.Installation Software_html_a8017b2a399a513a.png||data-xwiki-image-style-alignment="center" height="388" width="500" class="img-thumbnail"]]
42
43 (% start="7" %)
44 1. If there is a previous version of PIStudio on the PC, please remove it before installation.
45 1. Select a folder for PIStudio installation, or use the default folder, then click "Next".
46
47 (% style="text-align:center" %)
48 [[image:2.Installation Software_html_e36b4ee18ae58696.png||data-xwiki-image-style-alignment="center" height="387" width="499" class="img-thumbnail"]]
49
50 (% start="9" %)
51 1. Click "Browse" to specify a folder, or use the folder suggested by the program, click "Next" to continue the installation process.
52
53 (% style="text-align:center" %)
54 [[image:2.Installation Software_html_5a03d3f06568a2e4.png||data-xwiki-image-style-alignment="center" height="387" width="499" class="img-thumbnail"]]
55
56 (% start="10" %)
57 1. Select additional tasks, for example: "Create a desktop icon". Click "Next".
58
59 (% style="text-align:center" %)
60 [[image:2.Installation Software_html_4e0e99bed6dace57.png||data-xwiki-image-style-alignment="center" height="387" width="499" class="img-thumbnail"]]
61
62 (% start="11" %)
63 1. At this stage, all settings have been completed. Please check if it is correct. If there is any need to re-select the part, please press "Back". If all is correct, please press "Install" to start the installation process.
64
65 (% style="text-align:center" %)
66 [[image:2.Installation Software_html_4a34d864617e2e2c.png||data-xwiki-image-style-alignment="center" height="387" width="499" class="img-thumbnail"]]
67
68 (% start="12" %)
69 1. Installer execution
70
71 (% style="text-align:center" %)
72 [[image:2.Installation Software_html_cffc7ff7dee59cd6.png||data-xwiki-image-style-alignment="center" height="387" width="499" class="img-thumbnail"]]
73
74 (% start="13" %)
75 1. Please check "Launch VC Runtime" to install "Microsoft Visual C++2008" in your PC.
76
77 (% style="text-align:center" %)
78 [[image:2.Installation Software_html_8ac33d46970c9f0a.png||data-xwiki-image-style-alignment="center" height="387" width="499" class="img-thumbnail"]]
79
80 **Result: **Users could see shortcuts to PIStudio's features in the "Start" » "All Programs" » "PIStudio" directory.
81
82 ✎**Note:**
83
84 * In case of the incompatible problems, it is suggested to install and run PIStudio as administrator.
85 * Microsoft Visual C++ 2008 provides the necessary runtime components for PIStudio
86
87 = PISuite (Toolkit) =
88
89 In addition to being editable on PIStudio, HMI has other related components that can be used.
90
91 Open the "Start" ->"All Programs" ->HMI Editor installation directory to quickly open functional tool.
92
93 (% style="text-align:center" %)
94 [[image:工具箱 1.png||data-xwiki-image-style-alignment="center" class="img-thumbnail"]]
95
96 (% style="text-align:center" %)
97 [[image:工具箱 2.png||data-xwiki-image-style-alignment="center" class="img-thumbnail"]]
98
99 (% class="wikigeneratedid" %)
100 The tools of toolkit are as follows.
101
102 (% class="table-bordered" %)
103 |=(% style="width: 200px;" %)Tool|=(% style="width: 118px;" %)Icon|=(% style="width: 756px;" %)Function
104 |(% style="width:200px" %)[[Download>>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HDownloadproject]]|(% style="width:118px" %)[[image:工具箱 3.png||height="66" width="66"]]|(% style="width:756px" %)Get information about HMI such as upload and download project, updata HMI's time, get HMI version, get machine colde etc,.
105 |(% style="width:200px" %)[[Decompile>>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HDecompile]]|(% style="width:118px" %)[[image:工具箱 4.png||height="66" width="66"]]|(% style="width:756px" %)After reading the project from HMI to PC, you need to decomcompile the project before opening it with PIStudio.
106 |(% style="width:200px" %)DataLogTool|(% style="width:118px" %)[[image:工具箱 5.png||height="62" width="66"]]|(% style="width:756px" %)To view the "DB" such as file data records, alarm records or operation records collected by HMI. You could also convert it to "excel" format.
107 |(% style="width:200px" %)LogoMakerTool|(% style="width:118px" %)[[image:工具箱 6.png||height="66" width="66"]]|(% style="width:756px" %)To make the boot logo of PI series HMI.
108 |(% style="width:200px" %)DataUpload|(% style="width:118px" %)[[image:工具箱 7.png]]|(% style="width:756px" %)Upload data record ,alarm records or operation records collected by HMI.
109 |(% style="width:200px" %)[[PIRecordUpload>>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HDataRecordUpload28Onlyigseries29]]|(% style="width:118px" %)[[image:工具箱 8.png]]|(% style="width:756px" %)Monitor devices in real time, update and export data records, alarm records or operation records collected by HMI synchronously. (Only supported by ig Sseries)
110 |(% style="width:200px" %)[[CreatInstallmentPwd>>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HPasswordtool]]|(% style="width:118px" %)[[image:工具箱 9.png]]|(% style="width:756px" %)The installment payment mode is dynamic password. You can use the Installment password tool "CreatInstallmentPwd" to generate the dynamic password.
111 |(% style="width:200px" %)PIMonitor|(% style="width:118px" %)[[image:工具箱 10.png]]|(% style="width:756px" %)LAN monitoring of 3000 series HMI screen.
112 |(% style="width:200px" %)[[Levi2PI>>https://docs.we-con.com.cn/bin/view/PIStudio/17.Levi2PI/]]|(% style="width:118px" %)[[image:工具箱 11.png||height="67" width="66"]]|(% style="width:756px" %)Convert LEVI series engineering to PI series engineering.
113 |(% style="width:200px" %)HMIPrjStdNeutral|(% style="width:118px" %)[[image:工具箱 12.png]]|(% style="width:756px" %)Project conversion between PI standard and PI neutral version
114 |(% style="width:200px" %)PIRptEditTool|(% style="width:118px" %)[[image:工具箱 13.png]]|(% style="width:756px" %)Convert the record files generated by LEVI or PI to the specified format.
115 |(% style="width:200px" %)HMIProjectReportTool|(% style="width:118px" %)[[image:工具箱 14.png]]|(% style="width:756px" %)Analyze and generate HMI engineering report.
116
117 **✎Note:**  HMI supports the use of USB and Ethernet to download/upload project and record files.
118
119 = Getting Started =
120
121 This chapter provides a quick and precise introduction of PIStudio.
122
123 It does not contain a comprehensive list of all functions, but it only takes 6 simple steps to create a new project.
124
125 (% class="table-bordered" %)
126 |=(% style="width: 243px;" %)Operation |=(% style="width: 832px;" %)Description
127 |(% style="width:243px" %)(((
128 1. [[Create a new project>>||anchor="HCreatenewproject"]]
129 )))|(% style="width:832px" %)(((
130 [[image:新建工程 4.png]]
131
132 Click the "New Project" in the upper left corner of the software to create a new project. You could click [["Screen">>https://docs.we-con.com.cn/bin/view/PIStudio/04.Software%20Menu/#HScreen]] to create a new screen. See the [["Screen Style (only for ig series)">>https://docs.we-con.com.cn/bin/view/PIStudio/04.Software%20Menu/#HScreenstyle28Onlyigseries29]] for details.
133 )))
134 |(% style="width:243px" %)(((
135 (% start="2" %)
136 1. [[Project Settings>>doc:PIStudio.05\.Project Settings.WebHome]]
137 )))|(% style="width:832px" %)(((
138 [[image:工程配置 1.png]]
139
140 Click [["Communication">>https://docs.we-con.com.cn/bin/view/PIStudio/05.Project%20Settings/#HCommunication]] and [["Project settngs">>doc:PIStudio.05\.Project Settings.WebHome]] to set communication protocol and port parameter.
141 )))
142 |(% style="width:243px" %)(((
143 (% start="3" %)
144 1. Project design
145 )))|(% style="width:832px" %)Create sreens and place the objects you need. You could draw your own project through [["draw">>https://docs.we-con.com.cn/bin/view/PIStudio/06.Objects/#HDraw]], import the required pictures and vector maps using [["Shape">>https://docs.we-con.com.cn/bin/view/PIStudio/7.Library/#HShape]] library, and enrich the project as much as possible by using the diversified objects .
146 |(% style="width:243px" %)(((
147 (% start="4" %)
148 1. Compile and save
149 )))|(% style="width:832px" %)(((
150 You need to [["compile">>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HCompileProject]] every project before downloading to it HMI.
151
152 When uploading a project from the HMI to the PC, you need [["Decompile">>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HDecompile]].
153 )))
154 |(% style="width:243px" %)(((
155 (% start="5" %)
156 1. [[Simulitaion>>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HSimulation]]
157 )))|(% style="width:832px" %)(((
158 PIStudio provides two simulation modes: offline simulation and online simulation.
159
160 1. **Offline: **Simulate the operation of the HMI and PL on the computer. There is no need to connect with PLC.
161 1. **Online: **Simulate the operation of the HMI and PL on the computer, but require the PC to be connected to the PLC and set the correct communication parameters. There is a 30-minute time limit for using online simulations.
162 )))
163 |(% style="width:243px" %)(((
164 (% start="6" %)
165 1. [[Download project>>https://docs.we-con.com.cn/bin/view/PIStudio/14.Tools/#HDownloadproject]]
166 )))|(% style="width:832px" %)Download is the last step. After completing the download, the HMI can run the designed project, and the project downloaded to the HMI can also be uploaded to the PC.
167
168 == Create new project ==
169
170 The following steps will show how to start PIStudio and create a project.
171
172 **Requirement**
173
174 PIStudio programming software is installed.
175
176 **OperatingProcedure**
177
178 1. Start PIStudio software by click icon, or from Start Menu.
179 1. Find "PIStudio" folder.
180 1. Click "PIStudio" icon to start software.
181
182 (% style="text-align:center" %)
183 [[image:新建工程 1.gif||class="img-thumbnail"]]
184
185 (% start="4" %)
186 1. Click "New project".
187
188 (% style="text-align:center" %)
189 [[image:新建工程 2.png||class="img-thumbnail"]]
190
191 (% style="text-align:center" %)
192 [[image:新建工程 4.png||class="img-thumbnail"]]
193
194 (% start="5" %)
195 1. Configure project name, project path.
196 1. Select HMI model and communication protocol.
197 1. Click "OK" to save setting.
198
199 (% style="text-align:center" %)
200 [[image:新建工程 3.gif||class="img-thumbnail"]]
201
202 **Result**
203
204 * User could find a folder named HMIProject on the desktop.
205 * In the folder user could find a file with a suffix named ".pi". Double click the file to open the project.
206
207 == Add screen ==
208
209 The following steps will show how to create and rename screens in PIStudio.
210
211 New screens, which are still blank, could be created using the "Common object". User could choose different objects to design screen according to project's requirements.
212
213 **Requirement**
214
215 The "Quick_Start" project is open.
216
217 **Steps:**
218
219 1. Create a new process screen: Clicking "New" will appear "New screen" setting.
220
221 (% style="text-align:center" %)
222 [[image:新建画面 1.gif||class="img-thumbnail"]]
223
224 (% start="2" %)
225 1. Set screen parameter in "New Screen", such as screen number, screen name, background type.
226
227 (% style="text-align:center" %)
228 [[image:新建画面 2.gif||class="img-thumbnail"]]
229
230 (% start="3" %)
231 1. After making a new screen, user could insert objects in screen. For example, button and trend.
232 1. Add button object in screen.
233 1. Set button object parameters, such as read address, mode etc.
234
235 (% style="text-align:center" %)
236 [[image:新建画面 3.gif||class="img-thumbnail"]]
237
238 (% start="6" %)
239 1. Add "Trend Chart" from "Chart".
240
241 (% style="text-align:center" %)
242 [[image:新建画面 4.gif||class="img-thumbnail"]]
243
244 (% start="7" %)
245 1. And "Function key" for screens switch.
246
247 **Result**
248
249 Do a project screen with bit button, one chart display object, and one Function key for switching screen
250
251 == Project size limits ==
252
253 * 3000 series limits the project file size to 25M
254 * 3070i series limit the project file size to 25M
255 * 3070ie series limit the project file size to 22M
256 * 3070ig series limit the project file size to 25M
257 * 8000&9000 series limit the project file size to 165M
258
259 = Create communication with WECON PLC =
260
261 == HMI settings ==
262
263 **Download PIStudio Software**
264
265 Please visit the link below to get the latest version PIstudio for HMI programming:
266
267 * [[Download>>https://ftp.we-con.com.cn/Download/Software/PIStudio20211210.zip]] or [[Download>>https://drive.google.com/open?id=1Im7YS2rtnRI7yFIHmqHDVPBUyWahqSXN]]
268
269 **Create a new HMI project connect with PLC**
270
271 Check the link below for the video to show you how to get started with a new project
272
273 * [[Video>>https://drive.google.com/open?id=0B0j9uum1UPXbMENtRlF2VzdQdHc]]
274
275 For more videos, please visit our Youtube channel: [[http:~~/~~/www.youtube.com/user/Wecon2004/videos>>url:http://www.youtube.com/user/Wecon2004/videos]]
276
277 **General**
278
279 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.
280
281 **Protocol settings**
282
283 The communication between two devices requires a protocol. The following contents show the steps of protocol settings.
284
285 Please select the protocol, when creating a new project.
286
287 1. Select the COM port for communication;
288 1. PLC type: It means PLC brand, like WECON;
289 1. PLC model: It shows the model of PLC, such as LX3V;
290
291 (% style="text-align:center" %)
292 [[image:PIStudio.12\.PLC protocols.WebHome@image-20220819093729-1.png]]
293
294 If you want to change the protocol for existing project, please click [Program] → [Communication] to open the [Communication] windows, shown as the following figure.
295
296 (% style="text-align:center" %)
297 [[image:image-20220819093729-2.png]]
298
299
300 The steps to change the protocol for project are as follows.
301
302 1. Click [Setting] to open the [Communication device] window;
303 1. Select communication port, such as COM1;
304 1. Select Serial port for communication, such as RS422;
305 1. Select device type (device brand), such as WECON;
306 1. Select the protocol for communication, such as WECON LX3V;
307
308 (% style="text-align:center" %)
309 [[image:image-20220819093729-3.png]]
310
311 **Parameter settings**
312
313 The parameters settings are in [Communication] window, shown as following below.
314
315 1. Click [Setting] to open the [COM port setting] window;
316 1. Set the parameters such as [connection], [Baud rate] and so on;
317
318 (% style="text-align:center" %)
319 [[image:image-20220819093729-4.png||height="636" width="818"]]
320
321 (% start="3" %)
322 1. Click [Setting] to open [Timeout] setting window, you could set the parameters according your requirements, or just use the default value.
323
324 (% style="text-align:center" %)
325 [[image:image-20220819093729-5.png]]
326
327 **Set PLC address in HMI screen**
328
329 1. Place the objects to HMI screen;
330 1. Double-click the object to open the setting window;
331 1. Click “Edit” to open the address setting windows;
332 1. Connection: select the serial port in HMI;
333 1. Address type: All the PLC address types will be display in this list, such as M;
334 1. Address No.: Please input the number of this address, such as 0;
335
336 [[image:image-20220819093729-6.jpeg]]
337
338 **Communication cable**
339
340 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.
341
342 (% style="text-align:center" %)
343 [[image:image-20220819093729-7.png]]
344
345 **HMI communication PLC use Modbus **
346
347 * HMI setting: [[https:~~/~~/docs.we-con.com.cn/bin/view/PIStudio/12.PLC%20protocols/>>https://docs.we-con.com.cn/bin/view/PIStudio/12.PLC%20protocols/]]
348 * PLC setting: [[https:~~/~~/docs.we-con.com.cn/bin/view/PLC%20Editor/8.1.%09Communication/>>https://docs.we-con.com.cn/bin/view/PLC%20Editor/8.1.%09Communication/]]
349
350 == PLC settings ==
351
352 **Download PLC Software**
353
354 Please visit below link to get the latest version PLC Editor for HMI programming
355
356 * LX3V:[[Download link>>doc:PLC Editor.10 Hardware .Software.WebHome]]
357 * LX5V:[[Download link>>doc:PLC Editor2.Download.03 Software.WebHome]]
358
359 **Start a new PLC project**
360
361 Start a new PLC project by clicking “New” on the left top corner of screen, select the PLC mode from the drop-down list.
362
363 (% style="text-align:center" %)
364 [[image:PIStudio.12\.PLC protocols.WebHome@image-20220819101447-3.jpeg]]
365
366
367
368 **Add a new instruction **
369
370 Double click on the ladder, select the ladder symbol (instruction) from the drop-down list, then enter the address for this symbol.
371
372 (% style="text-align:center" %)
373 [[image:image-20220819105530-1.png]]
374
375 You could also select the ladder symbol from the menu bar directly.
376
377 [[image:image-20220819093729-11.png]]
378
379 [[image:image-20220819093729-12.png]]
380
381 **Add comment to PLC program**
382
383 (% style="text-align:center" %)
384 [[image:image-20220819105630-3.png]]
385
386 **Add the statement to PLC program**
387
388 Add the statement by single click on “Statement”, when finished, single click on “Statement” again to go back to Ladder edit.
389
390 (% style="text-align:center" %)
391 [[image:image-20220819105644-4.png]]
392
393 **Compile **
394
395 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.
396
397 [[image:image-20220819093729-15.png]]
398
399 **Download setting **
400
401 Click on “Transfer Setup” to select download mode.
402
403 [[image:image-20220820150853-1.png]]**Download PLC program to PLC**
404
405 Quick select the parameters and main program of PLC program, then download to PLC, “Yes”-”Yes”-”OK”
406
407 [[image:image-20220819093729-17.png]]
408
409 **Upload PLC program from PLC**
410
411 Read the PLC program from PLC to computer.
412
413 [[image:image-20220819093729-18.png]]
414
415 **Device monitor**
416
417 Monitor the value of certain address in PLC, double click “Current value” to change the value in this address.
418
419 [[image:image-20220819093730-19.png]]
420
421 **Online monitor**
422
423 Monitor the each address in PLC by online monitor. Changing the state or value in PLC is also allowd.
424
425 [[image:image-20220819093730-20.png]]
426
427 **Monitor edit**
428
429 In this mode, you could edit the PLC program during PLC is running. 
430
431
432 (% style="text-align:center" %)
433 [[image:image-20220819105928-9.png||height="229" width="669"]]