Wiki source code of 06 Data Tool

Version 14.1 by Joe on 2025/09/09 10:34

Show last authors
1 (% class="wikigeneratedid" %)
2 This chapter provides information about basic functions and configuration in PIStudio.
3
4 = **Alarm** =
5
6 == Bit alarm ==
7
8 Click "Project"→"Bit Alarm", it is displayed as the following figure.
9
10 (% style="text-align:center" %)
11 [[image:位报警 1.png||data-xwiki-image-style-alignment="center" class="img-thumbnail"]]
12
13 **Group No.: **Group number of Bit alarm. The name is unique and cannot be duplicated.
14
15 **Bit Address: **Bit address of alarm monitoring
16
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.
19
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)
21
22 (% class="box infomessage" %)
23 (((
24 **✎Note:**
25
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:
28
29 (% class="table-bordered" style="margin-left:auto; margin-right:auto; width:358px" %)
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
35 |(% style="width:79px" %)MD|(% style="text-align:center; width:276px" %)20
36 )))
37
38 **Alarm Condition:** It sets alarm trigger condition, there are two types: alarm when ON and alarm when OFF.
39
40 **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.
41
42 **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.
43
44 **Content: **It is used for setting alarm content (command).
45
46 **Alarm Screen: **Pop-up alarm screen (it need to be sub-screen);
47
48 * **Position: **The location of the screen alarm display.
49 * **Pop-up Interval: **The time of reopen the alarm screen when alarm screen closed.
50 * **Pop-up once: **Pop up alarm screen once, and the screen would not pop up again
51 * **Close window when alarm off: **Automatically close the alarm screen when alarm off.
52
53 (% class="box infomessage" %)
54 (((
55 **✎Note:**
56
57 * 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.
58 * 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.
59 )))
60
61 **Operating Procedures of Adding One Alarm**
62
63 * Click "Project"→"Bit Alarm" as below shows.
64
65 (% style="text-align:center" %)
66 [[image:8.Basic Function_html_5f8da20315334bac.png||data-xwiki-image-style-alignment="center" height="144" width="539" class="img-thumbnail"]]
67
68 * Click "Add" button to open "Bit Alarm" setting window.
69
70 (% style="text-align:center" %)
71 [[image:8.Basic Function_html_94a019683b506e15.png||data-xwiki-image-style-alignment="center" height="307" width="554" class="img-thumbnail"]]
72
73 * Set "Bit Address".
74 * Set "Alarm Condition".
75 * Set "Content".
76 * Other settings can be set according to the actual situation".
77 * Click "OK" button to complete settings.
78
79 == Word alarm ==
80
81 Word alarm is to monitor the word address of a device. If the data meets the set conditions, an alarm will be generated.
82
83 Click "Project"→"Word alarm", it is displayed as the following figure.
84
85 (% style="text-align:center" %)
86 [[image:字报警 1.png||class="img-thumbnail"]]
87
88 **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.
89
90 **Alarm Address: **It is used for setting word address for word alarm, such as HDW0.
91
92 **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.
93
94 **Group No.: **Group number of word alarm. The name is unique and cannot be duplicated.
95
96 **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)
97
98 (% class="box infomessage" %)
99 (((
100 **✎Note:**
101
102 * 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.
103 * 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.
104
105 (% style="margin-left:auto; margin-right:auto; width:358px" %)
106 |=(% style="width: 79px;" %)Series|=(% style="width: 276px;" %)Number of Alarm upload to Cloud
107 |(% style="width:79px" %)8000-R|(% style="text-align:center; width:276px" %)200
108 |(% style="width:79px" %)9000-R|(% style="text-align:center; width:276px" %)200
109 |(% style="width:79px" %)3000ig|(% style="text-align:center; width:276px" %)20
110 |(% style="width:79px" %)8000ig|(% style="text-align:center; width:276px" %)200
111 |(% style="width:79px" %)MD|(% style="text-align:center; width:276px" %)20
112 )))
113
114 **Record alarm:**  Whether to record the alarm history data of word alarm, if checked, it will be saved in the designated storage location.
115
116 **Not save alarm OFF:** If checked, after the alarm is dismissed, the corresponding alarm records will be deleted from the log file.
117
118 **Alarm Condition**: Alarm is triggered when designated address meets the alarm condition, it provides four conditions;
119
120 1. **High alarm:** Alarm is triggered when it reaches high limit. It can be a constant or a variable
121 1. **Low alarm:** Alarm is triggered when it reaches low limit. It can be a constant or a variable
122 1. **Range alarm:** Alarm is triggered when it exceeds the range. It can be a constant or a variable
123 1. **Equivalent alarm: **Alarm is triggered when the value equals to the given data. It can be a constant or a variable
124
125 **Alarm Info: **It is used for setting alarm content (command);
126
127 **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.
128
129 **Alarm Screen: **Pop-up alarm screen (it need to be sub-screen);
130
131 1. **Position: **The location of the screen alarm display.
132 1. **Pop-up Interval: **The time of reopen the alarm screen when alarm screen closed.
133 1. **Pop-up once: **Pop up alarm screen once.
134 1. **Close window when alarm off: **Automatically close the alarm screen when alarm off.
135
136 **Beep when alarm ON: **beep works when the alarm is triggered, in the default mode, the beep works until the alarm is released.
137
138 **Beep once:** Beep works once, when alarm is triggered.
139
140 **Alarm List**
141
142 It displays all the word alarm lists; it will show the alarm information;
143
144 **Operating Procedures of Adding One Alarm**
145
146 * Click "Project"→ "Word Alarm" as below shows.
147
148 (% style="text-align:center" %)
149 [[image:8.Basic Function_html_1b59522c984cd7c2.png||height="144" width="492" class="img-thumbnail"]]
150
151 * Click "AddClick" button to open "Word Alarm" setting window.
152
153 (% style="text-align:center" %)
154 [[image:8.Basic Function_html_942107c81fc6901c.png||height="307" width="554" class="img-thumbnail"]]
155
156 * Set Basic information of word alarm.
157 * Set "Content".
158 * Other settings can be set according to the actual situation.
159 * Click "OK" button to complete settings.
160
161 == How to show the variables in alarm info? ==
162
163 We can write some codes in the alarm info and add variables to the alarm info to make the alarm info clearer.
164
165 **{Address,Data format}**
166
167 (% style="height:10px; width:250px" %)
168 |=Letter|=Mean
169 |B|Binary
170 |O|Octal
171 |U|Unsigned
172 |H|Hex
173 |b|BCD
174 |F|32-bit floating
175 |S|Signed
176 |C|String
177 |W|Word
178 |D|Dword
179 |T|Dword string
180
181 Example:
182
183 Unsigned,BCD,32-bit floating,Signed:
184
185 {HDW100,UW2.1} ~-~-- add a variables into the alarm info:address-HDW100 ,data format-unsigned,Word,2 Integer,1 Decimal.
186
187 Binary,Octal,Hex:
188
189 {HDW100,HD8} ~-~-- add a variables into the alarm info:address-HDW100 ,data format-Hex,Dword,8 Integer.
190
191 String
192
193 {HDW100,C32} ~-~-- add a variables into the alarm info:address-HDW100 ,data format-String,32 length.
194
195
196 **HMI Alarm Demo Download Link**
197
198 [[https:~~/~~/drive.google.com/open?id=1Llq03CMISM_1mMIfU308hxFbs4rGdQGP>>url:https://drive.google.com/open?id=1Llq03CMISM_1mMIfU308hxFbs4rGdQGP]]
199
200 = **Recipe** =
201
202 == Overview of recipe ==
203
204 Recipes are composed of multiple groups of information materials with the same structure and different data. Due to the sameness of these materials, users can edit them into a group of recipes to facilitate data transfer between HMI and PLC. Therefore, this function can be utilized for information that has a similar structure to achieve efficient and correct transmission.
205
206 Data operation of recipe: Upload and download. Upload refers to reading the data of [The set address] group and writing the data of this group to the corresponding recipe file. Download refers to reading a group of data from the recipe file and assigning the group of data to [The set address].
207
208 The recipe data can be stored in external equipment, such as USB flash disk and SD card. The whole recipe data can be viewed with the [Recipe record] object.
209
210 (% class="wikigeneratedid" id="HExample" %)
211 **Example**
212
213 Taking automobile paint spraying as an example, suppose that when a newly manufactured automobile needs to be painted, it needs to spray different colors (red, green and blue) on the top, bottom and outside of the automobile, and the original colors provided are only red, green and blue. At this time, to spray different colors, it needs the appropriate ratio of these three colors, and the spraying time of different parts is different. At this time, the function of recipe needs to be executed. Check Table 1 for details.
214
215 Table 1 Example recipe
216
217 |Part|Red (Kg)|Green (Kg)|Blue (Kg)|Spraying time (Seconds)
218 |Top|2|2|1|30
219 |Bottom|3|1|2|40
220 |Outside|2|3|3|20
221
222 From the above table, one group of recipes is needed when spraying different parts, and three groups of recipes can be established, and each group of recipes has four ingredients: Red, Green, Blue, Spraying time. The value of each ingredient is different in different groups of recipes.**Recipe configuration**
223
224 The recipe function needs to be used with the recipe configuration area and [Recipe record] object. Click [Recipe] in the [System configuration/Record setting] in the upper left side of the software [[image:1698393787529-717.png]]and the following interface will pop up:
225
226 (% style="text-align:center" %)
227 [[image:1.png]]
228
229 Click [Add] to pop up the recipe setting interface, as shown in the following figure:
230
231 (% style="text-align:center" %)
232 [[image:2.png]]
233
234 |Recipe configuration options|Description|Notice
235 |Recipe name|Name the current recipe|Note: Recipe name can only consist of (0~~9), (a~~z), (A~~Z), ('_'), ('') and other non-English characters.
236 |Group number|Configure the group number of the current recipe, ranging from 0 to 1000|
237 |Number of ingredients|Configure the number of the current ingredient, ranging from 0 to 1500|
238
239 |Data configuration options|Description|Notice
240 |Starting address|The data of group in the recipe file is read out and displayed in the address, which will be automatically assigned according to the set data format of each ingredient. For example, if each group has 10 ingredients, the ingredient format is 16-bit unsigned decimal number, and the starting address is HDW0, then 10 addresses (HDW0-HDW9) correspond to 10 ingredients respectively, the values in HDWO correspond to the values in ingredient 1, the values in HDW1 correspond to the values in ingredient 2, and so on.|
241 |Recipes are read and written at different addresses|When "recipe written and read address are different" is checked, the address configured by the read address is only used for recipe read data operation, and the address set in this area is used to control recipe written data operation.|
242 |Data format|Configure the data format of this recipe. There are 9 modes of data format: 16-bit BCD code, 16-bit signed decimal, 16-bit unsigned decimal, 32-bit BCD code, 32-bit signed decimal, 32-bit unsigned decimal, 32-bit (single-precision) floating points, 64-bit (double-precision) floating point, string.|(% rowspan="2" %)(% class="box infomessage" %)
243 (((
244 **✎Note:** The data format set here is for all components of the recipe, that is, the data format of all components in a recipe is consistent.
245 )))
246 |Decimal point position|Configure the selection of integer and decimal places of data.
247 |Enable discontinuous addresses|If checked, the address of the recipe list can be modified.|
248 |Language|Recipe display language is selectable.|
249 |Recipe list|The recipe list displays the configured recipe parameter information in the list according to the settings. The parameters of each ingredient in the recipe list can be modified at the same time: For example, the name of the ingredient, the data format of the ingredient, the address of the ingredient, and directly filling in the data of each ingredient in each group.|
250 |Insert group|Click [Insert group], enter the number of groups to insert, and the corresponding row will be added to the recipe list.|
251 |Delete group.|Click [Delete group] to select the group to delete|
252 |Insert ingredient|Click [Insert group], enter the number of groups to insert, and the corresponding row will be added to the recipe list.|
253 |Delete ingredient|Click [Delete ingredient] to select the ingredient to delete.|
254 |Data import|Import existing data files, supporting .xlsx .xls .csv format.|
255 |Data export|Export configured recipe data|
256
257 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.
258
259 Data operation
260
261 1. **Read:** Read a group of data from the recipe file and assign the group of data to the set address.
262 1. **Write: **Read a group of data from the set address and assign the group of data to the corresponding recipe file.
263
264 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.
265
266 The maximum number of group in recipe is 1000, and the maximum number of member in each group is 1500.
267
268 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.
269
270 1. **Simple: **Only support the data operation of one recipe file, including read and write.
271 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".
272
273 Recipe function settings will be display in "[[Recipe display>>http://docs.we-con.com.cn/wiki/pistudio/view/Helps/06.Objects/#HRecipedisplay]]" object.
274
275 **Description**
276
277 (% style="text-align:center" %)
278 [[image:8-1Recipe.png]]
279
280 **Basic**
281
282 * **Recipe Folder:** Give Recipe folder name (It can be used, when setting Recipe display object);
283 ** (% class="box infomessage" %)
284 (((
285 **✎Note: **Recipe Folder name can only consist of (0~~9), (a~~z), (A~~Z), ('_'), (' ') and other non-English characters;
286 )))
287 * **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.
288 * **Elements:** It sets members' initial number of each group;
289 * **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;
290 * **Decimal: **It sets integer and scale digits;
291
292 **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.
293
294 Function address: all operations are done through function addresses, different operating value is as follows:
295
296 * = 0: no operation;
297 * = 1: trigger read data;
298 * = 2: new trigger or update (If there is group number, it updates.)
299 * = 4: insert (only valid in advanced mode)
300 * = 8: delete (Delete according to the writing group number. If write and read address are consistent, refer to the reading group number);
301 * = 16: delete and sorted ((Delete according to the writing group number. If write and read address are consistent, refer to the reading group number)
302 * = 64: import CSV recipe file.
303
304 **Use Multiple File**
305
306 Check it to use more than one recipe file in HMI, but this option only valid in [Advanced mode];
307
308 **Select language**
309
310 The text in HMI can be in 8 languages, user can set language in here;
311
312 **Address**
313
314 1. **Group:** This address is for selecting group number;
315 1. **Start: **This is starting address is for reading and writing in recipe, PIStudio will automatically assigns addresses for each members;
316 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.
317
318 **Use Index**
319
320 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.
321
322 **Query by Element**
323
324 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;
325
326 (% class="box infomessage" %)
327 (((
328 **✎Note: **When this option is enabled, Group address will be invalid.
329 )))
330
331 **Use Independent Write Address**
332
333 To separate Recipe read address and write address.
334
335 **Use Insert**
336
337 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.
338
339 **Discontinuous Address**
340
341 Whether enable the non-consecutive recipe operation addresses or not. If disabled, the recipe address will recover as the continuous addresses.
342
343 (% class="box infomessage" %)
344 (((
345 **✎Note: **This function only supported in HMI+, i series, ie series, ig series.
346 )))
347
348 **Description of adcanced mode**
349
350 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.
351
352 [[image:image-20220806111333-1.jpeg]]
353
354 **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.
355
356 **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).
357
358 **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.
359
360 [[image:image-20220806111355-2.jpeg]]
361
362 **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.
363
364 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.
365
366 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.
367
368 **Recipe Demo Download Link: **[[Download>>url:https://drive.google.com/open?id=1Cjbq_tW-NIirHFBpxt47g7IKvoYaWqUR]]
369
370 == Calling CSV recipe file ==
371
372 **Overview**
373
374 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.
375
376 **Operations**
377
378 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.
379
380 (% style="text-align:center" %)
381 (((
382 (% style="display:inline-block" %)
383 [[Figure 1>>image:image-20220806100702-2.jpeg]]
384 )))
385
386 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.
387
388 (% style="text-align:center" %)
389 [[image:image-20220806100753-3.jpeg]]
390
391 By configuring the address in the table and combining the recipe function, the CSV recipe files of regular series are imported.
392
393 |=Address range|=Object type|=Address function
394 |HSW1050 to 1065|Text input object|Enter the CSV recipe file name to import
395 |HSW1066|Numerical input object|Import CSV file type:(((
396 * = 0: Custom CSV file (all data in the file is valid)
397 * = 1: Normal recipe file for regular series HMI (the data in line 1 of the file is invalid)
398 * = 2: Special recipe file for regular series HMI (the data in line 1 and 2 and column 1 of the file are invalid)
399 )))
400 |HSW1067|Numerical input object|(((
401 Where the CSV file is saved:
402
403 * = 0: In the CsvFile directory of U disk
404 * = 1: In the CsvFile directory of the SD card
405
406 **The path for offline simulation is: C:\ HMIEmulation\ CustomFileDir\ CsvFile**
407 )))
408 |HSW242|Numerical input object|Returns the results of the csv import:(((
409 * = 37: CSV file imported successfully
410 * = 38: CSV file import failed
411 )))
412
413 **Select CSV recipe file (take U disk as an example):**
414
415 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.
416
417 Use the special address of the above table to configure the path of the CSV file: HSW106, configure recipe file name: HSW1050 to1065
418
419 Use HSW1066 address to select the corresponding CSV recipe file type.
420
421 * HSW1066 = 0: Import a user-defined CSV recipe file (all data in the custom CSV file must be valid);
422
423 (% style="text-align:center" %)
424 [[image:image-20220806101129-5.jpeg]]
425
426 * HSW1066=1: Import the normal recipe file of regular series HMI (the data in line 1 of the file is invalid);
427
428 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.**
429
430 (% style="text-align:center" %)
431 [[image:image-20220806101520-6.jpeg]]
432
433 * 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);
434
435 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.**
436
437 (% style="text-align:center" %)
438 [[image:image-20220806102610-7.jpeg]]
439
440 **Perform import**
441
442 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:
443
444 * Configure the DB recipe file name by text input object: HDW500 = 3 (recipe file configured in Figure 1),
445 * Set the recipe function address to: HDW1000 = 64 (the function address configured in Figure 1),
446 * Transform the CSV recipe file in U disk into DB recipe file with file name “3.rcp2”.
447
448 **DB recipe file for storing CSV data:**
449
450 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.
451
452 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).
453
454 **Import results:**
455
456 * HSW242 = 37: Import succeeded;
457 * HSW242 = 38: Import failed.
458
459 **Precautions:**
460
461 * 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);
462 * 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;
463 * 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.
464
465 == **Recipe record function** ==
466
467 **Basic setting**
468
469 (% style="text-align:center" %)
470 [[image:3.png]]
471
472 Recipe selection: Select the recipe name to be displayed. The list is all the recipes configured in the recipe. If the list is empty, add the recipe in [Recipe].
473
474 Recipe shortcut key setting:
475
476 Add data: Used to add groups.
477
478 Delete data: Used to delete the selected configuration
479
480 Upload recipe: Used to upload the address data of the selected group to the corresponding group in recipe records.
481
482 Download recipe: Used to download the address data of the selected group to the corresponding group in recipe records.
483
484 Import recipe: Used to import the existing recipe files.
485
486 Export recipe: Used to export the current recipe as a file.
487
488 **Graphic**
489
490 (% style="text-align:center" %)
491 [[image:4.png]]
492
493 Style selection: Styles can be switched or customized.
494
495 Background configuration: Set the recipe background, including background color and transparency.
496
497 Table configuration: Set the appearance of recipe table area, including row background color, row spacing color, horizontal header background color, vertical header background color, horizontal header text color, vertical header text color, text color, row selected color, name color, line color and cell style.
498
499 **Expansion**
500
501 (% style="text-align:center" %)
502 [[image:5.png]]
503
504 Object lock: With the interlock address, the object is locked and the lock icon is displayed (upper left corner of the object) when the lock address is 0, and the bit switch is operable only when the bit pointed by the interlock bit address is 1. To lock the bit switch when the interlock bit address is 1, just check "Lock in ON".
505
506 Object lock icon: Icons will not display when the [Not display “Lock” icon] option is checked. Icon display will adapt to the change of object size.
507
508 Gray level display: When the object is locked, the text message will be grayed out.
509
510 == **New recipe function address** ==
511
512 In recipe, new special address is used as Function address.
513
514 **Address Type:** RPG
515
516 (% style="text-align:center" %)
517 [[image:企业微信截图_17570533194720.png]]
518
519 (% style="text-align:center" %)
520 [[image:企业微信截图_17570534728083.png]]
521
522 (% class="box infomessage" %)
523 (((
524 Note: There is a set of function address in each recipe.
525 )))
526
527 |(% style="width:107px" %)Name|(% style="width:162px" %)Data format|Length|Function
528 |(% style="width:107px" %)File name|(% style="width:162px" %)String|15 word address|Input file name
529 |(% style="width:107px" %)Record select|(% style="width:162px" %)16-bit unsigned decimal|(((
530 1 word address
531
532 (0-65535)
533 )))|Currently selected record, numbered starting from 0. When the record selection value changes, the corresponding value will be updated.
534 |(% style="width:107px" %)Function address|(% style="width:162px" %)16-bit unsigned decimal|(((
535 1 word address
536
537 (0-65535)
538 )))|(((
539 Enter a specific value to send a command to the selected record
540
541 "1": Add a new recipe record
542
543 "2": Delete the selected recipe record
544
545 "3": Upload the recipe
546
547 "4": Download the recipe
548
549 "5": Update the selected recipe record
550 )))
551 |(% style="width:107px" %)Result|(% style="width:162px" %)16-bit unsigned decimal|1 word address (-32768~-~-32767)|(((
552 View the result of executing the command.
553
554 Display "1": Successfully executed the command
555
556 Display "2": The record limit has been reached and no new records can be added.
557
558 Display "4": No corresponding option
559
560 Display "8": unknown command
561
562 Display "16": recipe download failed.
563
564 Display "32": recipe upload failed.
565
566 Display "64": recipe update failed.
567 )))
568 |(% style="width:107px" %)Record count|(% style="width:162px" %)16-bit unsigned decimal|(((
569 1 word address
570
571 (0-65535)
572 )))|Display the number of records in the current recipe
573 |(% style="width:107px" %)Element address|(% style="width:162px" %)16-bit unsigned decimal|(((
574 1 word address
575
576 (0-65535)
577 )))|Element address
578
579
580
581 = (% style="color:inherit; font-family:inherit; font-size:29px" %)**Traditional recipe**(%%) =
582
583 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.
584
585 Traditional recipe function is valid only when the LEVI project is converted to the PI project, and the original project uses the traditional recipe.
586
587 (% class="box infomessage" %)
588 (((
589 **✎Note**: Currently, only HMI+, i series, ie series, and ig series support the traditional recipe.
590 )))
591
592 == Simple recipe mode ==
593
594 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:
595
596 (% style="text-align:center" %)
597 [[image:8-3TraditionalRecipeConfigScreen.png||class="img-thumbnail"]]
598
599 **✎Note**:
600
601 * The recipe folder name can only consist of (0~~9), (a~~z), (A~~Z), ('_'), ('').
602 * The element name of the recipe cannot include following 5 special characters: " **,** " , " **|** " , " **<** " , " **>** " , " **&** " .
603
604 == Recipe display ==
605
606 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.
607
608 (% class="box infomessage" %)
609 (((
610 **✎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:
611 )))
612
613 (% style="text-align:center" %)
614 [[image:8-4TraditionalRecipeDisplayConfigScreen.png||class="img-thumbnail"]]
615
616 == Recipe transmission address ==
617
618 The special addresses used in the Recipe are shown in the following table:
619
620 (% class="table-bordered" %)
621 |=Address|=Description|=Function
622 |HSW1611|Traditional Recipe transfer operation.|(((
623 ~=1: Recipe download.
624
625 ~=2: Recipe upload.
626 )))
627 |HSW1612|Traditional Recipe group number.|Traditional Recipe group number.
628 |(((
629 HSW242
630 )))|(((
631 Recipe operation result prompt:
632
633 Upload: Data is written to recipe file from address.
634
635 Download: Data is written to the address from recipe file.
636 )))|(((
637 ~=1: Recipe download, start.
638
639 ~=2: Recipe download, execution error.
640
641 ~=6: Recipe download, successful.
642
643 ~=7: Recipe upload, start.
644
645 ~=8: Recipe upload, execution error.
646
647 ~=11: Recipe group name does not exist.
648
649 ~=12: Recipe upload, successful.
650 )))
651
652 == **Recipe index** ==
653
654 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".
655
656 The recipe index area (RPW)'s instruction as follows:
657
658 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.
659 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.
660
661 * **✎Note**: As long as RPW~*~*~#~#~#~# exists, any object "writes" to HPW~*~*~#~#~#~# will be saved to the recipe file. 
662
663 (% start="3" %)
664 1. The RPW register only supports word address access.
665 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.
666
667 == Recipe example ==
668
669 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".
670
671 Edit the recipe configuration, create three groups of recipes, 4 elements for per group: Red, green, blue, spraying time, as following shown:
672
673 (% style="text-align:center" %)
674 [[image:8-5TraditionalRecipeCaseConfig.png]]
675
676 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:
677
678 (% style="text-align:center" %)
679 [[image:8-7TraditionalRecipeCaseShowNoOpera.png]]
680
681 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.
682
683 (% style="text-align:center" %)
684 [[image:8-6TraditionalRecipeCaseShow.png]]
685
686 = **Trend chart** =
687
688 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.
689
690 Click "Project" → "Trend chart", it will pop up the following screen. Click "Add" to creat new curve record.
691
692 (% style="text-align:center" %)
693 [[image:趋势图配置 001.png||class="img-thumbnail"]]
694
695 **Settings**
696
697 (% style="text-align:center" %)
698 [[image:趋势图设置 2.png||height="507" width="866"]]
699
700 **(1) Basic settings**
701
702 1. **Curve NO.: **It is for setting curve number,
703 1. **Curve Name:** It is for setting curve name. The length limitation is 31 bytes.
704 1. **Curve (1~~8):** It is for setting the number of curves. The default is 3.
705 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.
706
707 **(2) Sample Type**
708
709 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.
710 1. **Sample unit:** 100ms.
711
712 **(3) Quick Setting**
713
714 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.
715
716 (% style="text-align:center" %)
717 [[image:趋势图设置 3.png||class="img-thumbnail"]]
718
719 (% start="2" %)
720 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.
721
722 **(4) Curve Table:** The sample address you have set would display on it. Click the corresponding box to modify the content.
723
724 (% class="box infomessage" %)
725 (((
726 **✎Note: **Curve names can only consist of Chinese characters, (0~~9), (a~~z), (A~~Z), ('_') (' '), and other non-English characters.
727 )))
728
729 **Trend Chart Demo Download Link**
730
731 [[https:~~/~~/drive.google.com/open?id=1smnaAvSxOWC0WQK4_uvqHXWn4vUZxGJC>>url:https://drive.google.com/open?id=1smnaAvSxOWC0WQK4_uvqHXWn4vUZxGJC]]
732
733 = **History XY plot** =
734
735 Different from TrendChart, uses need to set history XY curve items in project. Please click "Project"-> "History XY Plot" to open the setting screen.
736
737 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.
738
739 (% style="text-align:center" %)
740 [[image:历史XY 2.png||class="img-thumbnail"]]
741
742 (% style="text-align:center" %)
743 [[image:历史XY 3.png||class="img-thumbnail"]]
744
745 **(1) Basic settings**
746
747 1. **Curve NO.: **It is for setting curve number,
748 1. **Curve Name:** It is for setting curve name. The length limitation is 31 bytes.
749 1. **Curve (1~~8):** It is for setting the number of curves. The default is 3.
750 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.
751
752 **(2) Sample Type**
753
754 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.
755 1. **Sample unit:** 100ms.
756
757 **(3) Quick Setting**
758
759 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.
760
761 (% style="text-align:center" %)
762 [[image:image-20220616145435-1.png]]
763
764 (% start="2" %)
765 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.
766
767 **(4) Curve Table:** The sample address you have set would display on it. Click the corresponding box to modify the content.
768
769 (% class="box infomessage" %)
770 (((
771 **✎Note: **Curve names can only consist of Chinese characters, (0~~9), (a~~z), (A~~Z), ('_') (' '), and other non-English characters.
772 )))
773
774 **Operating Procedure**
775
776 * Click "Project" → "History XY Plot" to open the function selecting windows.
777
778 (% style="text-align:center" %)
779 [[image:8.Basic Function_html_5da6ca44bd28acbe.png||height="144" width="533" class="img-thumbnail"]]
780
781 * Click "Add" button to open "History XY Plot” setting windows.
782
783 (% style="text-align:center" %)
784 [[image:8.Basic Function_html_6345b50ea55168fa.png||height="307" width="554" class="img-thumbnail"]]
785
786 * Setting the function of History XY Plot.
787 * Click "OK" to save the setting.
788
789 **Download Link**
790
791 [[https:~~/~~/drive.google.com/open?id=1t4_HuRmIJJ-B5ryA2kVMadD9FywKhZ4r>>url:https://drive.google.com/open?id=1t4_HuRmIJJ-B5ryA2kVMadD9FywKhZ4r]]
792
793 = (% style="color:inherit; font-family:inherit; font-size:29px" %)**Data record**(%%) =
794
795 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.
796
797 The topology is shown in the following figure.
798
799 (% style="text-align:center" %)
800 [[image:8.Basic Function_html_1b4bd09dafa7e049.png||height="332" width="554" class="img-thumbnail"]]
801
802 The data record stored in SD card is also organized according to the above figure.
803
804 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.
805
806 **Sampling interval: **The interval between two consecutive samples was recorded.
807
808 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.
809
810 For the file storage of data, see the file size configuration during data record configuration.
811
812 ✎**Note: **
813
814 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.
815
816 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:
817
818 (% style="margin-left:auto; margin-right:auto; width:513px" %)
819 |=(% style="width: 70px;" %)Series|=(% style="width: 442px;" %)Number of Data Record upload to Cloud
820 |(% style="width:70px" %)8000-R|(% style="text-align:center; width:442px" %)100
821 |(% style="width:70px" %)9000-R|(% style="text-align:center; width:442px" %)100
822 |(% style="width:70px" %)3000ig|(% style="text-align:center; width:442px" %)50
823 |(% style="width:70px" %)8000ig|(% style="text-align:center; width:442px" %)100
824 |(% style="width:70px" %)MD|(% style="text-align:center; width:442px" %)50
825
826 The record group name can only be composed of Chinese characters, (0~~9), (a~~z), (A~~Z), ('_'), ('') and other non-English characters.
827
828 Channel name cannot incloud following symbols: :" , ", " | ", " < ", " > ", " & ".
829
830 (% class="wikigeneratedid" id="HSettings" %)
831 **Settings**
832
833 (% style="text-align:center" %)
834 [[image:数据记录设置 1.png||height="533" width="848" class="img-thumbnail"]]
835
836 **Operating Procedures**
837
838 1. Click "Project"->"Data record" as below shows.
839 1. Click "Add" button to open "Data record" setting window.
840 1. Enter group name, the default is "GroupName0"
841 1. Select "Trigger function" mode, such as "No trigger".
842 1. Set "Total channels", such as 3.
843 1. Click "Apply" button.
844 1. Set Sample cycle, such as 15.
845 1. Set "Start channel" in "Quick settings", such as 4 0.
846 1. Check group information in "Channel list" as below.
847 1. Click "Save" button to complete settings.
848
849 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.
850
851 ✎**Note: **
852
853 * For HMI series 8000 and above, the size of a single file cannot exceed 300M and the total file capacity cannot exceed 1000M.
854 * For HMI series 3000, the size of a single file cannot exceed 4M and the total file capacity cannot exceed 10M.
855 * If the total amount exceeds the range, an alarm will be given during project compilation.
856
857 (% style="text-align:center" %)
858 [[image:数据记录设置 2.png||height="572" width="850" class="img-thumbnail"]]
859
860 **(1) Group name:** Set group name, and he name should be unique.
861
862 **(2) Trigger function:** There are four modes to trigger record.
863
864 1. **No trigger: **Data will be recorded in every sample time.
865 1. **Trigger to record by sample cycle: **Data will be recorded in every same time, when trigger control bit set ON.
866 1. **Trigger to record once and reset: **Data will be recorded when trigger control bit set ON, and the bit will be reset automatically.
867 1. **Trigger to record once: **Data will be recorded when trigger control bit set ON, and the bit need to be reset manually.
868 1. **Trigger address: **It is only valid when the trigger condition is selected. The monitoring cycle for trigger sampling address is 1s.
869
870 **(3) Total channels (1~~100): **Set the numbers of channels. Click "apply" to view the channel lists on the right record channel.
871
872 **(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.
873
874 **Timing address:** It sets address to change sample time when HMI is running;
875
876 **(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.
877
878 **Abnormal value:** It sets a value, when communication fails, data record will record this value;
879
880 **(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.
881
882 **(7) Quick Settings**
883
884 1. **Start Channel:** It sets the continuous addresses for channels.
885 1. **Data Format: **It sets the same data format for channels.
886 1. **Number of Digits:** It sets the digits’ number for channels.
887 1. **Language Settings**: The text in HMI can be in 8 languages, user can set language in here.
888
889 **(8) Channel List**: Besides quick settings, user can set channel name, address, data format, and so on one by one according to real situation.
890
891 **✎Note:**
892
893 * 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.
894 * 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.
895 * The channel name can only be composed of English characters, (0~~9), (a~~z), (A~~Z), ('_'), ('').
896 * The channel name does not include these 5 special characters: ", ", "| "," <", "> "," & ".
897 * 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.
898
899 You could click here to jump to object "[[Data Record Display>>https://docs.we-con.com.cn/bin/view/PIStudio/06.Objects/#HDatarecorddisplay]]"
900
901 = Column Chart =
902
903 Use the bar chart  to monitor and visualize register data in real time
904
905 == **Y-axis configuration** ==
906
907 Configure the Y-axis parameters, including  value type, minimum ,maximum ,data types, and decimal point settings.
908
909 (% style="text-align:center" %)
910 [[image:5.png]]
911
912 == **Channel setting** ==
913
914 Set the channel address to be displayed.
915
916 **Dynamic color:** Change value of a word address to change the color of the channel display.
917
918 Dynamic color sequence: The color sequence number bound to the channel (click to enter the color sequence configuration interface)
919
920 (% style="text-align:center" %)
921 [[image:1.png]]
922
923 (% class="wikigeneratedid" %)
924 **Color sequence configuration interface**
925
926
927 **Upgrade to Global Configuration: **This color sequence is upgraded to the global default.
928
929 **Global Configuration:** When a new bar chart control is created in a project, the color sequence has a default configuration. When you upgrade an existing configuration to a global configuration, the default color sequence for the new control will be the same as the configured color sequence.
930
931 (% style="text-align:center" %)
932 [[image:2.png]]
933
934
935 **Enable Baseline:** Set baselines on the bar chart.
936
937 **Baseline: **The baseline ID bound to the channel) (click to enter the baseline configuration interface).
938
939 (% style="text-align:center" %)
940 [[image:121.png]]
941
942 **Baseline Configuration:**
943
944 **Value type: **Baseline value type
945
946 (**Fixed value: **baseline value is fixedly set; **Dynamic address:** baseline value is read from address).
947
948 **Upgrade to Global Configuration:** This will make this warning zone the global default configuration.
949
950 Global Configuration: When a new bar chart control is created in a project, the warning zone has a default configuration. When you upgrade an existing configuration to a global configuration, the default configuration for the new control will be the same as the configured one.
951
952 (% style="text-align:center" %)
953 [[image:3.png]]
954
955 == **Appearance setting** ==
956
957 (% class="wikigeneratedid" %)
958 Set a configuration for the X-axis, background color, etc.
959
960 (% style="text-align:center" %)
961 [[image:4.png]]
962
963 == **Function settings** ==
964
965 **Column Update Method:**
966
967 **Periodic Update:** Updates the histogram periodically.
968
969 **Triggered Update: **Controls whether the histogram updates based on an address.
970
971 **Triggered Periodic Update:** Triggers a periodic update of the histogram.
972
973 **Cycle update time: **Periodic update time setting, unit: seconds
974
975 **Function control starting address: **The function of the bar chart can be controlled by the address. The starting address is configured here. For specific functions, refer to the address description list.
976
977 (% style="text-align:center" %)
978 [[image:0.png]]
979
980 == Chart Button ==
981
982 [[image:Screenshot 2025-09-09 102850.png||style="float:left"]]
983
984
985 :Menu
986
987
988 :Zoom in
989
990
991
992 :Zoom out
993
994
995 :Restore button (Reset the chart's zoom level to its original 1:1 ratio)
996
997
998 :Data label hide/show button(Controls hiding/showing of data labels)
999
1000
1001 :Settings Button
1002
1003
1004 = **User permission** =
1005
1006 **Introduction**
1007
1008 1. User permission is one of expansion function in PI Series HMI; it provides multi-level of permission for control HMI operations.
1009 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.
1010 1. Operating record: it records user operations information, the records files are saved in HMI flash; its path is [~\~\flash~\~\UserOperationLogs.db].
1011 1. When it is on simulator mode, the files are saved in C disk, its path is [C:~\~\WECON\UserMgrFile\UserOperationLogs.db].
1012
1013 (% class="box infomessage" %)
1014 (((
1015 ✎**Note: **
1016
1017 * The user name and password must be unique. Username can be up to 32 characters, and password can be up to 8 characters.
1018 * The multi language function of User permission only supported on HMI system version V2.0 or above
1019 )))
1020
1021 == Settings ==
1022
1023 Open PIStudio software, then operate as the following figure.
1024
1025 (% style="text-align:center" %)
1026 [[image:用户权限 1.png||class="img-thumbnail"]]
1027
1028 Click on the cell from UserName and Desc, which can support the multi language.
1029
1030 (% style="text-align:center" %)
1031 [[image:UserPermissionMultilan.png]]
1032
1033 1. Click "User Permission" in "Data Tool" toolbar.
1034 1. Edit user name, click "User0" cell under "UserName", and then enter the user name, one project allows maximum 20 users.
1035 1. Edit password, click "User0" cell under "PassWord", and then enter the user name.
1036 1. Edit description, click "User0" cell under "Desc", and then enter, description is not necessary。
1037 1. Check the groups for each user, there are 11 groups beside admin.
1038 1. Editing groups' description, but it is not necessary.
1039 1. {{id name="OLE_LINK7"/}}{{id name="OLE_LINK6"/}}Click "Save and Exit" button to complete all settings.
1040
1041 (% class="box infomessage" %)
1042 (((
1043 ✎**Note:**
1044
1045 * 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.
1046 * When the configured file does not have the administrator account, a new user can be added  through "Funtion address" and set as the administrator.
1047 * 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.
1048 * (((
1049 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.
1050 )))
1051 )))
1052
1053 (((
1054
1055 )))
1056
1057 == Object permission configuration ==
1058
1059 (% style="text-align:center" %)
1060 [[image:用户权限 2.png||class="img-thumbnail"]]
1061
1062 User operation logs support multi languages configuration. Click on the Log Message, the text editor of multi language will be pop up:
1063
1064 (% style="text-align:center" %)
1065 [[image:LogMessagesMultilan.png]]
1066
1067 **Operation Procedure of Object Permission**
1068
1069 1. Open the object setting windows;
1070 1. Select "Security" windows;
1071 1. Check the "User Permission";
1072 1. Select "Level" to set permission level;
1073 1. Enter "Log Message", it is for operation records, if it was empty, the operation for this object would be not be recorded;
1074 1. Select the "Access Denied Setting" mode;
1075
1076 **Log information description**
1077
1078 A combination of Chinese characters, numbers, and uppercase and lowercase letters can be entered, and the number does not exceed 63.
1079
1080 The format of insert variable:{variable address, data format}. e.g., {HDW100,UW2.1}.
1081
1082 The data format are as follows.
1083
1084 (% class="table-bordered" %)
1085 |=Letter|=Meaning
1086 |B|Binary
1087 |O|Octonary
1088 |U|Unsigned decimal
1089 |H|Hexadecimal
1090 |b|BCD
1091 |F|32-bit float
1092 |S|Signed decimal
1093 |C|Character
1094 |W|Single word
1095 |D|Double word
1096
1097 Examples.
1098
1099 * Unsigned decimal, BCD, 32-bit float and Signed decimal are as follows.
1100
1101 {HDW100,UW2.1}:  Indicates the variable address is HDW100. The data format are: unsigned decimal, single word, two integer bits, one decimal place.
1102
1103 * (((
1104 Binary, Octonary and Hexadecimal are as follows.
1105 )))
1106
1107 {HDW100,HD8}: Indicates the variable address is HDW100. The data format are: hexadecimal, double word, eight integer bits.
1108
1109 * (((
1110 Character is as follows.
1111 )))
1112
1113 {HDW100,C32}: Indicates the variable address is HDW100. The data format are: 32 characters.
1114
1115 When a record is generated, the contents of this variable are replaced by the value of your corresponding address.
1116
1117 == **Function address** ==
1118
1119 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.
1120
1121 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).
1122
1123 Functions and addresses are as follows.
1124
1125 (% class="table-bordered" %)
1126 |=**Function**|=**Address**|=**Object type**|=**Address function**
1127 |(% rowspan="3" %)Sign in|HUW1158~~1335|Drop down list|User name
1128 |HUW1002|Character input object|Password
1129 |HUW1000|Word Switch (Input 1)|OK (sign in)
1130 |(% rowspan="5" %)Change password|HUW1158~~1335|Drop down list|User name
1131 |HUW1002|Character input object|Old password
1132 |HUW1006|Character input object|New password
1133 |HUW1010|Character input object|Confirm password
1134 |HUW1000|Word Switch (Input 2)|OK(change password)
1135 |Sign out|HUW1000|Word Switch (Input 3) |Sign out
1136 |(% rowspan="7" %)(((
1137 New user ***1**
1138 )))|HUW1014|Character input object|User name
1139 |HUW1006|Character input object|password
1140 |HUW1010|Character input object|Confirm password
1141 |HUW1000|Word Switch (Input 4) |OK(add new user)
1142 |HUW1336~~1345|Character input object|User description
1143 |HUX1347.0|Bit switch|(((
1144 ~=1: User hidden
1145
1146 ~=0: Visible (Defaults)
1147 )))
1148 |HUW1000|Word Switch (Input 8) |Save(add Hide features)
1149 |(% rowspan="2" %)(((
1150 Delete user ***2**
1151 )))|HUW1158~~1335|Drop down list|User name
1152 |HUW1000|Word Switch (Input 5)|OK (delete user)
1153 |Delete Profile|HUW1000|Word Switch (Input 9)|OK(delete)
1154 |Export Profile|HUW1000|Word Switch (Input 10)|OK(export)
1155 |Import profile|HUW1000|Word Switch (Input 11)|OK(import)
1156 |Export log file|HUW1000|Word Switch (Input 12)|OK(export)
1157 |Delete log file|HUW1000|Word Switch (Input 13)|OK (delete)
1158 |Current user name|HUW1349|Character object|32 Word
1159 |System state information|HUW1030|Character input object|System state information
1160 |(% rowspan="3" %)Permission settings|HUW1014|Character input object|User name
1161 |HUW1348|Bit switch|(((
1162 Set the user group:
1163
1164 HUX1348.0 = 1 administrator;
1165
1166 HUX1348.1 = 1 group 0 permission;
1167
1168 HUX1348.2 = 1 group 1 permission;
1169
1170 (Total group 0 - group 10)
1171 )))
1172 |HUW1000|Word Switch (Input 6)|Add user rights (set according to HUW1348)
1173 |User login mode setting|HUW1382|Word Switch/Numeric input object|(((
1174 0: Select a user name from the drop-down list
1175
1176 1: Use character input object (address HUW1014) to log in with a user name
1177 )))
1178
1179 When the user performs a function operation, the operation result is displayed in the HUW1001.
1180
1181 (% class="table-bordered" %)
1182 |=**Value (HUW1001)**|=**Meaning**
1183 |1|Insufficient permissions.
1184 |2|Username does not exist.
1185 |3|Username already exists.
1186 |4|Wrong username or password.
1187 |5|Login successfully.
1188 |6|Passwords are inconsistent in twice time.
1189 |7|Password changed successfully.
1190 |8|User added successfully.
1191 |9|User deleted successfully.
1192 |10|Maximum number of users exceeded.
1193 |11|Admin user already exists.
1194 |12|User permission modified successfully.
1195 |13|File imported successfully.
1196 |14|File imported failed.
1197 |15|File exported successfully.
1198 |16|File exported failed.
1199 |17|Logout successfully.
1200 |18|Profile deleted successfully.
1201 |19|Log file deleted successfully.
1202 |20|Hide settings modified successfully.
1203 |21|Hide settings modified failed.
1204 |22|(((
1205 Password already occupied, please reset.
1206
1207 (For both username and password, it can not repetition)
1208 )))
1209
1210 (% class="box infomessage" %)
1211 (((
1212 **✎Note:**
1213
1214 * *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.
1215 * *1: When adding new user, the password could not be duplicated with other users.
1216 * *2: When deleting user, it is forbidden to delete the admin user.
1217 )))
1218
1219 **User Permission Demo Download**
1220
1221 [[https:~~/~~/drive.google.com/open?id=1qOiEDvo_1H1YqpoLDpS77dGaAFm8nrGq>>url:https://drive.google.com/open?id=1qOiEDvo_1H1YqpoLDpS77dGaAFm8nrGq]]
1222
1223 = Message prompt =
1224
1225 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.
1226
1227 (% style="text-align:center" %)
1228 [[image:消息提示 2.png||class="img-thumbnail"]]
1229
1230 (% style="text-align:center" %)
1231 [[image:8.Basic Function_html_5ce2091d6f7cd732.png||height="515" width="704" class="img-thumbnail"]]
1232
1233 **(1) Message**
1234
1235 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).
1236
1237 **(2) Control**
1238
1239 1. **Current item: **It shows selected message information.
1240 1. **Use trigger address: **When the message is triggered, the trigger address would be set ON.
1241
1242 **For Example:**
1243
1244 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.
1245
1246 1. **Show message: **Check it to display message when HMI is running. It is checked by default.
1247 1. **Show on web: **Check it to display message when remote access HMI screen, it is unchecked by default.
1248
1249 **(3) Message Content**
1250
1251 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.
1252
1253 **(4) Reload Text: **It means discard changes.
1254
1255 **For Example**
1256
1257 User deletes default content or modifies default content, but he wants to give up modification back to original, just click "Reload text".
1258
1259 (% class="box infomessage" %)
1260 (((
1261 **✎Note:**
1262
1263 * If you do not want this prompt during the running of HMI, please uncheck "Show message".
1264 * "Reload text" function would be invalid after clicking "save".
1265 * These 5 special characters are not supported in the header Multi language settings: ",", "|", "<", ">", "&".
1266 )))
1267
1268 == **Appendix** ==
1269
1270 The following pop-up message and code only available for HMI System V1.0, to indicate some system errors:
1271
1272 |=**Message code**|=**Description**|=
1273 |=10001|Failed to delete folder directory|(% rowspan="3" %)First confirm whether the U disk SD card is read-only, or if there are other abnormalities, if it cannot handle by prevouis advises, please provide the back label and background version info.
1274 |=10002|Failed to renaming file
1275 |=10003|Failed to delete file
1276 |=10004|Inconsistent data record tables|The files in the U disk SD card may be from other projects, or the same project but the number of channels in the current project is inconsistent with the record. Please consider verifying it first.
1277 |=10009|(% rowspan="4" %)
1278 LAN monitoring error|(% rowspan="4" %)Data packet loss during the monitoring process may cause this problem. Confirm the software version. The company has updated this issue. Older versions can be updated
1279 |=10010
1280 |=10011
1281 |=10012
1282 |=10015|Failed to initialize project|It is recommended to send the project back to the company for testing
1283 |=10022|U Disk Safe Exit Failed|(% rowspan="5" %)It may be in use, data is exported, or the storage location is U disk or SD card. It is best to trigger again and wait for its successful exit.
1284 |=10023|SD card safe exit failed
1285 |=10024|U disk is busy
1286 |=10025|SD card is busy
1287 |=10026|Cannot recognize the U disk/SD card
1288 |=10027|U disk/SD card cannot be read or written|(% rowspan="3" %)Detect the format of U disk/SD card. Fat32 and ntfs can be recognized normally. If the computer can use it normally and the HMI cannot recognize it, you can only consider formatting the U disk first and then try again.
1289 |=10028|U disk/SD card unknown error
1290 |=10029|U disk/SD card format error
1291 |=11000|(% rowspan="2" %)Alarm record error|(% rowspan="29" %)(((
1292 The version before Sept. 19th considers the flash problem. Please provide the back label and the backstage version info . Make sure to ask the customer to update the version first, and the customer's similar projects must be updated even if there is no problem. After the update, the flash usage should be checked and. If the flash is on a severe status, return to the company replaces the flash with a new one.
1293
1294 When the question is returned, the text behind the prompt is as complete as possible, which can help R&D to confirm the problem faster.
1295 )))
1296 |=11001
1297 |=11002|Failed to delete Alarm record in Flash
1298 |=11006|Failed to save the Alarm records to Flash
1299 |=11007|Alarm record error
1300 |=11009|(% rowspan="2" %)Data record error
1301 |=11010
1302 |=11011|Failed to save Data records to Flash
1303 |=11012|Failed to delete Data record in Flash
1304 |=11013|Data record error
1305 |=11014|Failed to transfer Data record to U disk/SD card
1306 |=11015|Failed to copy Data record to U disk/SD card
1307 |=11016|Data record error
1308 |=11017|User permission related operation error
1309 |=11018|SQL trigger monitoring error
1310 |=11019|Data record error
1311 |=11020|Historical XY graph error
1312 |=11021|Failed to save the Historical XY graph to Flash
1313 |=11022|Failed to delete the Historical XY graph in Flash
1314 |=11023|(% rowspan="5" %)
1315 \\Installment payment error
1316 |=11024
1317 |=11025
1318 |=11026
1319 |=11027
1320 |=11028|(% rowspan="3" %)
1321 Real-time trend graph error
1322 |=11029
1323 |=11030
1324 |=11031|Failed to delete the Real-time trend graph data in the memory
1325 |=11032|Failed to save the Real-time trend graph to Flash
1326 |=11033|(% rowspan="13" %)Recipe error|(% rowspan="13" %)If it is a new project download and there is an error, first confirm the settings of the recipe, if it is abnormal after a period of use, confirm whether it is the flash problem
1327 |=11034
1328 |=11035
1329 |=11036
1330 |=11037
1331 |=11038
1332 |=11039
1333 |=11040
1334 |=11041
1335 |=11042
1336 |=11043
1337 |=11044
1338 |=11045
1339 |=11046|(% rowspan="3" %)User permission related operation error|(% rowspan="3" %)If an error occurs when downloading a new project, first confirm the permission configuration, whether the reserved configuration is checked in the download tool, etc., if it is abnormal after a period of use, confirm whether it is a flash problem
1340 |=11047
1341 |=11048
1342 |=11049|Failed to upload operation log file via Ethernet|
1343 |=11050|(% rowspan="8" %)User permission related operation error|(% rowspan="6" %)If an error occurs when downloading a new project, first confirm the permission configuration, whether the reserved configuration is checked in the download tool, etc., if it is abnormal after a period of use, confirm whether it is a flash problem
1344 |=11051
1345 |=11052
1346 |=11053
1347 |=11054
1348 |=11055
1349 |=11056|(% rowspan="2" %)
1350 |=11057
1351 |=11058|Alarm record error|(% rowspan="2" %)Same as flash problem
1352 |=11062|Installment payment error
1353 |=11063|Alarm Runbar error|Mostly, the Runbar is used without config the alarm settings.
1354 |=11069|(% rowspan="3" %)Historical trend graph error|Same as flash problem
1355 |=11070|
1356 |=11071|
1357 |=11072|SQL trigger monitoring error|
1358 |=11073|Real-time trend graph error|Same as flash problem
1359 |=11075|Error getting database table file|Same as flash problem
1360 |=11076|Error getting database table file|Same as flash problem
1361 |=11077|(% rowspan="3" %)Recipe error|(% rowspan="3" %)If it is a new project download and there is an error, first confirm the settings of the recipe, if it is abnormal after a period of use, confirm whether it is the flash problem
1362 |=11078
1363 |=11079
1364 |=11080|(% rowspan="2" %)User permission related operation error|(% rowspan="2" %)Same as 11046
1365 |=11081
1366 |=11082|Drop-down list error|
1367 |=11083|The message prompt error|
1368 |=11084|(% rowspan="2" %)Alarm record error|Same as flash problem
1369 |=11085|
1370 |=11086|(% rowspan="2" %)Data record error|Same as flash problem
1371 |=11087|
1372 |=11088|(% rowspan="2" %)Alarm record error|Same as flash problem
1373 |=11089|
1374 |=11090|Installment payment error|Same as flash problem
1375 |=11091|The message prompt error|
1376 |=11092|The database table file does not exist|
1377 |=11093|Machine code error|
1378 |=11094|Import csv file error|
1379 |=30001|Flash free space is not enough to store Data records|(% rowspan="3" %)Insufficient space, whether any file is copied into the flash
1380 |=30002|Flash free space is not enough, Historical XY trend graph is not stored
1381 |=30003|Flash free space is not enough to store real-time trend graphs
1382 |=30005|System read only|(% rowspan="2" %)Same as the flash problem, if the flash is damaged, then the system must be updated
1383 |=30006|Insufficient reserved blocks
1384
1385 = **Cloud** =
1386
1387 **Introduction**
1388
1389 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.)
1390
1391 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.
1392
1393 (% style="text-align:center" %)
1394 [[image:云配置1.png||height="494" width="750" class="img-thumbnail"]]
1395
1396 **(1) Enable**
1397
1398 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:
1399
1400 |=Series|=Monitoring Tags|=Alarm Record|=Data Record|=OpenCloud Data
1401 |8000-R (HMI V2.0 System)|300|200|100|1000
1402 |9000-R (HMI V2.0 System)|300|200|100|1000
1403 |3000ig|100|20|50|500
1404 |8000ig|300|200|100|1000
1405 |MD|100|20|50|500
1406
1407 For example:
1408
1409 * In 3000ig's Cloud, the monitoring tags upload to the Cloud in real time is limited to 100.
1410 * 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).
1411 * 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]]).
1412
1413 **(2) Server Selection**
1414
1415 **Server**: China, ASEAN, and Europe.
1416
1417 **Password**:
1418
1419 1. If the HMI is not bound, this access password will be updated and downloaded into the HMI screen simultaneously.
1420 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.
1421
1422 **(3) Upload Selection**: 
1423
1424 To upload the data collected by HMI to the cloud or a to the third-party server, only one upload method can be selected.
1425
1426 1. **to Cloud**: All the configured tags, data records, and alarm records would be pushed to V-NET.
1427 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]]".
1428
1429 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.
1430
1431 **4) Low Data Mode setting**
1432
1433 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.
1434 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.
1435
1436 = MQTT[[image:2.png]] =
1437
1438 (% class="wikigeneratedid" %)
1439 Configurable type MQTT. Users can publish message to the MQTT server or subscribe topics from the MQTT server.
1440
1441 The supported models and series are listed in the following table:
1442
1443 (% style="margin-left:auto; margin-right:auto; width:150px" %)
1444 |Support series
1445 |3000ig
1446 |8000ig
1447
1448
1449
1450 **MQTT Configuration (Common Settings/AWS IOT Settings/ALi Settings/Huawei Settings)**
1451
1452 This chapter explains how to use configurable type MQTT. Users can publish message to the MQTT server or subscribe topics from the MQTT server.
1453
1454 Click “MQTT” in “Data Tool" in the upper side bar of the software.After checking "Enable", the settings window will pop up and select different cloud services for MQTT configuration, as shown in the following figure:
1455
1456 (% style="text-align:center" %)
1457 [[image:1747021182728-276.png]]
1458
1459 **MQTT Server Settings (Common)**
1460
1461 **General**
1462
1463 (% style="text-align:center" %)
1464 [[image:3.jpg]]
1465
1466 **Description:** Enter a description or comment about the server. Maximum input length: 255 characters, cannot be empty.
1467
1468 **Cloud Service**: (Select Common)
1469
1470 ① Common (Common Platform): General MQTT publish-subscribe topic mode.
1471
1472 ② AWS IoT (Amazon): Using "AWS IoT" as the Broker, using Thing to transfer data and support Shadow function.
1473
1474 ③ ALi (Alibaba Cloud): Using "Alibaba Cloud" as Broker.
1475
1476 ④ Huawei (Huawei Cloud): Using "Huawei Cloud" as Broker.
1477
1478 **Communication protocol**: MQTTv3.1, v3.1.1 and v5 are supported.
1479
1480 **Custom Client ID length:** User can customize the length of the Client ID (optional), length range: 20 ~~128.
1481
1482 **Custom username/password length:** Customize the length of user name/password length (optional), length range: 16 ~~ 256.
1483
1484 **IP:** Set the MQTT server IP to subscribe message.
1485
1486 **Use domain name:** Support using domain name to the specify server.
1487
1488 **Domain name:** Set the domain name of the MQTT server that subscribe message. Maximum input length: 128 characters, cannot be empty, supports letters, numbers, "-", “.”. The symbol cannot be placed at the first character or last character of name.
1489
1490 **Port number:** Set the MQTT server port to subscribe message. Range: 0~~65535, cannot be empty.
1491
1492 **Client ID:** Login name. Variables can be used as login names. For example: Enter% 0 and the Client ID is the device name. (This can be set in the HMI background. If not, the default is HMI model.) **(✎Note: A Client ID can only be used for one device.)** When there is no custom Client ID length, the maximum configurable length of Client ID is 40 characters.
1493
1494 **Verification:** Choose whether to connect to the MQTT server using [User Name] and [Password].
1495
1496 **User Name:** The [User Name] connects to the MQTT server. When there is no custom username/password length, the maximum configurable length of username is 32 characters.
1497
1498 **Password:** The password for connect to the MQTT server. When there is no custom username/password length, the maximum configurable length of password is 32 characters.
1499
1500 **Timestamp:** LOCAL: Using the HMI time as the timestamp. UTC Time: Using UTC+0.
1501
1502 **Clean message cache when normal connected:** If option is enabled, when the device is disconnected, the message to be published will be cached in the cache area, and then will be published when the device is online again.
1503
1504
1505 **Address**
1506
1507 (% style="text-align:center" %)
1508 [[image:4.jpg]]
1509
1510 **Status address: (Total length: 2 words)**
1511
1512 HDWn: Display [MQTT] connection status.
1513
1514 |Value|Description
1515 |0|Disable MQTT server connection
1516 |1|Disconnected or connecting
1517 |2|Successfully connected the MQTT server
1518
1519 HDWn+1: Error prompt
1520
1521 |Value|Description
1522 |0|No error
1523 |-1|General error code of wrong operation
1524 |-3|Disconnected
1525 |-4|Exceed client data concurrency
1526 |-5|Invalid UTF-8 string
1527 |-6|Null pointer parameter
1528 |-7|Topic name is truncated
1529 |-8|Wrong protocol structure body
1530 |-9|Bad QoS, acceptable range is (0, 1, 2)
1531 |-10|Try to use a non-SSL version library for SSL connection
1532 |-11|Wrong MQTT version
1533 |-14|Wrong protocol type
1534 |-15|Option is not suitable for the current request version
1535 |-16|Call MQTT version that is not applicable to request.
1536 |-17|0 length connects topics
1537
1538 **Buffer usage address: (Total length: 1 word)**
1539
1540 Unsuccessful published message will be stored in memory as cache, with a maximum 100,000 messages or 2M. Value display as unit %, and it is carried unconditionally.
1541
1542 HDWn: Display buffer usage.
1543
1544 **Control address: (Total length: 123 words; If the domain name is not enabled, it will take up 59 words)**
1545
1546 HDWn: Control the execution or stop of [MQTT Server].
1547
1548 |Value|Description
1549 |0|Ready
1550 |1|Start
1551 |2|Stop
1552 |3|Update
1553
1554 HDWn+1: IP address of the MQTT server. (✎**Note: This address is only valid when IP is used.**)
1555
1556 HDWn+5: Port number of the MQTT server.
1557
1558 HDWn+6: Client ID of the MQTT server connection.
1559
1560 HDWn+26: Authentication is enabled or not. = 0, disabled; = 1, enabled.
1561
1562 HDWn+27: User name of MQTT server connection.
1563
1564 HDWn+43: Password of MQTT server connection.
1565
1566 HDWn+59: Domain name of the MQTT server. (**✎Note: This address is only valid if the domain name is used.**)
1567
1568
1569 **TLS/SSL Settings**
1570
1571 (% style="text-align:center" %)
1572 [[image:5.jpg]]
1573
1574 **Enable:** Enable TLS/SSL encryption. User can manually select encrypted versions of TLS 1.0, TLS 1.1, or TLS 1.2.
1575
1576 **Server authentication:**
1577
1578 Enable: Verify whether the server certificate has been certified by a Certificate Authority Certificate (CA). Server certificates are sent by the server when connection is established.
1579
1580 Import: Select CA certificate to import.
1581
1582 More: After the import is successful, clicking it will display the certificate details.
1583
1584 Reset: Reset the import information.
1585
1586 The server name must match the certificate information: Verify whether the server name or IP matches with the information in the certificate. Domain name and IP are recorded in the Subject Alternative Name from certificate.
1587
1588 **Client authentication:** The private key and client certificate are the data required for the server to authenticate the client end.
1589
1590 Certificate:
1591
1592 Import: Select certificate to import.
1593
1594 More: After the import is successful, clicking it will display the certificate details.
1595
1596 Reset: Reset the import information.
1597
1598 Key:
1599
1600 Import: Select the key to import.
1601
1602 More: After the import is successful, clicking it will display key details.
1603
1604 Reset: Reset the import information.
1605
1606
1607 **System topics**
1608
1609 (% style="text-align:center" %)
1610 [[image:6.jpg]]
1611
1612 **Birth Topic: **The message that HMI will publish when it is connected to server.
1613
1614 **Close Topic:** The last send message before HMI actively disconnects from server connection
1615
1616 **Last Will: **Subscription of Last Will receive this message when an abnormal disconnection occurs between HMI and the server. HMI synchronizes the Last Will message to the server when it initially establishes the connection.
1617
1618 **Topic List:** A list of topics in the HMI that is sent to the server after the HMI is connected to the server.
1619
1620 **Topic:** The actual topic name of the system topic. Maximum input length: 255 characters, cannot be empty.
1621
1622 **Retain message: **The MQTT server keeps the latest message.
1623
1624 **QoS: **MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
1625
1626 QoS 0: Messages are sent only once, and delivery is not guaranteed.
1627
1628 QoS 1: Message must be delivered at least once.
1629
1630 QoS 2: Message is delivered just once.
1631
1632 **Content format:**
1633
1634 **JSON (Default):** Use default values, default values for each system topic (**The bold is represented as the current actual value**)
1635
1636 **Birth Topic:** 
1637 {
1638 "d": {
1639 "connected": true
1640 },
1641 "ts": " **Current time**"
1642 }**Close Topic: **
1643 {
1644 "d": {
1645 "connected": false
1646 },
1647 "ts": " **Current time**"
1648 }**Last Will: **
1649 {
1650 "d": {
1651 "connected": false
1652 }
1653 }**Topic list:** 
1654 {
1655 "d": {
1656 "topics": [
1657 {
1658 "compression": "
1659
1660
1661 ",
1662
1663 "nickname": "**Subject name**",
1664
1665 "topic": "**Theme**"
1666 },
1667 {
1668 "compression": "**Compression type**",
1669
1670 "nickname": "**Subject nam**e",
1671
1672 "topic": "**Theme**"
1673 }
1674 ]
1675 },
1676 "ts": "**Current time**"
1677 }
1678
1679 Messages within topics vary depending on the actual topic settings. The above is an example of two topics.
1680
1681 **JSON (Customized):** Use custom content.
1682
1683 **Choose the connection network card**
1684
1685 (% style="text-align:center" %)
1686 [[image:7.jpg]]
1687
1688 **Default:** According to the priority order of network adapters set in the HMI background to connect server.
1689
1690 **Ethernet 1: **Specify Ethernet 1 network card to connect to the server. When the system does not find Ethernet 1, connect to the server by “Default”. When system finds Ethernet 1 and binds it to connect to the server.
1691
1692 **Ethernet 2: **Specify Ethernet 2 network card to connect to the server. When the system does not find Ethernet 2, connect to the server by “Default”. When system finds Ethernet 2 and binds it to connect to the server.
1693
1694 **4G:** Specify 4G network card to connect to server. When the system does not find 4G, connect to the server by “Default”. When system finds 4G and binds it to connect to the server.
1695
1696 **Wi-Fi:** Specify Wi-Fi network card to connect to server. When the system does not find Wi-Fi, connect to the server by “Default”. When the system finds Wi-Fi and bind it to connect to the server.
1697
1698
1699 **MQTT Topic**
1700
1701 **MQTT topic publish**
1702
1703 Select [Topic publish], click [Add], enter [Add MQTT topic publish object], and set the general settings and address. The maximum number of MQTT published topics is 255.
1704
1705 (% style="text-align:center" %)
1706 [[image:8.jpg]]
1707
1708 **General properties**
1709
1710 (% style="text-align:center" %)
1711 [[image:9.jpg]]
1712
1713 **Alias:** Set the project name of the MQTT topic. Maximum input length: 255 characters, cannot be empty.
1714
1715 **Topic:** The topic received by the MQTT server when sending message. Maximum input length: 255 characters, cannot be empty.
1716
1717 Sending mode: (AUTO/TRIGGER)
1718
1719 **① AUTO **value change mode: When any value changes, MQTT message is published.
1720
1721 a. Minimum time interval between messages: The minimum time interval can be set between messages to avoid over-publishing MQTT messages. When the interval of value change is less than the minimum time interval between messages, the message will be put in the cache. The MQTT message will not be published until the minimum interval between messages is met. Range: 0~~3600000ms.
1722
1723 b. Periodic mode: Publish MQTT message by the fixed time. Time interval: Set the time interval for periodic publishing. The range is 1~~3600s.
1724
1725 **② TRIGGER**
1726
1727 When the specified bit is triggered, the MQTT message is published. When HDX0.0 changes from OFF to ON, an MQTT message is published, and HDX0.0 is automatically set to OFF after publishing.
1728
1729 **Compression type:** Message is compressed before it is transmitted. The compressed message needs to be decompressed before the MQTT client reads it. Zilb, Gzip, or Deflate algorithm can be chosen to compress or decompress the message.
1730
1731 **QoS:** MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
1732
1733 0: Messages are sent only once, and delivery is not guaranteed.
1734
1735 1: Message must be delivered at least once.
1736
1737 2: Message is delivered just once.
1738
1739 **Retain message: **When checked, the MQTT server keeps the latest message.
1740
1741 **Content format:**
1742
1743 Raw data: Data composed of BYTE data.
1744
1745 JSON (General): Put all data in JSON format of member "d".
1746
1747 JSON (Advanced): JSON format of flexibly customizable nested structure.
1748
1749 **Include timestamps:** This function is only supported when the content format uses [JSON (General)], and whether to include the timestamp can be decided manually.
1750
1751 **Use the top "d" symbol in the message format:**
1752
1753 This function is only supported when the content format uses [JSON (General)]. When checked, the message format is as follows:
1754
1755 {
1756
1757 "d": {
1758
1759 "addressName1": ...,
1760
1761 "addressName2":...
1762
1763 },
1764
1765 "ts":...
1766
1767 }
1768
1769 When unchecked, the message format is as follows:
1770
1771 {
1772
1773 "addressName1": ...,
1774
1775 "addressName2":...,
1776
1777 "ts":...
1778
1779 }
1780
1781 As shown above, when unchecked, ts and address names are both key at the same level. Therefore, avoid taking the address name as ts.
1782
1783 **Address setting**
1784
1785 ①Address settings when content formats use [Raw Data] and [JSON (General)].
1786
1787 (% style="text-align:center" %)
1788 [[image:10.jpg]]
1789
1790 **Add:** Establish the address source of the topic. The length of each address can be set separately.
1791
1792 **Delete:** Delete the address.
1793
1794 **Settings:** Modify the address and name.
1795
1796 (% style="text-align:center" %)
1797 [[image:11.jpg]]
1798
1799 **Included in all message sent**
1800
1801 Check the options: This topic will include this address every time it publishes a message.
1802
1803 Uncheck the options: When the sending mode is value, message is published only when the value of the address changes.
1804
1805 **Remove JSON array brackets' ['and'] ':**
1806
1807 Check the options: Remove the array symbol name when using non-array bits or characters.
1808
1809 **✎Note: A topic can be configured up to 255 nodes. The name length of a node can be configured up to a maximum of 255 characters and cannot be empty.**
1810
1811 ② Address setting when the content format uses [JSON (Advanced)]. [JSON (Advanced)] supports nested structure, which can use components, arrays and other forms. Timestamps and data names can also be customized, which is a more flexible design method.
1812
1813 (% style="text-align:center" %)
1814 [[image:12.jpg]]
1815
1816 The above figure is an example. If setting like above figure, the subscription side will receive the MQTT message like following format.
1817
1818 {
1819 "object": {
1820 "value": "teststring",
1821 "value (1)": 123,
1822 "value (2)": true,
1823 "value (3)": "",
1824 "value (4)": 0,
1825 "value (5)": true
1826 },
1827 "array": [
1828 10,
1829 20,
1830 30
1831 ],
1832 "value (6)": " 2023-04-27T03: 53: 20.156271 "
1833 }
1834
1835 **New component:** Add a new data component. Components can have multiple data formats; each data format has its own Name and Value. The data of the component is included in braces {}.
1836
1837 **New value:** Add a new value, string, or timestamp. When it is a value or a string, it can be fixed value or read data from a specified address.
1838
1839 **Delete:** Delete the selected field.
1840
1841 **Settings:** Modify the selected field. If the selected fields are components and arrays, only the names can be modified. But components and arrays include values that can modify parameters.
1842
1843 **Template:** Paste the JSON text here, and the system will automatically arrange the style to conform to this JSON format, saving the time of self-definition.
1844
1845 **Preview:** Preview JSON data in an easy-to-read format.
1846
1847 **✎Note: A Topic can be up to 512 nodes (including payload), and a node name can be configured to be up to 255 characters length.**
1848
1849 **Security settings**
1850
1851 The topic is published only when the register status matches the setting. As shown in the following figure, this topic will not be published until the address HDX0.0 is set to ON.
1852
1853 (% style="text-align:center" %)
1854 [[image:13.jpg]]
1855
1856 **MQTT topic subscription**
1857
1858 Select [Topic subscription] and click [Add] to enter general property settings and address settings. The maximum number of MQTT subscription topics is 255.
1859
1860 (% style="text-align:center" %)
1861 [[image:14.jpg]]
1862
1863 **General properties**
1864
1865 (% style="text-align:center" %)
1866 [[image:15.jpg]]
1867
1868 **Alias:** Set the project name of the MQTT topic. Maximum input length: 255 characters, cannot be empty.
1869
1870 **Topic:** Topics subscribed from the MQTT server. Maximum input length: 255 characters, cannot be empty.
1871
1872 **Compression type:** The transport compression type of a subscription topic must be the same as that of a publication topic.
1873
1874 **QoS:** MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
1875
1876 0: Messages are sent only once, and delivery is not guaranteed.
1877
1878 1: Message must be delivered at least once.
1879
1880 2: Message is delivered just once.
1881
1882 **Content format:**
1883
1884 Raw data: There is no original data in a specific format.
1885
1886 JSON (General): JSON format of single-layer structure.
1887
1888 JSON (Advanced): JSON format of flexibly customizable nested structure.
1889
1890 **Verify timestamp:** The user can decide whether to verify the timestamp or not. When checked, it indicates that the received data timestamp must be strictly incremented before it can be updated. Otherwise, it will be judged as outdated data and not updated.
1891
1892 **Use the top "d" symbol in the message format:**
1893
1894 This function is only supported when the content format uses [JSON (General)]. When checked, the message format is as follows:
1895
1896 {
1897
1898 "d": {
1899
1900 "addressName1": ...,
1901
1902 "addressName2":...
1903
1904 },
1905
1906 "ts":...
1907
1908 }
1909
1910 When unchecked, the message format is as follows:
1911
1912 {
1913
1914 "addressName1": ..., "addressName2":...,
1915
1916 "ts":...
1917
1918 }
1919
1920 Please select the appropriate settings according to the data source.
1921
1922 **Address settings**
1923
1924 ①Address settings when content formats use [Raw Data] and [JSON (General)].
1925
1926 (% style="text-align:center" %)
1927 [[image:16.jpg]]
1928
1929 **Add:** Establish the address where the data is stored after the topic is subscribed, and the length of each address can be set separately.
1930
1931 **Delete:** Delete the address.
1932
1933 **Settings:** Modify the address and name.
1934
1935 (% style="text-align:center" %)
1936 [[image:17.jpg]]
1937
1938 **Remove JSON array brackets' ['and'] ':**
1939
1940 When using non-array bits or characters, array symbol can manually be removed.
1941
1942 **✎Note: A topic can be configured up to 255 nodes. The name length of a node can be configured up to a maximum of 255 characters and cannot be empty.**
1943
1944 ② Address setting when the content format uses [JSON (Advanced)]. [JSON (Advanced)] supports nested structure, which can use components, arrays and other forms. Timestamps and data names can also be customized, which is a more flexible design method.
1945
1946 (% style="text-align:center" %)
1947 [[image:18.jpg]]
1948
1949 **New component:** Add a new data component. There can be multiple data formats in a component, each with a name and a value. The data of the component is included in braces {}.
1950
1951 **New Array:** Add a new data array. Arrays can have multiple data formats, but only one name. The data of the component is included in brackets [].
1952
1953 **New value:** Add a new value, string, or timestamp. When it is a value or a string, it can be fixed value or read data from a specified address.
1954
1955 **Delete:** Delete the selected field.
1956
1957 **Settings:** Modify the selected field. If the selected fields are components and arrays, only the names can be modified. But components and arrays include values that can modify parameters.
1958
1959 **Template:** Paste the JSON text here, and the system will automatically arrange the style to conform to this JSON format, saving the time of self-definition.
1960
1961 **Preview:** Preview JSON data in an easy-to-read format.
1962
1963 **✎Note: A Topic can be up to 512 nodes (including payload), and a node name can be configured to be up to 255 characters length.**
1964
1965 **(3) Security settings**
1966
1967 The topic is published only when the register status matches the setting. As shown in the following figure, this topic will not be published until the address HDX0.0 is set to ON.
1968
1969 (% style="text-align:center" %)
1970 [[image:19.jpg]]
1971
1972 **MQTT Server Settings (AWS IOT)**
1973
1974 **General**
1975
1976 (% style="text-align:center" %)
1977 [[image:20.jpg]]
1978
1979 **Description:** Enter a description or comment about the server. Maximum input length: 255 characters, cannot be empty.
1980
1981 **Cloud service description**: (Select AWS IOT)
1982
1983 ① Common (Common Platform): General MQTT publish-subscribe topic mode.
1984
1985 ② AWS IoT (Amazon): Using "AWS IoT" as the Broker, using Thing to transfer data and support Shadow function.
1986
1987 ③ ALi (Alibaba Cloud): Using "Alibaba Cloud" as Broker.
1988
1989 ④ Huawei (Huawei Cloud): Using "Huawei Cloud" as Broker.
1990
1991 **Communication protocol**: MQTT v3.1.1 is supported.
1992
1993 **Domain name:** Set the domain name of the MQTT server that receives message. (Obtained from the AWS IOT platform) Maximum input length: 128 characters, cannot be empty, supports letters, numbers, "-", “.”. The symbol cannot be placed at the first character or last character of name.
1994
1995 **Port number:** Set the MQTT server port to receive message. Range: 0~~65535, cannot be empty. (AWS IOT platform is generally 8883).
1996
1997 **Client ID:** Login name. Variables can be used as login names. For example: Enter %0 and the Client ID is the device name (This can be set in the HMI background. If not, the default is HMI model). **(✎Note: A Client ID can only be used on one device.)** The maximum configurable length is 40 characters.
1998
1999 **Timestamp:** LOCAL: Using the HMI time as the timestamp. UTC Time: Using UTC+0.
2000
2001
2002 **Address**
2003
2004 (% style="text-align:center" %)
2005 [[image:21.jpg]]
2006
2007 **Status address: (Total length: 2 words)**
2008
2009 HDWn: Display [MQTT] connection status.
2010
2011 |Value|Description
2012 |0|Disable MQTT server connection
2013 |1|Disconnected or connecting
2014 |2|Successfully connected the MQTT server
2015
2016 HDWn+1: Error prompt
2017
2018 |Value|Description
2019 |0|No error
2020 |-1|General error code of wrong operation
2021 |-3|Disconnected
2022 |-4|Exceed client data concurrency
2023 |-5|Invalid UTF-8 string
2024 |-6|Null pointer parameter
2025 |-7|Topic name is truncated
2026 |-8|Wrong protocol structure body
2027 |-9|Wrong QOS.  (0, 1, 2) is acceptable.
2028 |-10|Attempt to use a non-SSL library for SSL connection
2029 |-11|Wrong MQTT version
2030 |-14|Wrong protocol type
2031 |-15|Option is not suitable for the current request version
2032 |-16|Call MQTT version that is not applicable to request.
2033 |-17|0 length topic connection
2034
2035 **Buffer usage address:** Not available.
2036
2037 **Control address: (Total length: 90 words)**
2038
2039 HDWn: Control the execution or stop of [MQTT Server].
2040
2041 |Value|Description
2042 |0|Ready
2043 |1|Start
2044 |2|Stop
2045 |3|Update
2046
2047 HDWn+1: Reserved for use.
2048
2049 HDWn+5: Port number of the AWS IOT connection.
2050
2051 HDWn+6: Client ID of the AWS IOT connection.
2052
2053 HDWn+26: Domain name of the AWS IOT connection. 
2054
2055 **TLS/SSL Settings**
2056
2057 (% style="text-align:center" %)
2058 [[image:22.jpg]]
2059
2060 **Enable:**
2061
2062 Enabled by default. The default is TLS V1.2.
2063
2064 **Server authentication:**
2065
2066 Enabled by default: Verify whether the server certificate has been certified by a Certificate Authority Certificate (CA). Server certificates are sent by the server when connection is established.
2067
2068 Import: Select CA certificate to import.
2069
2070 More: After the import is successful, clicking it will display the certificate details.
2071
2072 Reset: Reset the import information.
2073
2074 The server name must be matched with the certificate information to verify whether the server name or IP matches the records in the certificate. Domain name and IP are recorded in the Subject Alternative Name in the certificate.
2075
2076 **(3) Client authentication:** The private key and client certificate are the data required for the server to authenticate the client end.
2077
2078 Certificate:
2079
2080 Import: Select certificate to import.
2081
2082 More: After the import is successful, clicking it will display the certificate details.
2083
2084 Reset: Reset the import information.
2085
2086 Key:
2087
2088 Import: Select the key to import.
2089
2090 More: After the import is successful, clicking it will display key details.
2091
2092 Reset: Reset the import information.
2093
2094
2095 **Device setting**
2096
2097 Select [Add] to enter [General property settings and address settings]. To delete a device, select the device and click Delete.
2098
2099 (% style="text-align:center" %)
2100 [[image:23.jpg]]
2101
2102 **General**
2103
2104 (% style="text-align:center" %)
2105 [[image:24.jpg]]
2106
2107 **Device name:** It is consistent with the item name on AWS IOT. Maximum input length: 128 characters, cannot be empty, supports letters, numbers, "-", "_".
2108
2109 **Description:** For distinguish purpose. Maximum input length: 255 characters.
2110
2111 **Minimum time interval between messages:** The minimum time interval can be set between messages to avoid over-publishing MQTT messages. That is, when the interval of value change is less than the minimum time interval between messages, the message will be put in the cache, and the MQTT message will not be released until the minimum time interval between messages is met. Range: 0~~3600000ms.
2112
2113 **QoS:** MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
2114
2115 0: Messages are sent only once, and delivery is not guaranteed.
2116
2117 1: Message must be delivered at least once.
2118
2119 2: Message is delivered just once.
2120
2121 **Content format:** Not configurable. All data is in JSON format.
2122
2123 **Include timestamps:** Whether to include the timestamp can be decided manually.
2124
2125 **Use the top "d" symbol in the message format:**
2126
2127 This function is only supported when the content format uses [JSON (General)]. When checked, the message format is as follows:
2128
2129 {
2130
2131 "d": {
2132
2133 "addressName1": ...,
2134
2135 "addressName2":...
2136
2137 },
2138
2139 "ts":...
2140
2141 }
2142
2143 When unchecked, the message format is as follows:
2144
2145 {
2146
2147 "addressName1": ...,
2148
2149 "addressName2":...,
2150
2151 "ts":...
2152
2153 }
2154
2155 As shown above, when unchecked, ts and address names are both key at the same level. Therefore, avoid taking the address name as ts.
2156
2157 **Address**
2158
2159 (% style="text-align:center" %)
2160 [[image:25.jpg]]
2161
2162 **Add:** Establish the address source of the topic. The length of each address can be set separately.
2163
2164 **Delete:** Delete the address.
2165
2166 **Settings:** Modify the address and name.
2167
2168 (% style="text-align:center" %)
2169 [[image:26.jpg]]
2170
2171 **Advanced Mode:**
2172
2173 Check the options: Check to configure four “Settings/Status".
2174
2175 Uncheck the options: Check to configure two "Settings/Status".
2176
2177 **Name:** Correspond to the key value in JSON.
2178
2179 **Type:** “Bit" and “Word” are optional. “Word” configuration can choose system of numeration.
2180
2181 **Length:**
2182
2183 Length 1: General JSON format.
2184
2185 Length > 1: Enable the format of JSON array. The values of continuous address with the configuration address as the first address as the elements of the array. This length is valid to the selected "settings/status”. (For example, the length is set to 3, and 4 "settings/states" are checked, so the length of these 4 are all 3). Range: 1-255.
2186
2187 For example, configure as the following figure:
2188
2189 (% style="text-align:center" %)
2190 [[image:27.jpg]]
2191
2192 Then HDW0, HDW2 and HDW4 will be read and published to the reported key; HDW10, HDW12, HDW14 will be read and published to the desired key. For example, if HDW0=1, HDW2=2, HDW4=3, HDW10=4, HDW12=5, and HDW14=6, the subscribed message format is as follows.
2193
2194 {
2195
2196 "state": {
2197
2198 "desired": {
2199
2200 "welcome": [1, 2, 3]
2201
2202 },
2203
2204 "reported": {
2205
2206 "welcome": [4, 5, 6]
2207
2208 }
2209
2210 }
2211
2212 }
2213
2214 **Status (Device address~-~->AWS IOT "reported"):** Pass a value from the Device address to the AWS IOT “reported” in one direction, which is equivalent to publishing to "reported".
2215
2216 **Setting (Device address->AWS IOT "desired"):** Pass a value from the Device address to the AWS IOT “desired” in one direction, which is equivalent to publishing to “desired".
2217
2218 **Status (AWS IOT "reported"->Device address):** Pass a value from AWS IOT "reported" to Device address in one direction, which is equivalent to subscribing to "reported".
2219
2220 **Settings (AWS IOT "desired"->Device address):** Pass a value from the AWS IOT "desired" to the Device address in one direction, which is equivalent to subscribing to "desired".
2221
2222 **Remove JSON array brackets' ['and'] ':** Check to remove array symbols when using non-array bits or characters. (Configurable when length is 1).
2223
2224 **MQTT Server Settings (ALi)**
2225
2226 **General**
2227
2228 (% style="text-align:center" %)
2229 [[image:28.jpg]]
2230
2231 **Description:** Enter a description or comment about the server. Maximum input length: 255 characters, cannot be empty.
2232
2233 **Cloud service description**: (Select Ali)
2234
2235 ① Common (Common Platform): General MQTT publish-subscribe topic mode.
2236
2237 ② AWS IoT (Amazon): Using "AWS IoT" as the Broker, using Thing to transfer data and support Shadow function.
2238
2239 ③ ALi (Alibaba Cloud): Using "Alibaba Cloud" as Broker.
2240
2241 ④ Huawei (Huawei Cloud): Using "Huawei Cloud" as Broker.
2242
2243 **Communication protocol**: MQTTv3.1, v3.1.1 and v5 are supported.
2244
2245 **Domain name:** Set the domain name of the MQTT server that receives message. Maximum input length: 128 characters, cannot be empty, supports letters, numbers, "-", “.”. The symbol cannot be placed at the first character or last character of name.
2246
2247 **Port number:** Set the MQTT server port to subscribe message. Range: 0~~65535, cannot be empty.
2248
2249 **Client ID:** Login name. Variables can be used as login names. For example: Enter %0 and the Client ID is the device name (This can be set in the HMI background. If not, the default is HMI model). (Note: A Client ID can only be used for one device.) When there is no custom Client ID length, the maximum configurable length of a Client ID is 64 characters.
2250
2251 **ProductId:** The key of the product to which the device belongs, that is, the globally unique identifier issued by the IoT platform for the product. (Obtained from Alibaba Cloud Platform) Maximum input length: 128 characters.
2252
2253 **DeviceId:** Unique identifier of the device within the product. DeviceName is combined with ProductKey of the product to which the device belongs as the device identification, which is used for connection authentication and communication with the IoT platform. (Obtained from Alibaba Cloud Platform) Maximum input length: 64 characters.
2254
2255 **DeviceSecret:** The device key issued by the IoT platform for devices is used for authentication and encryption. It needs to be used in pairs with DeviceName. (Obtained from Alibaba Cloud Platform) Maximum input length: 128 characters.
2256
2257 **Encryption algorithm:** Alibaba Cloud's signature algorithm type supports hmacmd5 and hmacsha1.
2258
2259 **Timestamp:** LOCAL: Using the HMI time as the timestamp. UTC Time: Use UTC+0 time.
2260
2261 **Clean message cache when normal connected:** If option is enabled, when the device is disconnected, the message to be published will be cached in the cache area, and then will be published when the device is online again.
2262
2263
2264 **Address**
2265
2266 (% style="text-align:center" %)
2267 [[image:29.jpg]]
2268
2269 **Status address: (Total length: 2 words)**
2270
2271 HDWn: Display [MQTT] connection status.
2272
2273 |Value|Description
2274 |0|Disable MQTT server connection
2275 |1|Disconnected or connecting
2276 |2|Successfully connected the MQTT server
2277
2278 HDWn+1: Error prompt
2279
2280 |Value|Description
2281 |0|No error
2282 |-1|General error code of wrong operation
2283 |-3|Disconnected
2284 |-4|Exceed client data concurrency
2285 |-5|Invalid UTF-8 string
2286 |-6|Null pointer parameter
2287 |-7|Topic name is truncated
2288 |-8|Wrong protocol structure body
2289 |-9|Wrong QOS.  (0, 1, 2) is acceptable.
2290 |-10|Attempt to use a non-SSL library for SSL connection
2291 |-11|Wrong MQTT version
2292 |-14|Wrong protocol type
2293 |-15|Option is not suitable for the current request version
2294 |-16|Call MQTT version that is not applicable to request.
2295 |-17|0 length topic connection
2296
2297 **Buffer usage address: (Total length: 1 word)**
2298
2299 Unsuccessful published message will be stored in memory as cache, with a maximum 100,000 messages or 2M. Value display as unit %, and it is carried unconditionally.
2300
2301 HDWn: Display buffer usage.
2302
2303 **Control address: (Total length: 258 words)**
2304
2305 HDWn: Control the execution or stop of [MQTT Server].
2306
2307 |Value|Description
2308 |0|Ready
2309 |1|Start
2310 |2|Stop
2311 |3|Update
2312
2313 HDWn+1: Port number of the Alibaba Cloud connection.
2314
2315 HDWn+2: Domain name title of the Alibaba Cloud connection.
2316
2317 HDWn+66: Client ID of the Alibaba Cloud connection.
2318
2319 HDWn+98: ProductId of the Alibaba Cloud connection.
2320
2321 HDWn+162: DeviceId of the Alibaba Cloud connection.
2322
2323 HDWn+194: DeviceSecret of the Alibaba Cloud connection.
2324
2325 **TLS/SSL Settings**
2326
2327 (% style="text-align:center" %)
2328 [[image:30.jpg]]
2329
2330 **Enable:** Enable TLS/SSL encryption. User can manually select encrypted versions of TLS 1.0, TLS 1.1, or TLS 1.2.
2331
2332 **Server authentication:**
2333
2334 Enable: Verify whether the server certificate has been certified by a Certificate Authority Certificate (CA). Server certificates are sent by the server when connection is established.
2335
2336 Import: Select CA certificate to import.
2337
2338 More: After the import is successful, clicking it will display the certificate details.
2339
2340 Reset: Reset the import information.
2341
2342 The server name must be matched with the certificate information to verify whether the server name or IP matches the records in the certificate. Domain name and IP are recorded in the Subject Alternative Name in the certificate.
2343
2344 **(3) Client authentication:** The private key and client certificate are the data required for the server to authenticate the client end.
2345
2346 Certificate:
2347
2348 Import: Select certificate to import.
2349
2350 More: After the import is successful, clicking it will display the certificate details.
2351
2352 Reset: Reset the import information.
2353
2354 Key:
2355
2356 Import: Select the key to import.
2357
2358 More: After the import is successful, clicking it will display key details.
2359
2360 Reset: Reset the import information.
2361
2362
2363 **MQTT Topic**
2364
2365 (% class="wikigeneratedid" id="H1.MQTTtopicpublish" %)
2366 **MQTT topic publish**
2367
2368 Select [Topic publish], click [Add], enter [Add MQTT topic publish object], and set the general settings and address. The maximum number of MQTT published topics is 255.
2369
2370 (% style="text-align:center" %)
2371 [[image:31.jpg]]
2372
2373 **General properties**
2374
2375 (% style="text-align:center" %)
2376 [[image:32.jpg]]
2377
2378
2379 **Alias:** Set the project name of the MQTT theme. Maximum input length: 255 characters, cannot be empty.
2380
2381 **Topic:** The topic received by the MQTT server when sending message. Maximum input length: 255 characters, cannot be empty.
2382
2383 **Sending mode:** **(AUTO/TRIGGER)**
2384
2385 **① AUTO **value change mode: When any value changes, MQTT message is published.
2386
2387 a. Minimum time interval between messages: The minimum time interval can be set between messages to avoid over-publishing MQTT messages. When the interval of value change is less than the minimum time interval between messages, the message will be put in the cache. The MQTT message will not be published until the minimum interval between messages is met. Range: 0~~3600000ms.
2388
2389 b. Periodic mode: Publish MQTT message by the fixed time. Time interval: Set the time interval for periodic publishing, ranging from 1 to 3600s.
2390
2391 **② TRIGGER**
2392
2393 When the specified bit is triggered, the MQTT message is published. When HDX0.0 changes from OFF to ON, an MQTT message is published, and HDX0.0 is automatically set to OFF after publishing.
2394
2395 **Compression type:** Message is compressed before it is transmitted. The compressed message needs to be decompressed before the MQTT client reads it. Zlib, Gzip, or Deflate algorithm can be chosen to compress or decompress the message.
2396
2397 **QoS:** MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
2398
2399 0: Messages are sent only once, and delivery is not guaranteed.
2400
2401 1: Message must be delivered at least once.
2402
2403 2: Message is delivered just once.
2404
2405 **Retain message:** When checked, the MQTT server will keep the latest message.
2406
2407 **Content format:**
2408
2409 Raw data: Data composed of BYTE data.
2410
2411 JSON (General): Put all data in JSON format of member "d".
2412
2413 JSON (Advanced): JSON format of flexibly customizable nested structure.
2414
2415 **Include timestamps:** This function is only supported when the content format uses [JSON (General)], and whether to include the timestamp can be decided manually.
2416
2417 **Use the top "d" symbol in the message format:**
2418
2419 This function is only supported when the content format uses [JSON (General)]. When checked, the message format is as follows:
2420
2421 {
2422
2423 "d": {
2424
2425 "addressName1": ...,
2426
2427 "addressName2":...
2428
2429 },
2430
2431 "ts":...
2432
2433 }
2434
2435 When unchecked, the message format is as follows:
2436
2437 {
2438
2439 "addressName1": ...,
2440
2441 "addressName2":...,
2442
2443 "ts":...
2444
2445 }
2446
2447 As shown above, when unchecked, ts and address names are both key at the same level. Therefore, avoid taking the address name as ts.
2448
2449
2450 **Address setting**
2451
2452 ①Address settings when content formats use [Raw Data] and [JSON (General)].
2453
2454 (% style="text-align:center" %)
2455 [[image:33.jpg]]
2456
2457 **Add:** Establish the address source of the topic. The length of each address can be set separately.
2458
2459 **Delete:** Delete the address.
2460
2461 **Settings:** Modify the address and name.
2462
2463 (% style="text-align:center" %)
2464 [[image:34.jpg]]
2465
2466 **Included in all message sent**
2467
2468 Check the options: This topic will include this address every time it publishes a message.
2469
2470 Uncheck the options: When the sending mode is value, message is published only when the value of the address changes.
2471
2472 **Remove JSON array brackets' ['and'] ':**
2473
2474 Check the options: Remove the array symbol name when using non-array bits or characters.
2475
2476 **✎Note: A topic can be configured up to 255 nodes. The name length of a node can be configured up to a maximum of 255 characters and cannot be empty.**
2477
2478 ② Address setting when the content format uses [JSON (Advanced)]. [JSON (Advanced)] supports nested structure, which can use components, arrays and other forms. Timestamps and data names can also be customized, which is a more flexible design method.
2479
2480 (% style="text-align:center" %)
2481 [[image:HMIEditor_Db5tLtioq7.jpg]]
2482
2483 The above figure is an example. If setting like above figure, the subscription side will receive the MQTT message like following format.
2484
2485 {
2486 "object": {
2487 "value": "teststring",
2488 "value (1)": 123,
2489 "value (2)": true,
2490 "value (3)": "",
2491 "value (4)": 0,
2492 "value (5)": true
2493 },
2494 "array": [
2495 10,
2496 20,
2497 30
2498 ],
2499 "value (6)": " 2023-04-27T03: 53: 20.156271 "
2500 }
2501
2502 **New component:** Add a new data component. Components can have multiple data formats; each data format has its own Name and Value. The data of the component is included in braces {}.
2503
2504 **New value:** Add a value, string, or timestamp. When it is a value or a string, data can be read for a fixed value or from a specified address.
2505
2506 **Delete:** Delete the selected field.
2507
2508 **Settings:** Modify the selected field. If the selected fields are components and arrays, only the names can be modified. But components and arrays include values that can modify parameters.
2509
2510 **Template:** Paste the JSON text, and the system will automatically arrange the schema to conform to this JSON format, saving the time of self-definition.
2511
2512 **Preview:** Preview JSON data in an easy-to-read format.
2513
2514 **✎Note: A Topic can be up to 512 nodes (including payload), and a node name can be configured to be up to 255 characters length.**
2515
2516
2517 **Security settings**
2518
2519 The topic is published only when the register status matches the setting. As shown in the following figure, this topic will not be published until the address HDX0.0 is set to ON.
2520
2521 (% style="text-align:center" %)
2522 [[image:35.jpg]]
2523
2524 **MQTT topic subscription**
2525
2526 Select [Topic subscription] and click [Add] to enter general property settings and address settings. The maximum number of MQTT subscription topics is 255.
2527
2528 (% style="text-align:center" %)
2529 [[image:36.jpg]]
2530
2531 **General properties**
2532
2533 (% style="text-align:center" %)
2534 [[image:37.jpg]]
2535
2536 **Alias:** Set the project name of the MQTT theme. Maximum input length: 255 characters, cannot be empty.
2537
2538 **Topic:** Topics subscribed from the MQTT server. Maximum input length: 255 characters, cannot be empty.
2539
2540 **Compression type:** The transport compression type of a subscription topic must be the same as that of a publication topic.
2541
2542 **QoS:** MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
2543
2544 0: Messages are sent only once, and delivery is not guaranteed.
2545
2546 1: Message must be delivered at least once.
2547
2548 2: Message is delivered just once.
2549
2550 **Content format:**
2551
2552 Raw data: There is no original data in a specific format.
2553
2554 JSON (General): JSON format of single-layer structure.
2555
2556 JSON (Advanced): JSON format of flexibly customizable nested structure.
2557
2558 **Verify timestamp:** The user can decide whether to verify the timestamp or not. When checked, it indicates that the received data timestamp must be strictly incremented before it can be updated. Otherwise, it will be judged as outdated data and not updated.
2559
2560 **Use the top "d" symbol in the message format:**
2561
2562 This function is only supported when the content format uses [JSON (General)]. When checked, the message format is as follows:
2563
2564 {
2565
2566 "d": {
2567
2568 "addressName1": ...,
2569
2570 "addressName2":...
2571
2572 },
2573
2574 "ts":...
2575
2576 }
2577
2578 When unchecked, the message format is as follows:
2579
2580 {
2581
2582 "addressName1": ..., "addressName2":...,
2583
2584 "ts":...
2585
2586 }
2587
2588 Please select the appropriate settings according to the data source.
2589
2590 **Address setting**
2591
2592 ①Address settings when content formats use [Raw Data] and [JSON (General)].
2593
2594 (% style="text-align:center" %)
2595 [[image:38.jpg]]
2596
2597 **Add:** Establish the address where the data is placed after the topic is subscribed, and the length of each address can be set separately.
2598
2599 **Delete:** Delete the address.
2600
2601 **Settings:** Modify the address and name.
2602
2603 (% style="text-align:center" %)
2604 [[image:39.jpg]]
2605
2606 **Remove JSON array brackets' ['and'] ':**
2607
2608 When using non-array bits or characters, array symbol can manually be removed.
2609
2610 **✎Note: A topic can be configured up to 255 nodes. The name length of a node can be configured up to a maximum of 255 characters and cannot be empty.**
2611
2612 ② Address setting when the content format uses [JSON (Advanced)]. [JSON (Advanced)] supports nested structure, which can use components, arrays and other forms. Timestamps and data names can also be customized, which is a more flexible design method.
2613
2614 (% style="text-align:center" %)
2615 [[image:40.jpg]]
2616
2617 **New component:** Add a new data component. There can be multiple data formats in a component, each with a name and a value. The data of the component is included in braces {}.
2618
2619 **New Array:** Add a new data array. Arrays can have multiple data formats, but only one name. The data of the component is included in brackets [].
2620
2621 **New value:** Add a value, string, or timestamp. When it is a value or a string, data can be read for a fixed value or from a specified address.
2622
2623 **Delete:** Delete the selected field.
2624
2625 **Settings:** Modify the selected field. If the selected fields are components and arrays, only the names can be modified. But components and arrays include values that can modify parameters.
2626
2627 **Template:** Paste the JSON text, and the system will automatically arrange the schema to conform to this JSON format, saving the time of self-definition.
2628
2629 **Preview:** Preview JSON data in an easy-to-read format.
2630
2631 **✎Note: A Topic can be up to 512 nodes (including payload), and a node name can be configured to be up to 255 characters length.**
2632
2633
2634 **Security settings**
2635
2636 The topic is published only when the register status matches the setting. As shown in the following figure, this topic will not be published until the address HDX0.0 is set to ON.
2637
2638 (% style="text-align:center" %)
2639 [[image:41.jpg]]
2640
2641 **MQTT Server Settings (Huawei)**
2642
2643 **General**
2644
2645 (% style="text-align:center" %)
2646 [[image:42.jpg]]
2647
2648 **Description:** Enter a description or comment about the server. Maximum input length: 255 characters, cannot be empty.
2649
2650 **Cloud service description**: (Select Huawei)
2651
2652 ① Common (Common Platform): General MQTT publish-subscribe topic mode.
2653
2654 ② AWS IoT (Amazon): Using "AWS IoT" as the Broker, using Thing to transfer data and support Shadow function.
2655
2656 ③ ALi (Alibaba Cloud): Using "Alibaba Cloud" as Broker.
2657
2658 ④ Huawei (Huawei Cloud): Using "Huawei Cloud" as Broker.
2659
2660 **Communication protocol**: MQTTv3.1, v3.1.1 and v5 are supported.
2661
2662 **Domain name:** Set the domain name of the MQTT server that subscribe message. Maximum input length: 128 characters, cannot be empty, supports letters, numbers, "-", “.”. The symbol cannot be placed at the first character or last character of name.
2663
2664 **Port number:** Set the MQTT server port to subscribe message. Range: 0~~65535, cannot be empty.
2665
2666 **DeviceId:** **Device ID** generated when registering the device in Huawei Cloud. Maximum input length: 128 characters
2667
2668 **DeviceSecret:** Customized **password **when registering devices on Huawei Cloud Maximum input length: 128 characters.
2669
2670 **Timestamp:** LOCAL: Using the HMI time as the timestamp. UTC Time: Using UTC+0.
2671
2672 **Clean message cache when normal connected:** If option is enabled, when the device is disconnected, the message to be published will be cached in the cache area, and then will be published when the device is online again.
2673
2674
2675 **Address**
2676
2677 (% style="text-align:center" %)
2678 [[image:43.jpg]]
2679
2680 **Status address: (Total length: 2 words)**
2681
2682 HDWn: Display [MQTT] connection status.
2683
2684 |Value|Description
2685 |0|Disable MQTT server connection
2686 |1|Disconnected or connecting
2687 |2|Successfully connected the MQTT server
2688
2689 HDWn+1: Error prompt
2690
2691 |Value|Description
2692 |0|No error
2693 |-1|General error code of wrong operation
2694 |-3|Disconnected
2695 |-4|Exceed client data concurrency
2696 |-5|Invalid UTF-8 string
2697 |-6|Null pointer parameter
2698 |-7|Topic name is truncated
2699 |-8|Wrong protocol structure body
2700 |-9|Wrong QOS.  (0, 1, 2) is acceptable.
2701 |-10|Attempt to use a non-SSL library for SSL connection
2702 |-11|Wrong MQTT version
2703 |-14|Wrong protocol type
2704 |-15|Option is not suitable for the current request version
2705 |-16|Call MQTT version that is not applicable to request.
2706 |-17|0 length topic connection
2707
2708 **Buffer usage address: (Total length: 1 word)**
2709
2710 Unsuccessful published message will be stored in memory as cache, with a maximum 100,000 messages or 2M. Value display as unit %, and it is carried unconditionally.
2711
2712 HDWn: Display buffer usage.
2713
2714 **Control address: (Total length: 194 words)**
2715
2716 HDWn: Control the execution or stop of [MQTT Server].
2717
2718 |Value|Description
2719 |0|Ready
2720 |1|Start
2721 |2|Stop
2722 |3|Update
2723
2724 HDWn+1: Port number of the Huawei Cloud.
2725
2726 HDWn+2: Domain name of the Huawei Cloud.
2727
2728 HDWn+66: DeviceSecret of the Huawei Cloud.
2729
2730 HDWn+130: DeviceSecret of the Huawei Cloud.
2731
2732 **TLS/SSL Settings**
2733
2734 (% style="text-align:center" %)
2735 [[image:44.jpg]]
2736
2737 **Enable:** Enable TLS/SSL encryption. User can manually select encrypted versions of TLS 1.0, TLS 1.1, or TLS 1.2.
2738
2739 **Server authentication:**
2740
2741 Enable: Verify whether the server certificate has been certified by a Certificate Authority Certificate (CA). Server certificates are sent by the server when connection is established.
2742
2743 Import: Select CA certificate to import.
2744
2745 More: After the import is successful, clicking it will display the certificate details.
2746
2747 Reset: Reset the import information.
2748
2749 The server name must match the certificate information: Verify whether the server name or IP matches with the information in the certificate. Domain name and IP are recorded in the Subject Alternative Name from certificate.
2750
2751 **Client authentication:** The private key and client certificate are the data required for the server to authenticate the client end.
2752
2753 Certificate:
2754
2755 Import: Select certificate to import.
2756
2757 More: After the import is successful, clicking it will display the certificate details.
2758
2759 Reset: Reset the import information.
2760
2761 Key:
2762
2763 Import: Select the key to import.
2764
2765 More: After the import is successful, clicking it will display key details.
2766
2767 Reset: Reset the import information.
2768
2769 **MQTT Topic**
2770
2771 **MQTT topic publish**
2772
2773 Select [Topic publish], click [Add], enter [Add MQTT topic publish object], and set the general settings and address. The maximum number of MQTT published topics is 255.
2774
2775 (% style="text-align:center" %)
2776 [[image:45.jpg]]
2777
2778 **General properties**
2779
2780 (% style="text-align:center" %)
2781 [[image:46.jpg]]
2782
2783 **Alias:** Set the project name of the MQTT theme. Maximum input length: 255 characters, cannot be empty.
2784
2785 **Topic:** The topic received by the MQTT server when sending message. Maximum input length: 255 characters, cannot be empty.
2786
2787 **Sending mode:** **(AUTO/TRIGGER)**
2788
2789 **① AUTO **value change mode: When any value changes, MQTT message is published.
2790
2791 a. Minimum time interval between messages: The minimum time interval can be set between messages to avoid over-publishing MQTT messages. When the interval of value change is less than the minimum time interval between messages, the message will be put in the cache. The MQTT message will not be published until the minimum interval between messages is met. Range: 0~~3600000ms.
2792
2793 b. Periodic mode: Publish MQTT message by the fixed time. Time interval: Set the time interval for periodic publishing, ranging from 1 to 3600s.
2794
2795 **② TRIGGER**
2796
2797 When the specified bit is triggered, the MQTT message is published. When HDX0.0 changes from OFF to ON, an MQTT message is published, and HDX0.0 is automatically set to OFF after publishing.
2798
2799 **Compression type:** Message is compressed before it is transmitted. The compressed message needs to be decompressed before the MQTT client reads it. Zlib, Gzip, or Deflate algorithm can be chosen to compress or decompress the message.
2800
2801 **QoS:** MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
2802
2803 0: Messages are sent only once, and delivery is not guaranteed.
2804
2805 1: Message must be delivered at least once.
2806
2807 2: Message is delivered just once.
2808
2809 **Retain message:** When checked, the MQTT server will keep the latest message.
2810
2811 **Content format:**
2812
2813 Raw data: Data composed of BYTE data.
2814
2815 JSON (General): Put all data in JSON format of member "d".
2816
2817 JSON (Advanced): JSON format of flexibly customizable nested structure.
2818
2819 **Include timestamps:** This function is only supported when the content format uses [JSON (General)], and whether to include the timestamp can be decided manually.
2820
2821 **Use the top "d" symbol in the message format:**
2822
2823 This function is only supported when the content format uses [JSON (General)]. When checked, the message format is as follows:
2824
2825 {
2826
2827 "d": {
2828
2829 "addressName1": ...,
2830
2831 "addressName2":...
2832
2833 },
2834
2835 "ts":...
2836
2837 }
2838
2839 When unchecked, the message format is as follows:
2840
2841 {
2842
2843 "addressName1": ...,
2844
2845 "addressName2":...,
2846
2847 "ts":...
2848
2849 }
2850
2851 As shown above, when unchecked, ts and address names are both key at the same level. Therefore, avoid taking the address name as ts.
2852
2853
2854 **Address setting**
2855
2856 ①Address settings when content formats use [Raw Data] and [JSON (General)].
2857
2858 (% style="text-align:center" %)
2859 [[image:47.jpg]]
2860
2861 **Add:** Establish the address source of the topic. The length of each address can be set separately.
2862
2863 **Delete:** Delete the address.
2864
2865 **Settings:** Modify the address and name.
2866
2867 (% style="text-align:center" %)
2868 [[image:48.jpg]]
2869
2870 **Included in all message sent**
2871
2872 Check the options: This topic will include this address every time it publishes a message.
2873
2874 Uncheck the options: When the sending mode is value, message is published only when the value of the address changes.
2875
2876 **Remove JSON array brackets' ['and'] ':**
2877
2878 Check the options: Remove the array symbol name when using non-array bits or characters.
2879
2880 **✎Note: A topic can be configured up to 255 nodes. The name length of a node can be configured up to a maximum of 255 characters and cannot be empty.**
2881
2882 ② Address setting when the content format uses [JSON (Advanced)]. [JSON (Advanced)] supports nested structure, which can use components, arrays and other forms. Timestamps and data names can also be customized, which is a more flexible design method.
2883
2884 (% style="text-align:center" %)
2885 [[image:49.jpg]]
2886
2887 The above figure is an example. If setting like above figure, the subscription side will receive the MQTT message like following format.
2888
2889 {
2890 "object": {
2891 "value": "teststring",
2892 "value (1)": 123,
2893 "value (2)": true,
2894 "value (3)": "",
2895 "value (4)": 0,
2896 "value (5)": true
2897 },
2898 "array": [
2899 10,
2900 20,
2901 30
2902 ],
2903 "value (6)": " 2023-04-27T03: 53: 20.156271 "
2904 }
2905
2906 **New component:** Add a new data component. Components can have multiple data formats; each data format has its own Name and Value. The data of the component is included in braces {}.
2907
2908 **New value:** Add a value, string, or timestamp. When it is a value or a string, data can be read for a fixed value or from a specified address.
2909
2910 **Delete:** Delete the selected field.
2911
2912 **Settings:** Modify the selected field. If the selected fields are components and arrays, only the names can be modified. But components and arrays include values that can modify parameters.
2913
2914 **Template:** Paste the JSON text, and the system will automatically arrange the schema to conform to this JSON format, saving the time of self-definition.
2915
2916 **Preview:** Preview JSON data in an easy-to-read format.
2917
2918 **✎Note: A Topic can be up to 512 nodes (including payload), and a node name can be configured to be up to 255 characters length.**
2919
2920
2921 **Security settings**
2922
2923 The topic is published only when the register status matches the setting. As shown in the following figure, this topic will not be published until the address HDX0.0 is set to ON.
2924
2925 (% style="text-align:center" %)
2926 [[image:50.jpg]]
2927
2928
2929 **MQTT topic subscription**
2930
2931 Select [Topic subscription] and click [Add] to enter general property settings and address settings. The maximum number of MQTT subscription topics is 255.
2932
2933 (% style="text-align:center" %)
2934 [[image:51.jpg]]
2935
2936 **General properties**
2937
2938 (% style="text-align:center" %)
2939 [[image:52.jpg]]
2940
2941 **Alias:** Set the project name of the MQTT theme. Maximum input length: 255 characters, cannot be empty.
2942
2943 **Topic:** Topics subscribed from the MQTT server. Maximum input length: 255 characters, cannot be empty.
2944
2945 **Compression type:** The transport compression type of a subscription topic must be the same as that of a publication topic.
2946
2947 **QoS:** MQTT provides three levels of reliability called service quality. The service quality of message transmission determines whether the message is guaranteed to be delivered.
2948
2949 0: Messages are sent only once, and delivery is not guaranteed.
2950
2951 1: Message must be delivered at least once.
2952
2953 2: Message is delivered just once.
2954
2955 **Content format:**
2956
2957 Raw data: There is no original data in a specific format.
2958
2959 JSON (General): JSON format of single-layer structure.
2960
2961 JSON (Advanced): JSON format of flexibly customizable nested structure.
2962
2963 **Verify timestamp:** The user can decide whether to verify the timestamp or not. When checked, it indicates that the received data timestamp must be strictly incremented before it can be updated. Otherwise, it will be judged as outdated data and not updated.
2964
2965 **Use the top "d" symbol in the message format:**
2966
2967 This function is only supported when the content format uses [JSON (General)]. When checked, the message format is as follows:
2968
2969 {
2970
2971 "d": {
2972
2973 "addressName1": ...,
2974
2975 "addressName2":...
2976
2977 },
2978
2979 "ts":...
2980
2981 }
2982
2983 When unchecked, the message format is as follows:
2984
2985 {
2986
2987 "addressName1": ..., "addressName2":...,
2988
2989 "ts":...
2990
2991 }
2992
2993 Please select the appropriate settings according to the data source.
2994
2995 **Address setting**
2996
2997 ①Address settings when content formats use [Raw Data] and [JSON (General)].
2998
2999 (% style="text-align:center" %)
3000 [[image:53.jpg]]
3001
3002 **Add:** Establish the address where the data is placed after the topic is subscribed. The length of each address can be set separately.
3003
3004 **Delete:** Delete the address.
3005
3006 **Settings:** Modify the address and name.
3007
3008 (% style="text-align:center" %)
3009 [[image:54.jpg]]
3010
3011 **Remove JSON array brackets' ['and'] ':**
3012
3013 When using non-array bits or characters, array symbol can manually be removed.
3014
3015 **✎Note: A topic can be configured up to 255 nodes. The name length of a node can be configured up to a maximum of 255 characters and cannot be empty.**
3016
3017 ② Address setting when the content format uses [JSON (Advanced)]. [JSON (Advanced)] supports nested structure, which can use components, arrays and other forms. Timestamps and data names can also be customized, which is a more flexible design method.
3018
3019 (% style="text-align:center" %)
3020 [[image:HMIEditor_Db5tLtioq7.jpg]]
3021
3022 **New component:** Add a new data component. There can be multiple data formats in a component, each with a name and a value. The data of the component is included in braces {}.
3023
3024 **New Array:** Add a new data array. Arrays can have multiple data formats, but only one name. The data of the component is included in brackets [].
3025
3026 **New value:** Add a value, string, or timestamp. When it is a value or a string, data can be read for a fixed value or from a specified address.
3027
3028 **Delete:** Delete the selected field.
3029
3030 **Settings:** Modify the selected field. If the selected fields are components and arrays, only the names can be modified. But components and arrays include values that can modify parameters.
3031
3032 **Template:** Paste the JSON text, and the system will automatically arrange the schema to conform to this JSON format, saving the time of self-definition.
3033
3034 **Preview:** Preview JSON data in an easy-to-read format.
3035
3036 **✎Note: A Topic can be up to 512 nodes (including payload), and a node name can be configured to be up to 255 characters length.**
3037
3038
3039 **Security settings**
3040
3041 The topic is published only when the register status matches the setting. As shown in the following figure, this topic will not be published until the address HDX0.0 is set to ON.
3042
3043 (% style="text-align:center" %)
3044 [[image:56.jpg]]
3045
3046 = OPCUA Server =
3047
3048 (% class="box infomessage" %)
3049 (((
3050 ✎Note: Only 8000ig Series support OPC UA Server.
3051 )))
3052
3053 1.Open the OPCUA server tool
3054
3055 [Project]→[OPCUA server]→[Enable]
3056
3057 (% style="text-align:center" %)
3058 [[image:QOBzq5f8HF.png]]
3059
3060 2.Set General properties
3061
3062 (% style="text-align:center" %)
3063 [[image:e9rHcIHKsj.png]]
3064
3065 **Description:**Description of OPCUA server, character length 0~~255.** **
3066
3067 **OPC TCP:**Set URL of OPCUA server.
3068
3069 **Port number:**The port used by the client for communication.Default: 4840.
3070
3071 **Server name:**Set the name of Server,character length 0~~255.
3072
3073 **Security:**OPCUA server provides four security policies and three authentication methods, and different encryption methods can be implemented through different combinations.
3074
3075 3.User authentication
3076
3077 (% style="text-align:center" %)
3078 [[image:1733132656389-393.png]]
3079
3080 **Anonymous:**When the client chooses to log in anonymously, the permissions to interact with the server include brows, read and write.
3081
3082 **User name password:**The user name and password here are equivalent to the user name and password set on the [Project Settiing\User Login] page. When the client logs in to the server by using the user name and password, the user password used has the same group level as that configured by the server and has corresponding permissions.
3083
3084 4.Main interface
3085
3086 (% style="text-align:center" %)
3087 [[image:1733133255552-776.png]]
3088
3089 **Enable:**Check to configure the relevant properties of the OPC UA server
3090
3091 **Server\Settings:**Configure OPC UA Server Properties
3092
3093 **List of tags:**Display the defined tags
3094
3095 **New group:**Add a new group to manage tags
3096
3097 **New label:**Add the address label you want to monitor, and the name cannot be empty. The length of the label name ranges from 1 to 255.
3098
3099 **Settings:**When a label is selected, click to jump to the label configuration interface.
3100
3101 When a group is selected, click to configure the group name.
3102
3103 **Cancel:**Able to delete tags or groups
3104
3105 (% class="box infomessage" %)
3106 (((
3107 ✎Note: Setting and cancel options are only for the New label and New group, and do not apply to groups that exist by default
3108 )))
3109
3110 5.Label configuration
3111
3112 (% style="text-align:center" %)
3113 [[image:1733133363652-686.png]]
3114
3115
3116 **Name:**Tag name
3117
3118 **Type:**Indicate the read and write attributes of the label. The read attributes are checked by default** **
3119
3120 **Address:**Configure the address to be monitored by the label
3121
3122 **Data Type:**Represent the data type of this label
3123
3124 **Array length:**When the set length exceeds 1, it means that the label is an array, and the array range is 1 to 255.