Wiki source code of 06 Data Tool

Version 31.1 by Jim on 2023/08/11 09:32

Hide last authors
Leo Wei 1.1 1 (% class="wikigeneratedid" id="H8BasicFunction" %)
Stone Wu 3.2 2 This chapter provides information about basic functions and configuration in PIStudio.
Leo Wei 1.1 3
Leo Wei 6.1 4 = **Alarm** =
Leo Wei 1.1 5
Stone Wu 19.3 6 == Bit alarm ==
Leo Wei 1.1 7
Stone Wu 19.3 8 Click "Project"→"Bit Alarm", it is displayed as the following figure.
Leo Wei 1.1 9
10 (% style="text-align:center" %)
11 [[image:位报警 1.png||data-xwiki-image-style-alignment="center" class="img-thumbnail"]]
12
Stone Wu 19.3 13 **Group No.: **Group number of Bit alarm. The name is unique and cannot be duplicated.
Leo Wei 1.1 14
Stone Wu 19.3 15 **Bit Address: **Bit address of alarm monitoring
Leo Wei 1.1 16
Stone Wu 19.3 17 * **Record bit alarm by default:**  Whether to record the alarm history data of bit alarm, if checked, it will be saved in the designated storage location.
18 * **Not save alarm OFF:** If checked, after the alarm is dismissed, the corresponding alarm records will be deleted from the log file.
Leo Wei 1.1 19
Stone Wu 19.3 20 **Upload to Cloud: **The data upload by "bit alarm" is stored in the Cloud and it is alarm data. (Only ig series and 8000/9000 series with -R after system upgrade are supported)
Leo Wei 1.1 21
Jim 31.1 22 (% class="box infomessage" %)
23 (((
Hunter 12.1 24 **✎Note:**
25
Hunter 13.1 26 * After enable the Cloud and check the box of Upload to Cloud, the communication port settings of the address in the imported Bit Alarm record configuration must be the same as the communication port settings of the current project, otherwise it cannot be used normally.
27 * The number of Alarm records upload to Cloud shall not exceed the limit value, or the sum of the imported alarm records and the number of existing alarm records shall not exceed the limit value. the specific limitation as following table:
Hunter 12.1 28
Karen 30.1 29 (% class="table-bordered" style="margin-left:auto; margin-right:auto; width:358px" %)
Hunter 12.1 30 |=(% style="width: 79px;" %)Series|=(% style="width: 276px;" %)Number of Alarm upload to Cloud
31 |(% style="width:79px" %)8000-R|(% style="text-align:center; width:276px" %)200
32 |(% style="width:79px" %)9000-R|(% style="text-align:center; width:276px" %)200
33 |(% style="width:79px" %)3000ig|(% style="text-align:center; width:276px" %)20
34 |(% style="width:79px" %)8000ig|(% style="text-align:center; width:276px" %)200
Jim 31.1 35 )))
Hunter 12.1 36
Stone Wu 19.3 37 **Alarm Condition:** It sets alarm trigger condition, there are two types: alarm when ON and alarm when OFF.
Leo Wei 1.1 38
Stone Wu 19.3 39 **Alert: **It is used to mark whether the alarm has occurred. if an alarm occurs, the address of "control bit" will be written to 1. If "clear alert when alarm OFF" is checked, the address of "control bit" will be written to 0.
Leo Wei 1.1 40
Stone Wu 19.3 41 **Beep when alarm ON: **The beep works when the alarm is triggered. If "beep once" is checked, bit address alarm only beep once and stop.
Leo Wei 1.1 42
Stone Wu 19.3 43 **Content: **It is used for setting alarm content (command).
Leo Wei 1.1 44
Stone Wu 19.3 45 **Alarm Screen: **Pop-up alarm screen (it need to be sub-screen);
Leo Wei 1.1 46
Stone Wu 19.3 47 * **Position: **The location of the screen alarm display.
48 * **Pop-up Interval: **The time of reopen the alarm screen when alarm screen closed.
49 * **Pop-up once: **Pop up alarm screen once, and the screen would not pop up again
50 * **Close window when alarm off: **Automatically close the alarm screen when alarm off.
Leo Wei 1.1 51
52 **✎Note:**
53
Stone Wu 3.2 54 * If the "cloud" function is enabled and "upload to cloud" is checked, the communication port of the address in the configuration of the imported bit alarm record must be the same as that of the current project; otherwise, it cannot be used normally.
Leo Wei 1.1 55 * The number of alarm configuration points reported to the cloud cannot exceed 20, or the sum of imported alarm records and the current alarm records cannot exceed 20. If it exceeds, please reconfigure.
56
57 **Operating Procedures of Adding One Alarm**
58
Stone Wu 19.3 59 * Click "Project"→"Bit Alarm" as below shows.
Leo Wei 1.1 60
61 (% style="text-align:center" %)
62 [[image:8.Basic Function_html_5f8da20315334bac.png||data-xwiki-image-style-alignment="center" height="144" width="539" class="img-thumbnail"]]
63
Stone Wu 19.3 64 * Click "Add" button to open "Bit Alarm" setting window.
Leo Wei 1.1 65
66 (% style="text-align:center" %)
67 [[image:8.Basic Function_html_94a019683b506e15.png||data-xwiki-image-style-alignment="center" height="307" width="554" class="img-thumbnail"]]
68
Stone Wu 19.3 69 * Set "Bit Address".
70 * Set "Alarm Condition".
71 * Set "Content".
72 * Other settings can be set according to the actual situation".
73 * Click "OK" button to complete settings.
Leo Wei 1.1 74
Stone Wu 19.3 75 == Word alarm ==
Leo Wei 1.1 76
77 Word alarm is to monitor the word address of a device. If the data meets the set conditions, an alarm will be generated.
78
Stone Wu 19.3 79 Click "Project"→"Word alarm", it is displayed as the following figure.
Leo Wei 1.1 80
81 (% style="text-align:center" %)
82 [[image:字报警 1.png||class="img-thumbnail"]]
83
Stone Wu 19.3 84 **Alarm Name:** You can set alarm name for it. Alarm Name can only consist of (0~~9), (a~~z), (A~~Z), ('_'), (' ') and other non-English characters.
Leo Wei 1.1 85
Stone Wu 19.3 86 **Alarm Address: **It is used for setting word address for word alarm, such as HDW0.
Leo Wei 1.1 87
Stone Wu 19.3 88 **Data Format: **16-bit unsigned decimal, 16-bit signed decimal, 16-bit BCD, 32-bit unsigned decimal, 32-bit signed decimal, 32-bit BCD, 32-bit float.
Leo Wei 1.1 89
Stone Wu 19.3 90 **Group No.: **Group number of word alarm. The name is unique and cannot be duplicated.
Leo Wei 1.1 91
Stone Wu 19.3 92 **Upload to Cloud: **The data upload by "word alarm" is stored in the Cloud and it is alarm data. (Only ig series and 8000/9000 series with -R after system upgrade are supported)
Leo Wei 1.1 93
94 **✎Note:**
95
Stone Wu 3.3 96 * If the "cloud" function is enabled and "upload to cloud" is checked, the communication port of the address in the configuration of the imported word alarm record must be the same as that of the current project; otherwise, it cannot be used normally.
Leo Wei 1.1 97 * The number of alarm configuration points reported to the cloud cannot exceed 20, or the sum of imported alarm records and the current alarm records cannot exceed 20. If it exceeds, please reconfigure.
98
Hunter 13.1 99 (% style="margin-left:auto; margin-right:auto; width:358px" %)
100 |=(% style="width: 79px;" %)Series|=(% style="width: 276px;" %)Number of Alarm upload to Cloud
101 |(% style="width:79px" %)8000-R|(% style="text-align:center; width:276px" %)200
102 |(% style="width:79px" %)9000-R|(% style="text-align:center; width:276px" %)200
103 |(% style="width:79px" %)3000ig|(% style="text-align:center; width:276px" %)20
104 |(% style="width:79px" %)8000ig|(% style="text-align:center; width:276px" %)200
105
Stone Wu 19.3 106 **Record alarm:**  Whether to record the alarm history data of word alarm, if checked, it will be saved in the designated storage location.
Leo Wei 1.1 107
Stone Wu 19.3 108 **Not save alarm OFF:** If checked, after the alarm is dismissed, the corresponding alarm records will be deleted from the log file.
Leo Wei 1.1 109
Stone Wu 19.3 110 **Alarm Condition**: Alarm is triggered when designated address meets the alarm condition, it provides four conditions;
Leo Wei 1.1 111
112 1. **High alarm:** Alarm is triggered when it reaches high limit. It can be a constant or a variable
113 1. **Low alarm:** Alarm is triggered when it reaches low limit. It can be a constant or a variable
114 1. **Range alarm:** Alarm is triggered when it exceeds the range. It can be a constant or a variable
115 1. **Equivalent alarm: **Alarm is triggered when the value equals to the given data. It can be a constant or a variable
116
Stone Wu 19.3 117 **Alarm Info: **It is used for setting alarm content (command);
Leo Wei 1.1 118
Stone Wu 19.3 119 **Alert: **It is used to mark whether the alarm has occurred. if an alarm occurs, the address of "control bit" will be written to 1. If "clear alert when alarm OFF" is checked, the address of "control bit" will be written to 0.
Leo Wei 1.1 120
Stone Wu 19.3 121 **Alarm Screen: **Pop-up alarm screen (it need to be sub-screen);
Leo Wei 1.1 122
123 1. **Position: **The location of the screen alarm display.
124 1. **Pop-up Interval: **The time of reopen the alarm screen when alarm screen closed.
125 1. **Pop-up once: **Pop up alarm screen once.
126 1. **Close window when alarm off: **Automatically close the alarm screen when alarm off.
127
Stone Wu 19.3 128 **Beep when alarm ON: **beep works when the alarm is triggered, in the default mode, the beep works until the alarm is released.
Leo Wei 1.1 129
Stone Wu 19.3 130 **Beep once:** Beep works once, when alarm is triggered.
Leo Wei 1.1 131
Stone Wu 19.3 132 **Alarm List**
Leo Wei 1.1 133
134 It displays all the word alarm lists; it will show the alarm information;
135
136 **Operating Procedures of Adding One Alarm**
137
Stone Wu 19.3 138 * Click "Project"→ "Word Alarm" as below shows.
Leo Wei 1.1 139
140 (% style="text-align:center" %)
Joey 2.1 141 [[image:8.Basic Function_html_1b59522c984cd7c2.png||height="144" width="492" class="img-thumbnail"]]
Leo Wei 1.1 142
Stone Wu 19.3 143 * Click "AddClick" button to open "Word Alarm" setting window.
Leo Wei 1.1 144
145 (% style="text-align:center" %)
Joey 2.1 146 [[image:8.Basic Function_html_942107c81fc6901c.png||height="307" width="554" class="img-thumbnail"]]
Leo Wei 1.1 147
Stone Wu 19.3 148 * Set Basic information of word alarm.
149 * Set "Content".
150 * Other settings can be set according to the actual situation.
151 * Click "OK" button to complete settings.
Leo Wei 1.1 152
153 **HMI Alarm Demo Download Link**
154
155 [[https:~~/~~/drive.google.com/open?id=1Llq03CMISM_1mMIfU308hxFbs4rGdQGP>>url:https://drive.google.com/open?id=1Llq03CMISM_1mMIfU308hxFbs4rGdQGP]]
156
Stone Wu 19.3 157 = **Recipe** =
Leo Wei 1.1 158
159 Traditional recipe is composed of multiple groups of information with the same structure and different data. Due to the similarity of these information, you could edit them into a set of recipes to facilitate the transfer of data between HMI and PLC.
160
161 Data operation
162
163 1. **Read:** Read a group of data from the recipe file and assign the group of data to the set address.
164 1. **Write: **Read a group of data from the set address and assign the group of data to the corresponding recipe file.
165
166 PI Series HMI has Recipe function, Recipe function keeps data in the HMI, used to download the data from HMI to designated device addresses, or upload the data from device addresses to HMI.
167
168 The maximum number of group in recipe is 1000, and the maximum number of member in each group is 1500.
169
Stone Wu 3.3 170 Recipe could store the data in USB flash disk and SD card and view the recipe data by object "Recipe display". It has two mode: simple mode and advanced mode.
Leo Wei 1.1 171
172 1. **Simple: **Only support the data operation of one recipe file, including read and write.
173 1. **Advanced:** Support the data operation of multiple recipe files, including read, write, insert and index. View and select recipe file by object "File list".
174
175 Recipe function settings will be display in "[[Recipe display>>http://docs.we-con.com.cn/wiki/pistudio/view/Helps/06.Objects/#HRecipedisplay]]" object.
176
177 **Description**
178
179 (% style="text-align:center" %)
180 [[image:8-1Recipe.png]]
181
Stone Wu 19.3 182 **Basic**
Leo Wei 1.1 183
Stone Wu 19.3 184 * **Recipe Folder:** Give Recipe folder name (It can be used, when setting Recipe display object);
185 ** **✎Note: **Recipe Folder name can only consist of (0~~9), (a~~z), (A~~Z), ('_'), (' ') and other non-English characters;
Stone Wu 21.4 186 * **Group: **Set the recipe group number, the number of elements, the data format. The data format has 8 modes: 16-bit signed decimal, 16-bit unsigned decimal, 16-bit BCD, 32-bit signed decimal, 32-bit unsigned decimal, 16-bit BCD, 32-bit floating point number, 64-bit (double-precision) floating-point number, string, and the choice of data integer and decimal places.
Stone Wu 19.3 187 * **Elements:** It sets members' initial number of each group;
188 * **Data Format:** There are some formats can be supported in Recipe, like 16-bit BCD, 16-bit signed, 16-bit unsigned, 32-bit BCD, 32-bit signed, 32-bit unsigned, 32-bit floating and string. If each member requires different formats, please set it one by one in form;
189 * **Decimal: **It sets integer and scale digits;
Leo Wei 1.1 190
Stone Wu 21.4 191 **Mode Selection: **Select Simple or Advanced mode. Recipe file is divided into simple mode and advanced mode. Only in advanced mode can exist multiple recipe files used at the same time. (used wiht file list onject), Simple mode can only support a recipe file; Aadvanced mode can insert group information and reordered.
Leo Wei 1.1 192
Stone Wu 21.4 193 Function address: all operations are done through function addresses, different operating value is as follows:
Leo Wei 1.1 194
Stone Wu 21.4 195 * = 0: no operation;
196 * = 1: trigger read data;
197 * = 2: new trigger or update (If there is group number, it updates.)
198 * = 4: insert (only valid in advanced mode)
199 * = 8: delete (Delete according to the writing group number. If write and read address are consistent, refer to the reading group number);
200 * = 16: delete and sorted ((Delete according to the writing group number. If write and read address are consistent, refer to the reading group number)
201 * = 64: import CSV recipe file.
Leo Wei 1.1 202
Stone Wu 19.3 203 **Use Multiple File**
Leo Wei 1.1 204
205 Check it to use more than one recipe file in HMI, but this option only valid in [Advanced mode];
206
Stone Wu 19.3 207 **Select language**
Leo Wei 1.1 208
209 The text in HMI can be in 8 languages, user can set language in here;
210
Stone Wu 19.3 211 **Address**
Leo Wei 1.1 212
213 1. **Group:** This address is for selecting group number;
214 1. **Start: **This is starting address is for reading and writing in recipe, PIStudio will automatically assigns addresses for each members;
215 1. **File(16 words): **This address only available when enable the Use Multiple File. This setting address is for input the recipe file's filename.
216
Stone Wu 19.3 217 **Use Index**
Leo Wei 1.1 218
219 If the value from Group address is changed, Read address will display the new data according to new group number immediately. Relatively, if the data of write address is changed, the corresponding group from table is also changed.
220
Stone Wu 19.3 221 **Query by Element**
Leo Wei 1.1 222
223 Enable it for querying group by specify element, select a primary key from all the elements, except the group number. This element value from all groups must be unique if want to set as primary key;
224
Stone Wu 19.3 225 (% class="box infomessage" %)
226 (((
Leo Wei 1.1 227 **✎Note: **When this option is enabled, Group address will be invalid.
Stone Wu 19.3 228 )))
Leo Wei 1.1 229
Stone Wu 19.3 230 **Use Independent Write Address**
Leo Wei 1.1 231
232 To separate Recipe read address and write address.
233
Stone Wu 19.3 234 **Use Insert**
Leo Wei 1.1 235
236 It inserts data into the specified group, if the specified group already exists, it would not cover the original data, while it will move the original group next one after it.
237
Stone Wu 19.3 238 **Discontinuous Address**
Leo Wei 1.1 239
240 Whether enable the non-consecutive recipe operation addresses or not. If disabled, the recipe address will recover as the continuous addresses.
241
Stone Wu 19.3 242 (% class="box infomessage" %)
243 (((
Leo Wei 1.1 244 **✎Note: **This function only supported in HMI+, i series, ie series, ig series.
Stone Wu 19.3 245 )))
Leo Wei 1.1 246
Stone Wu 23.1 247
Stone Wu 26.1 248 **description of Adcanced mode**
Stone Wu 23.1 249
Stone Wu 26.1 250 According to the recipe configuration information in Figure 2 above. The function address is HDW70, and each function configuration corresponds to the group number address, recipe element address and recipe file name address. The recipe information configured in figure 2 can be displayed in the table in figure 3 with the "Record Display" object.
251
252 [[image:image-20220806111333-1.jpeg]]
253
254 **Read recipe**: Input 1 to the file name, when the group number addresses HDW100=1 and HDW70=1 (read), the element data of the first group (ID=1) is written to the recipe address from the recipe file. As shown in Figure 3 above: HDW105=1, HHDW106=2, HDW107=3, HDW108=4, HDW109=5.
255
256 **Write recipe**: Input 1 to the file name, when the group number addresses HDW101=4 and HDW70=2 (write), the data will be read from the recipe address and written to the corresponding group of the recipe file. As shown in figure 3 above: HDW110=20, HHDW111=21, HDW112=22, HDW113=23, HDW114=24. Write the data of this set to the elements of ID=4 in the recipe table (if there is no data of Group 4 in the recipe file, a new set of data will be added; If there is data of Group 4 in the original recipe, the original data will be overwritten and the latest data will be displayed in the recipe file).
257
258 **Index recipe**: When the file name is input 1, when the group number address HDW102=3, the data of ID=3 (Group 3) in the recipe file will be directly displayed in the component address of the index, that is, HDW115=11, HHDW116=12, HDW117=13, HDW118=14 and HDW119=15. If the data of the index component address is modified, the modified data will be automatically filled into the table of the recipe file, that is, the data of the recipe file will be automatically updated after the data is modified.
259
260 [[image:image-20220806111355-2.jpeg]]
261
262 **Insert recipe**: Input 1 to the file name, when the group number addresses HDW103=3 and HDW70=4 (insert), the data of the 3rd group will be inserted, but the data of the third group already exists in the original recipe file (see Figure 3 above), then the original data will be moved down by one group, that is, the original 3rd group will become the 4th group, and so on, and HDW120=16, HHDW121=17, HDW122=18, HDW123=19 and HDW124=20 will be written into the new 3rd group of the recipe file at the same time. The results are shown in Figure 4 above.
263
264 When the group number address HDW101=2 (**The delete function only works on the group number of the write function**), HDW70=8 (delete), the data in the recipe file with ID=2 (Group 2) will be deleted.
265
266 When the group number address HDW101=5 (**The delete function only works on the group number of the write function**), HDW70=16 (delete and sort), the data of ID=5 (Group 5) in the recipe file will be deleted, and the original ID=6 (Group 6) data will be reordered to become the new Group 5 data, the original ID=7 (Group 7) data will be reordered to become the new Group 6 data, and so on.
267
Stone Wu 21.2 268 **Recipe Demo Download Link: **[[Download>>url:https://drive.google.com/open?id=1Cjbq_tW-NIirHFBpxt47g7IKvoYaWqUR]]
269
Stone Wu 24.1 270 == Calling CSV recipe file ==
271
Stone Wu 24.2 272 **Overview**
Stone Wu 24.1 273
274 The recipe files used by the regular series HMI are in CSV format, and the recipe files used by the current series HMI are in database format. In order to be compatible with CSV format recipe files on the current series of HMI, please follow the instruction when using it.
275
Stone Wu 24.2 276 **Operations**
Stone Wu 24.1 277
Stone Wu 24.2 278 Create the recipe as it is configured. The default recipe file name is “1. rcp2”, which is placed in folder 123, as shown in the following figure.
Stone Wu 24.1 279
Stone Wu 24.2 280 (% style="text-align:center" %)
281 (((
282 (% style="display:inline-block" %)
283 [[Figure 1>>image:image-20220806100702-2.jpeg]]
284 )))
Stone Wu 24.1 285
286 2. Place a "Recipe Record Display" object and a "File List" object on the project screen for viewing the recipe files in the folder 123, and the address configuration in the object should be consistent with the above configuration.
287
Stone Wu 24.2 288 (% style="text-align:center" %)
289 [[image:image-20220806100753-3.jpeg]]
Stone Wu 24.1 290
Stone Wu 24.2 291 By configuring the address in the table and combining the recipe function, the CSV recipe files of regular series are imported.
Stone Wu 24.1 292
Stone Wu 24.2 293 |=Address range|=Object type|=Address function
Stone Wu 24.1 294 |HSW1050 to 1065|Text input object|Enter the CSV recipe file name to import
Stone Wu 24.2 295 |HSW1066|Numerical input object|Import CSV file type:(((
296 * = 0: Custom CSV file (all data in the file is valid)
297 * = 1: Normal recipe file for regular series HMI (the data in line 1 of the file is invalid)
298 * = 2: Special recipe file for regular series HMI (the data in line 1 and 2 and column 1 of the file are invalid)
299 )))
Stone Wu 24.1 300 |HSW1067|Numerical input object|(((
301 Where the CSV file is saved:
302
Stone Wu 24.2 303 * = 0: In the CsvFile directory of U disk
304 * = 1: In the CsvFile directory of the SD card
305
Stone Wu 24.6 306 **The path for offline simulation is: C:\ HMIEmulation\ CustomFileDir\ CsvFile**
Stone Wu 24.1 307 )))
Stone Wu 24.2 308 |HSW242|Numerical input object|Returns the results of the csv import:(((
309 * = 37: CSV file imported successfully
310 * = 38: CSV file import failed
311 )))
Stone Wu 24.1 312
Stone Wu 24.2 313 **Select CSV recipe file (take U disk as an example):**
Stone Wu 24.1 314
Stone Wu 24.3 315 Using the file list object, select the recipe file in the U disk by path, and configure the recipe file name address directly to the special address HSW1050 in the above table, which can directly detect the CSV file in the U disk; Select the recipe file in the file list, and write the selected recipe file name into the recipe file name: In HSW1050 to 1065.
Stone Wu 24.1 316
Stone Wu 24.3 317 Use the special address of the above table to configure the path of the CSV file: HSW106, configure recipe file name: HSW1050 to1065
Stone Wu 24.1 318
Stone Wu 24.3 319 Use HSW1066 address to select the corresponding CSV recipe file type.
Stone Wu 24.1 320
Stone Wu 24.3 321 * HSW1066 = 0: Import a user-defined CSV recipe file (all data in the custom CSV file must be valid);
Stone Wu 24.1 322
Stone Wu 24.3 323 (% style="text-align:center" %)
324 [[image:image-20220806101129-5.jpeg]]
Stone Wu 24.1 325
Stone Wu 24.3 326 * HSW1066=1: Import the normal recipe file of regular series HMI (the data in line 1 of the file is invalid);
Stone Wu 24.1 327
Stone Wu 24.6 328 The data in line 1 of the normal recipe file is used to define the format of the recipe and will not be imported into the recipe table as recipe information, **but you must ensure that the data in line 1 representing the elements and number of groups is correct, otherwise the CSV recipe file will fail to be imported.**
Stone Wu 24.1 329
Stone Wu 24.4 330 (% style="text-align:center" %)
331 [[image:image-20220806101520-6.jpeg]]
Stone Wu 24.1 332
Stone Wu 24.4 333 * HSW1066=2: Import the special recipe file of regular series HMI (the data in line 1, 2 and column 1 of the file are invalid);
Stone Wu 24.1 334
Stone Wu 24.6 335 In the special recipe file, line 1 is used to define the format of the recipe, line 2 is used to define the element name of the recipe, and column 1 is used to define the group name of the recipe, so lines 1, 2 and column 1 of the special recipe will not be imported into the recipe table as recipe information. **During use, ensure that the data such as the number of groups and elements representing the recipe format in the first line are correct, otherwise the import of the CSV recipe file will fail.**
Stone Wu 24.1 336
Stone Wu 24.7 337 (% style="text-align:center" %)
338 [[image:image-20220806102610-7.jpeg]]
339
Stone Wu 24.6 340 **Perform import**
Stone Wu 24.1 341
Stone Wu 24.6 342 After configuring the saving path of CSV recipe file, the name of recipe file and the type of recipe according to the above steps, the method of transferring CSV file to DB file is as follows:
Stone Wu 24.1 343
Stone Wu 24.6 344 * Configure the DB recipe file name by text input object: HDW500 = 3 (recipe file configured in Figure 1),
345 * Set the recipe function address to: HDW1000 = 64 (the function address configured in Figure 1),
346 * Transform the CSV recipe file in U disk into DB recipe file with file name “3.rcp2”.
Stone Wu 24.1 347
Stone Wu 24.6 348 **DB recipe file for storing CSV data:**
Stone Wu 24.1 349
Stone Wu 24.6 350 Simple mode: When the recipe file is set to simple mode, the file of CSV data is saved as the DB recipe file of 1. rcp2 by default.
Stone Wu 24.1 351
Stone Wu 24.6 352 Advanced mode: When the recipe is enabled in advanced mode (multi-file recipe), the imported CSV file data is saved to the file recorded at the recipe file address HDW500 (the address configured in Figure 1).
Stone Wu 24.1 353
Stone Wu 24.6 354 **Import results:**
Stone Wu 24.1 355
Stone Wu 24.6 356 * HSW242 = 37: Import succeeded;
357 * HSW242 = 38: Import failed.
Stone Wu 24.1 358
Stone Wu 24.6 359 **Precautions:**
Stone Wu 24.1 360
Stone Wu 24.7 361 * Ensure that the data format of each element in the CSV file is the same as the recipe data format set in the software (DB), and ensure that the elements of each row in the valid data area is the same as the elements set in the software (DB);
362 * When the elements of a line in CSV file is more than the elements set in the software (DB), it will prompt the import failure;
363 * When the CSV file imported into the regular series HMI is a recipe file, the data representing the recipe format (elements, number of groups, whether it is a special recipe) in line 1 must be correct, otherwise the import of CSV file will fail.
Stone Wu 24.1 364
Stone Wu 19.3 365 = (% style="color:inherit; font-family:inherit; font-size:29px" %)**Traditional recipe**(%%) =
Leo Wei 1.1 366
367 Traditional recipe is composed of multiple groups of information with the same structure and different data. Due to the similarity of these information, you could edit them into a set of recipes to facilitate the transfer of data between HMI and PLC.
368
369 Traditional recipe function is valid only when the LEVI project is converted to the PI project, and the original project uses the traditional recipe.
370
Stone Wu 19.3 371 (% class="box infomessage" %)
372 (((
Leo Wei 1.1 373 **✎Note**: Currently, only HMI+, i series, ie series, and ig series support the traditional recipe.
Stone Wu 19.3 374 )))
Leo Wei 1.1 375
Stone Wu 19.3 376 == Simple recipe mode ==
Leo Wei 1.1 377
378 Click the "Traditional Recipe" [[image:8-2TraditionalRecipe.png]] in the "Data tool" bar in the upper side of the software, and the following interface will pop up:
379
380 (% style="text-align:center" %)
381 [[image:8-3TraditionalRecipeConfigScreen.png||class="img-thumbnail"]]
382
383 **✎Note**:
384
385 * The recipe folder name can only consist of (0~~9), (a~~z), (A~~Z), ('_'), ('').
386 * The element name of the recipe cannot include following 5 special characters: " **,** " , " **|** " , " **<** " , " **>** " , " **&** " .
387
Stone Wu 19.3 388 == Recipe display ==
Leo Wei 1.1 389
Stone Wu 3.3 390 Select the file type "Traditional recipe file" in object "Recipe Display", and it is recommended to fill in the traditional recipe group number HSW1612 to the address of select line.
Leo Wei 1.1 391
Stone Wu 19.3 392 (% class="box infomessage" %)
393 (((
Hunter 18.1 394 **✎Note**: The Recipe Display can display up to 50 groups of 100 elements by default, which can be to display out of range by enabled "Address Control". After the "Address Control" is enabled, the display group number can be reached to 100. If want to display more than 100, please adjust the "Start Group" from "Address Control" to index the display group, as following shown:
Stone Wu 19.3 395 )))
Leo Wei 1.1 396
397 (% style="text-align:center" %)
398 [[image:8-4TraditionalRecipeDisplayConfigScreen.png||class="img-thumbnail"]]
399
Stone Wu 19.3 400 == Recipe transmission address ==
Leo Wei 1.1 401
402 The special addresses used in the Recipe are shown in the following table:
403
404 (% class="table-bordered" %)
405 |=Address|=Description|=Function
406 |HSW1611|Traditional Recipe transfer operation.|(((
407 ~=1: Recipe download.
408
409 ~=2: Recipe upload.
410 )))
411 |HSW1612|Traditional Recipe group number.|Traditional Recipe group number.
412 |(((
413 HSW242
414 )))|(((
415 Recipe operation result prompt:
416
417 Upload: Data is written to recipe file from address.
418
419 Download: Data is written to the address from recipe file.
420 )))|(((
421 ~=1: Recipe download, start.
422
423 ~=2: Recipe download, execution error.
424
425 ~=6: Recipe download, successful.
426
427 ~=7: Recipe upload, start.
428
429 ~=8: Recipe upload, execution error.
430
431 ~=11: Recipe group name does not exist.
432
433 ~=12: Recipe upload, successful.
434 )))
435
436 == **Recipe index** ==
437
438 The recipe index address RPW is mainly used for editing traditional recipes, and it is more convenient to modify the data and display of recipes. Only need to modify and display the data of the recipe file through "Numeric Input/Display" Object and "Word Switch".
439
440 The recipe index area (RPW)'s instruction as follows:
441
442 1. RPW~*~*~#~#~#~#, a total of six digits, the first two ~*~* represent the Recipe group number, ~#~#~#~# represents the element order number. For example, RPW010000 indicates the 1st element of the Recipe group No.1, and RPW110002 indicates the 3rd element of the Recipe group No.11.
443 1. If the indexed group number or element number does not exist, the value of RPW defaults to zero. For example, RPW110011 represents the 12th element of the Recipe group No.11. If it does not exist, the value returned by accessing RPW110011 is zero. The value written in RPW110011 will not be saved to the recipe file.
444
445 * **✎Note**: As long as RPW~*~*~#~#~#~# exists, any object "writes" to HPW~*~*~#~#~#~# will be saved to the recipe file. 
446
447 (% start="3" %)
448 1. The RPW register only supports word address access.
449 1. It can be known from the coding method of RPW~*~*~#~#~#~# that the range of RPW is from RPW000000-RPW990450, wherein the range of group number is 0-100, and the range of element is 0-450.
450
Stone Wu 19.3 451 == Recipe example ==
Leo Wei 1.1 452
453 The recipe index makes the modification and display of recipe data more convenient. Only need to modify and display the data of the recipe file through "Numeric Input/Display" Object and "Word Switch".
454
Stone Wu 19.3 455 Edit the recipe configuration, create three groups of recipes, 4 elements for per group: Red, green, blue, spraying time, as following shown:
Leo Wei 1.1 456
457 (% style="text-align:center" %)
458 [[image:8-5TraditionalRecipeCaseConfig.png]]
459
Stone Wu 19.3 460 RPW 0~~3 can display the data of group for the selected line. RPW10000~~10003, RPW20000~~20003, RPW30000~~30003 each address can display the single element. Directly modify the content of the RPW address and then modify the recipe data, as following shown:
Leo Wei 1.1 461
462 (% style="text-align:center" %)
463 [[image:8-7TraditionalRecipeCaseShowNoOpera.png]]
464
Stone Wu 19.3 465 After selecting the 2nd group, trigger the download button to download the whole group data to the corresponding element address (For this case, the data will write into HDW0~~3), or trigger the upload button to upload the content of the element address to the specified recipe group.
Leo Wei 1.1 466
467 (% style="text-align:center" %)
468 [[image:8-6TraditionalRecipeCaseShow.png]]
469
Stone Wu 19.3 470 = **Trend chart** =
Leo Wei 1.1 471
472 Trend chart function is used for displaying the real-time data in HMI as curve graph, which X axis represent as time, Y axis represent as data.
473
474 Click "Project" → "Trend chart", it will pop up the following screen. Click "Add" to creat new curve record.
475
476 (% style="text-align:center" %)
477 [[image:趋势图配置 001.png||class="img-thumbnail"]]
478
479 **Settings**
480
481 (% style="text-align:center" %)
482 [[image:趋势图设置 2.png||height="507" width="866"]]
483
484 **(1) Basic settings**
485
Stone Wu 3.4 486 1. **Curve NO.: **It is for setting curve number,
Leo Wei 1.1 487 1. **Curve Name:** It is for setting curve name. The length limitation is 31 bytes.
488 1. **Curve (1~~8):** It is for setting the number of curves. The default is 3.
489 1. **Dots of one curve: **It is for setting dots number of each curve. The default is 1000, but the maximum dots are 10,000 for all the curves.
490
491 **(2) Sample Type**
492
Stone Wu 3.4 493 1. **Sample method:** There are two types, one is Cycle sample, the other is Trigger cycle sample. If you select Trigger cycle same mode, the trigger sample address is required to edit.
Leo Wei 1.1 494 1. **Sample unit:** 100ms.
495
496 **(3) Quick Setting**
497
498 1. **Data format: **It is for setting all the curves, select the data format for all curves, and setting the reading addresses for curves. There are as follows.
499
500 (% style="text-align:center" %)
501 [[image:趋势图设置 3.png||class="img-thumbnail"]]
502
503 (% start="2" %)
Stone Wu 3.4 504 1. **Sample address: **Fill in the start address that read the device data. If the sampl address is consecutive, check "use continuous address". For example, set HDW0 as start address, curve number is 3, then the HDW0 is for Curve 1, HDW1 is for Curve2, HDW2 is for Curve 3.
Leo Wei 1.1 505
506 **(4) Curve Table:** The sample address you have set would display on it. Click the corresponding box to modify the content.
507
Stone Wu 19.3 508 (% class="box infomessage" %)
509 (((
Leo Wei 1.1 510 **✎Note: **Curve names can only consist of Chinese characters, (0~~9), (a~~z), (A~~Z), ('_') (' '), and other non-English characters.
Stone Wu 19.3 511 )))
Leo Wei 1.1 512
513 **Trend Chart Demo Download Link**
514
515 [[https:~~/~~/drive.google.com/open?id=1smnaAvSxOWC0WQK4_uvqHXWn4vUZxGJC>>url:https://drive.google.com/open?id=1smnaAvSxOWC0WQK4_uvqHXWn4vUZxGJC]]
516
Stone Wu 19.3 517 = **History XY plot** =
Leo Wei 1.1 518
519 Different from TrendChart, uses need to set history XY curve items in project. Please click "Project"-> "History XY Plot" to open the setting screen.
520
Stone Wu 21.1 521 Recipe function settings will be display in "[[History XY Plot>>path:https://docs.we-con.com.cn/bin/view/PIStudio/08.Basic%20Function/#HHistoryXYplot]]" object.
Leo Wei 1.1 522
523 (% style="text-align:center" %)
524 [[image:历史XY 2.png||class="img-thumbnail"]]
525
526 (% style="text-align:center" %)
527 [[image:历史XY 3.png||class="img-thumbnail"]]
528
529 **(1) Basic settings**
530
Stone Wu 3.4 531 1. **Curve NO.: **It is for setting curve number,
Leo Wei 1.1 532 1. **Curve Name:** It is for setting curve name. The length limitation is 31 bytes.
533 1. **Curve (1~~8):** It is for setting the number of curves. The default is 3.
534 1. **Dots of one curve: **It is for setting dots number of each curve. The default is 1000, but the maximum dots are 10,000 for all the curves.
535
536 **(2) Sample Type**
537
Stone Wu 3.4 538 1. **Sample method:** There are two types, one is Cycle sample, the other is Trigger cycle sample. If you select Trigger cycle same mode, the trigger sample address is required to edit.
Leo Wei 1.1 539 1. **Sample unit:** 100ms.
540
541 **(3) Quick Setting**
542
543 1. **Data format: **It is for setting all the curves, select the data format for all curves, and setting the reading addresses for curves. There are as follows.
544
545 (% style="text-align:center" %)
Joey 3.1 546 [[image:image-20220616145435-1.png]]
Leo Wei 1.1 547
548 (% start="2" %)
Stone Wu 3.4 549 1. **Sample address: **Fill in the start address that read the device data. If the sample address is consecutive, check "use continuous address". For example, set HDW0 as start address, curve number is 3, then the HDW0 is for Curve 1, HDW1 is for Curve2, HDW2 is for Curve 3.
Leo Wei 1.1 550
551 **(4) Curve Table:** The sample address you have set would display on it. Click the corresponding box to modify the content.
552
Stone Wu 19.3 553 (% class="box infomessage" %)
554 (((
Leo Wei 1.1 555 **✎Note: **Curve names can only consist of Chinese characters, (0~~9), (a~~z), (A~~Z), ('_') (' '), and other non-English characters.
Stone Wu 19.3 556 )))
Leo Wei 1.1 557
558 **Operating Procedure**
559
Stone Wu 19.3 560 * Click "Project" → "History XY Plot" to open the function selecting windows.
Leo Wei 1.1 561
562 (% style="text-align:center" %)
Joey 2.1 563 [[image:8.Basic Function_html_5da6ca44bd28acbe.png||height="144" width="533" class="img-thumbnail"]]
Leo Wei 1.1 564
Stone Wu 19.3 565 * Click "Add" button to open "History XY Plot” setting windows.
Leo Wei 1.1 566
567 (% style="text-align:center" %)
Joey 2.1 568 [[image:8.Basic Function_html_6345b50ea55168fa.png||height="307" width="554" class="img-thumbnail"]]
Leo Wei 1.1 569
Stone Wu 19.3 570 * Setting the function of History XY Plot.
571 * Click "OK" to save the setting.
Leo Wei 1.1 572
573 **Download Link**
574
575 [[https:~~/~~/drive.google.com/open?id=1t4_HuRmIJJ-B5ryA2kVMadD9FywKhZ4r>>url:https://drive.google.com/open?id=1t4_HuRmIJJ-B5ryA2kVMadD9FywKhZ4r]]
576
Stone Wu 19.3 577 = (% style="color:inherit; font-family:inherit; font-size:29px" %)**Data record**(%%) =
Leo Wei 1.1 578
579 The data record function is organized according to the structure below. In a project, there can be multiple record groups, each record group containing multiple channels. Different groups have different sampling times.
580
581 The topology is shown in the following figure.
582
583 (% style="text-align:center" %)
Joey 2.1 584 [[image:8.Basic Function_html_1b4bd09dafa7e049.png||height="332" width="554" class="img-thumbnail"]]
Leo Wei 1.1 585
586 The data record stored in SD card is also organized according to the above figure.
587
Stone Wu 3.5 588 The sample time and save time is consistent in the same record group. There are multiple channels in the group, When the sampling time is up, every channel would collect data to PLC register according to its own address.
Leo Wei 1.1 589
590 **Sampling interval: **The interval between two consecutive samples was recorded.
591
592 As long as the project uses the data record function and supports the large-capacity storage module, the system will sample data according to the set sampling interval and save data according to the set saving interval.
593
594 For the file storage of data, see the file size configuration during data record configuration.
595
Hunter 14.1 596 ✎**Note: **
Leo Wei 1.1 597
Stone Wu 19.3 598 After enable the Cloud and check the box of Upload to Cloud, the communication port settings of the address in the imported Data record configuration must be the same as the communication port settings of the current project, otherwise it cannot be used normally.
Hunter 14.1 599
Stone Wu 19.3 600 The number of Data records upload to Cloud shall not exceed the limit value, or the sum of the imported Data records and the number of existing alarm records shall not exceed the limit value. the specific limitation as following table:
Hunter 14.1 601
Hunter 16.1 602 (% style="margin-left:auto; margin-right:auto; width:513px" %)
603 |=(% style="width: 70px;" %)Series|=(% style="width: 442px;" %)Number of Data Record upload to Cloud
604 |(% style="width:70px" %)8000-R|(% style="text-align:center; width:442px" %)100
605 |(% style="width:70px" %)9000-R|(% style="text-align:center; width:442px" %)100
606 |(% style="width:70px" %)3000ig|(% style="text-align:center; width:442px" %)50
607 |(% style="width:70px" %)8000ig|(% style="text-align:center; width:442px" %)100
Hunter 15.1 608
Stone Wu 19.3 609 The record group name can only be composed of Chinese characters, (0~~9), (a~~z), (A~~Z), ('_'), ('') and other non-English characters.
Hunter 14.1 610
Stone Wu 19.3 611 Channel name cannot incloud following symbols: :" , ", " | ", " < ", " > ", " & ".
Hunter 14.1 612
Leo Wei 1.1 613 (% class="wikigeneratedid" id="HSettings" %)
614 **Settings**
615
616 (% style="text-align:center" %)
Joey 2.1 617 [[image:数据记录设置 1.png||height="533" width="848" class="img-thumbnail"]]
Leo Wei 1.1 618
619 **Operating Procedures**
620
621 1. Click "Project"->"Data record" as below shows.
622 1. Click "Add" button to open "Data record" setting window.
623 1. Enter group name, the default is "GroupName0"
624 1. Select "Trigger function" mode, such as "No trigger".
625 1. Set "Total channels", such as 3.
626 1. Click "Apply" button.
627 1. Set Sample cycle, such as 15.
628 1. Set "Start channel" in "Quick settings", such as 4 0.
629 1. Check group information in "Channel list" as below.
630 1. Click "Save" button to complete settings.
631
632 The figure above display the group of current project. The data record file would stored in "DataLogFile" folder, and the data of every  group would have a data file. The file suffix is in "db" format.
633
634 ✎**Note: **
635
636 * For HMI series 8000 and above, the size of a single file cannot exceed 300M and the total file capacity cannot exceed 1000M.
637 * For HMI series 3000, the size of a single file cannot exceed 4M and the total file capacity cannot exceed 10M.
638 * If the total amount exceeds the range, an alarm will be given during project compilation.
639
640 (% style="text-align:center" %)
Joey 2.1 641 [[image:数据记录设置 2.png||height="572" width="850" class="img-thumbnail"]]
Leo Wei 1.1 642
643 **(1) Group name:** Set group name, and he name should be unique.
644
645 **(2) Trigger function:** There are four modes to trigger record.
646
647 1. **No trigger: **Data will be recorded in every sample time.
648 1. **Trigger to record by sample cycle: **Data will be recorded in every same time, when trigger control bit set ON.
649 1. **Trigger to record once and reset: **Data will be recorded when trigger control bit set ON, and the bit will be reset automatically.
650 1. **Trigger to record once: **Data will be recorded when trigger control bit set ON, and the bit need to be reset manually.
Stone Wu 3.5 651 1. **Trigger address: **It is only valid when the trigger condition is selected. The monitoring cycle for trigger sampling address is 1s.
Leo Wei 1.1 652
653 **(3) Total channels (1~~100): **Set the numbers of channels. Click "apply" to view the channel lists on the right record channel.
654
655 **(4) Sampling cycle: **If you check "collect control address", the sampling interval is the value of the address. The unit is second. For example, Sample cycle=15s. It means that records data one time every 15s.
656
657 **Timing address:** It sets address to change sample time when HMI is running;
658
659 **(5) Total records:** It sets data record number in one data record file. If the data file size is beyond the current file size. The old data will be deleted, and the new data will replace the old data. Please remember to back up the old data record file.
660
661 **Abnormal value:** It sets a value, when communication fails, data record will record this value;
662
663 **(6) Upload to Cloud**: The data uploaded by Data Record is stored in the Cloud(Only ig series). The maximum number of record is 20.
664
665 **(7) Quick Settings**
666
Stone Wu 3.5 667 1. **Start Channel:** It sets the continuous addresses for channels.
668 1. **Data Format: **It sets the same data format for channels.
Leo Wei 1.1 669 1. **Number of Digits:** It sets the digits’ number for channels.
670 1. **Language Settings**: The text in HMI can be in 8 languages, user can set language in here.
671
672 **(8) Channel List**: Besides quick settings, user can set channel name, address, data format, and so on one by one according to real situation.
673
674 **✎Note:**
675
676 * After enabling the Cloud function and checking the upload to the Cloud, the communication port settings of the address in the imported Data record configuration must be the same as the communication settings of the current project, otherwise it cannot be used normally.
677 * The range of upload to the Cloud from Data record configuration must not exceed 50, or the total number of imported Data records and the number of currently existing Data records must not exceed 50. If it exceeds, it will prompt you to reconfigure, should reduce the number.
678 * The channel name can only be composed of English characters, (0~~9), (a~~z), (A~~Z), ('_'), ('').
679 * The channel name does not include these 5 special characters: ", ", "| "," <", "> "," & ".
680 * The data would be overwritten automatically if the capacity exceed the maximum capacity. For 8000/9000 series, the size of single file cannot exceed 300MB, and total capacity of data records cannot exceed 1000MB. For 3000/3000i/3000ie series, the size of single file cannot exceed 4MB, and total capacity of data records cannot exceed 10MB. If the total amount exceeds the range , an error will be prompted when the project is compiled.
681
Stone Wu 21.1 682 You could click here to jump to object "[[Data Record Display>>https://docs.we-con.com.cn/bin/view/PIStudio/06.Objects/#HDatarecorddisplay]]"
Leo Wei 1.1 683
Stone Wu 20.1 684 = **User permission** =
Leo Wei 1.1 685
686 **Introduction**
687
688 1. User permission is one of expansion function in PI Series HMI; it provides multi-level of permission for control HMI operations.
689 1. User need to set the user and group during designing project. Different groups have different permission levels for accessing. Each user should be added into the specified group; it is possible to add the same user into different groups.
690 1. Operating record: it records user operations information, the records files are saved in HMI flash; its path is [~\~\flash~\~\UserOperationLogs.db].
691 1. When it is on simulator mode, the files are saved in C disk, its path is [C:~\~\WECON\UserMgrFile\UserOperationLogs.db].
692
Stone Wu 20.1 693 (% class="box infomessage" %)
694 (((
Hunter 27.1 695 ✎**Note: **
696
697 * The user name and password must be unique.
698 * The multi language function of User permission only supported on HMI system version V2.0 or above
Stone Wu 20.1 699 )))
Leo Wei 1.1 700
Stone Wu 20.1 701 == Settings ==
Leo Wei 1.1 702
Stone Wu 20.1 703 Open PIStudio software, then operate as the following figure.
Leo Wei 1.1 704
705 (% style="text-align:center" %)
706 [[image:用户权限 1.png||class="img-thumbnail"]]
707
Hunter 27.1 708 Click on the cell from UserName and Desc, which can support the multi language.
709
710 (% style="text-align:center" %)
711 [[image:UserPermissionMultilan.png]]
712
Leo Wei 1.1 713 1. Click "User Permission" in "Data Tool" toolbar.
Stone Wu 3.5 714 1. Edit user name, click "User0" cell under "UserName", and then enter the user name, one project allows maximum 20 users.
Leo Wei 1.1 715 1. Edit password, click "User0" cell under "PassWord", and then enter the user name.
716 1. Edit description, click "User0" cell under "Desc", and then enter, description is not necessary。
717 1. Check the groups for each user, there are 11 groups beside admin.
718 1. Editing groups' description, but it is not necessary.
719 1. {{id name="OLE_LINK7"/}}{{id name="OLE_LINK6"/}}Click "Save and Exit" button to complete all settings.
720
721 ✎**Note:**
722
723 * Only a maximum of one administrator permission is allowed in a profile with one user permission. If you want to use "Funtion address" to modify the user permission, you must log in the administrator account to operate.
724 * When the configured file does not have the administrator account, a new user can be added  through "Funtion address" and set as the administrator.
725 * If you select hidden fucntion when configuring user account, the account would display as "~*~*~*~*~*~*" in the list. You only need to enter the password of the corresponding hidden user to log in.
Hunter 27.1 726 * (((
727 Adding new UserName and Desc on the HMI by special addresses in the current language of the HMI, other languages will also configure the user names and user descriptions to the current language by default, i.e. switching to other languages, the new user names and user descriptions will not change with the language.
728 )))
Leo Wei 1.1 729
Stone Wu 20.1 730 == Object permission configuration ==
Leo Wei 1.1 731
732 (% style="text-align:center" %)
733 [[image:用户权限 2.png||class="img-thumbnail"]]
734
Hunter 27.1 735 User operation logs support multi languages configuration. Click on the Log Message, the text editor of multi language will be pop up:
736
737 (% style="text-align:center" %)
738 [[image:LogMessagesMultilan.png]]
739
Stone Wu 20.1 740 **Operation Procedure of Object Permission**
Leo Wei 1.1 741
742 1. Open the object setting windows;
Stone Wu 20.1 743 1. Select "Security" windows;
744 1. Check the "User Permission";
745 1. Select "Level" to set permission level;
746 1. Enter "Log Message", it is for operation records, if it was empty, the operation for this object would be not be recorded;
Stone Wu 21.1 747 1. Select the "Access Denied Setting" mode;
Leo Wei 1.1 748
Stone Wu 3.5 749 **Log information description**
Leo Wei 1.1 750
Stone Wu 20.1 751 A combination of Chinese characters, numbers, and uppercase and lowercase letters can be entered, and the number does not exceed 63.
Leo Wei 1.1 752
Stone Wu 20.1 753 The format of insert variable:{variable address, data format}. e.g., {HDW100,UW2.1}.
754
Leo Wei 1.1 755 The data format are as follows.
756
757 (% class="table-bordered" %)
758 |=Letter|=Meaning
759 |B|Binary
760 |O|Octonary
761 |U|Unsigned decimal
762 |H|Hexadecimal
763 |b|BCD
764 |F|32-bit float
765 |S|Signed decimal
766 |C|Character
767 |W|Single word
768 |D|Double word
769
Stone Wu 20.1 770 Examples.
Leo Wei 1.1 771
772 * Unsigned decimal, BCD, 32-bit float and Signed decimal are as follows.
773
774 {HDW100,UW2.1}:  Indicates the variable address is HDW100. The data format are: unsigned decimal, single word, two integer bits, one decimal place.
775
776 * (((
777 Binary, Octonary and Hexadecimal are as follows.
778 )))
779
780 {HDW100,HD8}: Indicates the variable address is HDW100. The data format are: hexadecimal, double word, eight integer bits.
781
782 * (((
783 Character is as follows.
784 )))
785
786 {HDW100,C32}: Indicates the variable address is HDW100. The data format are: 32 characters.
787
788 When a record is generated, the contents of this variable are replaced by the value of your corresponding address.
789
790 == **Function address** ==
791
792 A user must first log in before performing an operation, and after the login is successful, the user can perform the required operation, and log out after completing the operation, making the operation permission invalid. User login, log out, modification of user password during operation and user management and other functions need to be configured.
793
794 HMI allows managing user accounts on screen. Including adding, deleting and editing the user account. HMI provide built-in screen for [Sign in] and [change password] (screen No. 1006 and 1007).
795
796 Functions and addresses are as follows.
797
798 (% class="table-bordered" %)
799 |=**Function**|=**Address**|=**Object type**|=**Address function**
800 |(% rowspan="3" %)Sign in|HUW1158~~1335|Drop down list|User name
801 |HUW1002|Character input object|Password
802 |HUW1000|Word Switch (Input 1)|OK (sign in)
803 |(% rowspan="5" %)Change password|HUW1158~~1335|Drop down list|User name
804 |HUW1002|Character input object|Old password
805 |HUW1006|Character input object|New password
806 |HUW1010|Character input object|Confirm password
807 |HUW1000|Word Switch (Input 2)|OK(change password)
808 |Sign out|HUW1000|Word Switch (Input 3) |Sign out
809 |(% rowspan="7" %)(((
810 New user ***1**
811 )))|HUW1014|Character input object|User name
812 |HUW1006|Character input object|password
813 |HUW1010|Character input object|Confirm password
814 |HUW1000|Word Switch (Input 4) |OK(add new user)
815 |HUW1336~~1345|Character input object|User description
816 |HUX1347.0|Bit switch|(((
817 ~=1: User hidden
818
819 ~=0: Visible (Defaults)
820 )))
821 |HUW1000|Word Switch (Input 8) |Save(add Hide features)
822 |(% rowspan="2" %)(((
823 Delete user ***2**
824 )))|HUW1158~~1335|Drop down list|User name
825 |HUW1000|Word Switch (Input 5)|OK (delete user)
826 |Delete Profile|HUW1000|Word Switch (Input 9)|OK(delete)
827 |Export Profile|HUW1000|Word Switch (Input 10)|OK(export)
828 |Import profile|HUW1000|Word Switch (Input 11)|OK(import)
829 |Export log file|HUW1000|Word Switch (Input 12)|OK(export)
830 |Delete log file|HUW1000|Word Switch (Input 13)|OK (delete)
831 |Current user name|HUW1349|Character object|32 Word
832 |System state information|HUW1030|Character input object|System state information
833 |(% rowspan="3" %)Permission settings|HUW1014|Character input object|User name
834 |HUW1348|Bit switch|(((
835 Set the user group:
836
837 HUX1348.0 = 1 administrator;
838
839 HUX1348.1 = 1 group 0 permission;
840
841 HUX1348.2 = 1 group 1 permission;
842
843 (Total group 0 - group 10)
844 )))
845 |HUW1000|Word Switch (Input 6)|Add user rights (set according to HUW1348)
846 |User login mode setting|HUW1382|Word Switch/Numeric input object|(((
847 0: Select a user name from the drop-down list
848
849 1: Use character input object (address HUW1014) to log in with a user name
850 )))
851
852 When the user performs a function operation, the operation result is displayed in the HUW1001.
853
854 (% class="table-bordered" %)
855 |=**Value (HUW1001)**|=**Meaning**
856 |1|Insufficient permissions.
857 |2|Username does not exist.
858 |3|Username already exists.
859 |4|Wrong username or password.
860 |5|Login successfully.
861 |6|Passwords are inconsistent in twice time.
862 |7|Password changed successfully.
863 |8|User added successfully.
864 |9|User deleted successfully.
865 |10|Maximum number of users exceeded.
866 |11|Admin user already exists.
867 |12|User permission modified successfully.
868 |13|File imported successfully.
869 |14|File imported failed.
870 |15|File exported successfully.
871 |16|File exported failed.
872 |17|Logout successfully.
873 |18|Profile deleted successfully.
874 |19|Log file deleted successfully.
875 |20|Hide settings modified successfully.
876 |21|Hide settings modified failed.
877 |22|(((
878 Password already occupied, please reset.
879
880 (For both username and password, it can not repetition)
881 )))
882
883 **✎Note:**
884
885 * *1: If there is an admin user account, then the new user can no longer add one more admin, that is, one project can only have one administrator account.
886 * *1: When adding new user, the password could not be duplicated with other users.
887 * *2: When deleting user, it is forbidden to delete the admin user.
888
889 **User Permission Demo Download**
890
891 [[https:~~/~~/drive.google.com/open?id=1qOiEDvo_1H1YqpoLDpS77dGaAFm8nrGq>>url:https://drive.google.com/open?id=1qOiEDvo_1H1YqpoLDpS77dGaAFm8nrGq]]
892
Stone Wu 20.1 893 = Message prompt =
Leo Wei 1.1 894
895 A message box is a window used to show some prompts or warnings to users. For example, the application process a task in the process of pop-up message box, suggesting that "U disk has been detected", then the customer can carry out data dump function.
896
897 (% style="text-align:center" %)
898 [[image:消息提示 2.png||class="img-thumbnail"]]
899
900 (% style="text-align:center" %)
Joey 2.1 901 [[image:8.Basic Function_html_5ce2091d6f7cd732.png||height="515" width="704" class="img-thumbnail"]]
Leo Wei 1.1 902
903 **(1) Message**
904
905 It includes system classes (u disk, SD card, and others), chart classes (alarm, data record, recipe, file list), curve classes (Trend Chart, historical XY trend Plot).
906
907 **(2) Control**
908
909 1. **Current item: **It shows selected message information.
910 1. **Use trigger address: **When the message is triggered, the trigger address would be set ON.
911
912 **For Example:**
913
Stone Wu 3.6 914 Trigger address is 011, during inserting a USB flash disk into HMI, and 011 would be set ON, once HMI recognizes USB flash disk, and display message.
Leo Wei 1.1 915
916 1. **Show message: **Check it to display message when HMI is running. It is checked by default.
917 1. **Show on web: **Check it to display message when remote access HMI screen, it is unchecked by default.
918
919 **(3) Message Content**
920
921 Each message has default content, but you could set different content according to the actual situation. And the same message could be displayed in 8 languages.
922
923 **(4) Reload Text: **It means discard changes.
924
925 **For Example**
926
927 User deletes default content or modifies default content, but he wants to give up modification back to original, just click "Reload text".
928
929 **✎Note:**
930
931 * If you do not want this prompt during the running of HMI, please uncheck "Show message".
932 * "Reload text" function would be invalid after clicking "save".
Stone Wu 3.6 933 * These 5 special characters are not supported in the header Multi language settings: ",", "|", "<", ">", "&".
Leo Wei 1.1 934
Hunter 8.1 935 = **Cloud** =
Leo Wei 1.1 936
937 **Introduction**
938
Hunter 8.1 939 Cloud function is available for following models: the ig series and 8000/9000 series with -R after system upgrade
940
Leo Wei 1.1 941 You may configure the basic settings of Cloud functions, tags, and User MQTT according to your needs. (If the device supports the Cloud function, you can use the function and configure the tags after checking the box to enable it, or upload the data to the 3rd party server.)
942
943 Click "Project"-"[[image:hh_B4H5OuNT87.png||height="29" width="30"]]Cloud" in the upper left corner of the software, as shown in the following figure.
944
945 (% style="text-align:center" %)
Joey 2.1 946 [[image:云配置1.png||height="494" width="750" class="img-thumbnail"]]
Leo Wei 1.1 947
948 **(1) Enable**
949
Hunter 9.1 950 If the HMI supports the Cloud function, check it to enable the Cloud function, and it will collect the real-time data from HMI upload to the Cloud. The number of data collection is limited, and the specific parameters are as follows:
Leo Wei 1.1 951
Hunter 9.1 952 |=Series|=Monitoring Tags|=Alarm Record|=Data Record|=OpenCloud Data
953 |8000-R|300|200|100|1000
954 |9000-R|300|200|100|1000
955 |3000ig|100|20|50|500
956 |8000ig|300|200|100|1000
Leo Wei 1.1 957
Hunter 9.1 958 For example:
Leo Wei 1.1 959
Stone Wu 20.1 960 * In 3000ig's Cloud, the monitoring tags upload to the Cloud in real time is limited to 100.
961 * For 3000ig's Alarm, the Alarm records of word alarms and bit alarms upload to Cloud is limited to 20. (See [["Alarm">>http://docs.we-con.com.cn/wiki/pistudio/view/Helps/08.Basic%20Function/#HAlarm]] for details).
962 * For 3000ig's Data record, the Data records upload to Cloud is limited to 50. (For details, please refer to [["Data Record">>http://docs.we-con.com.cn/wiki/pistudio/view/Helps/08.Basic%20Function/#HDataRecord]]).
Hunter 9.1 963
964 **(2) Server Selection**
965
Leo Wei 1.1 966 **Server**: China, ASEAN, and Europe.
967
968 **Password**:
969
970 1. If the HMI is not bound, this access password will be updated and downloaded into the HMI screen simultaneously.
971 1. If the HMI is bound, this access password in the project cannot effectively change the binding password of the device, and it can only be changed through V-NET.
972
973 **(3) Upload Selection**: 
974
975 To upload the data collected by HMI to the cloud or a to the third-party server, only one upload method can be selected.
976
977 1. **to Cloud**: All the configured tags, data records, and alarm records would be pushed to V-NET.
978 1. **to User MQTT**: All the configured tags, data records, and alarm records would be pushed to to the third-party server, and the relevant Lua function calls please refer to "[[Cloud interface>>http://docs.we-con.com.cn/wiki/pistudio/view/Helps/10.Lua/#HCloudInterface]]".
979
980 After the "to User MQTT" is checked. The tags, data records, and alarms cannot be viewed on V-NET, but the device can be bound to V-NET and remote monitoring the device screen normally.
981
982 **4) Low Data Mode setting**
983
984 1. When you check the "low Data Mod" by default on new tags, the newly added tags will be enabled in Low Data Mode by default.
985 1. The longer the refresh interval, the slower the data upload, and the more traffic data will be saved. This function is only used for the control of tags.