Changes for page 06 Data Tool

Last modified by Jett on 2025/02/18 16:43

From version 24.1
edited by Stone Wu
on 2022/08/06 10:04
Change comment: There is no comment for this version
To version 21.3
edited by Stone Wu
on 2022/08/05 17:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -180,23 +180,26 @@
180 180  
181 181  * **Recipe Folder:** Give Recipe folder name (It can be used, when setting Recipe display object);
182 182  ** **✎Note: **Recipe Folder name can only consist of (0~~9), (a~~z), (A~~Z), ('_'), (' ') and other non-English characters;
183 -* **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.
183 +* **Group: **It sets the groups' initial number of recipe;
184 184  * **Elements:** It sets members' initial number of each group;
185 185  * **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;
186 186  * **Decimal: **It sets integer and scale digits;
187 187  
188 -**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.
188 +**Mode Selection**
189 189  
190 -Function address: all operations are done through function addresses, different operating value is as follows:
190 +Users could select Simple or Advanced mode.
191 191  
192 -* = 0: no operation;
193 -* = 1: trigger read data;
194 -* = 2: new trigger or update (If there is group number, it updates.)
195 -* = 4: insert (only valid in advanced mode)
196 -* = 8: delete (Delete according to the writing group number. If write and read address are consistent, refer to the reading group number);
197 -* = 16: delete and sorted ((Delete according to the writing group number. If write and read address are consistent, refer to the reading group number)
198 -* = 64: import CSV recipe file.
192 +**Function Address:**
199 199  
194 +All the operations for recipe is by this address
195 +
196 +* =0 No operation.
197 +* =1 Read data from recipe.
198 +* =2 Insert a new group or write data to exist group.
199 +* =4 Inserted (only advanced mode).
200 +* =8 Delete.
201 +* =16 Delete and Sequence.
202 +
200 200  **Use Multiple File**
201 201  
202 202  Check it to use more than one recipe file in HMI, but this option only valid in [Advanced mode];
... ... @@ -241,139 +241,45 @@
241 241  **✎Note: **This function only supported in HMI+, i series, ie series, ig series.
242 242  )))
243 243  
244 -[[image:image-20220805174501-1.jpeg]]
247 +== Simple recipe ==
245 245  
246 -[[image:image-20220805174543-2.jpeg]]
249 +The recipe function should be used together with the recipe configuration area, file list and record display object.
247 247  
248 -**Recipe Demo Download Link: **[[Download>>url:https://drive.google.com/open?id=1Cjbq_tW-NIirHFBpxt47g7IKvoYaWqUR]]
251 +* Click the button [[image:image-20220805170000-1.jpeg]] in "Project"→"Bit Alarm" as below shows.
249 249  
253 +[[image:image-20220805170046-2.jpeg]]
250 250  
251 -== Calling CSV recipe file ==
255 +* Click "Add" button to open "Recipe" setting window. The recipe mode is divided into simple mode and advanced mode, and you could choose the most suitable mode for configuration according to your needs. The simple mode is as below.
252 252  
257 +[[image:image-20220805170102-3.jpeg]]
253 253  
254 -~1. Overview:
259 +**Recipe folder: **set the name of the current recipe file.
255 255  
261 +**Group (0~~1000):** 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.
256 256  
257 -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.
258 -
259 -
260 -2 Operations
261 -
262 -
263 -~1. 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.
264 -
265 -
266 -
267 -Figure 1
268 -
269 -
270 -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.
271 -
272 -
273 -
274 -
275 -3. By configuring the address in the table and combining the recipe function, the CSV recipe files of regular series are imported.
276 -
277 -
278 -|Address range|Object type|Address function
279 -|HSW1050 to 1065|Text input object|Enter the CSV recipe file name to import
280 -|HSW1066|Numerical input object|Import CSV file type:
281 -~= 0: Custom CSV file (all data in the file is valid)
282 -~= 1: Normal recipe file for regular series HMI (the data in line 1 of the file is invalid)
283 -~= 2: Special recipe file for regular series HMI (the data in line 1 and 2 and column 1 of the file are invalid)
284 -|HSW1067|Numerical input object|(((
285 -Where the CSV file is saved:
286 -~= 0: In the CsvFile directory of U disk
287 -~= 1: In the CsvFile directory of the SD card
288 -
289 -The path for offline simulation is: C:\ HMIEmulation\ CustomFileDir\ CsvFile
263 +(% class="box infomessage" %)
264 +(((
265 +✎**Note: **data format is set for the recipe elements, and all the elements in a recipe data format is the same.
290 290  )))
291 -|HSW242|Numerical input object|Returns the results of the csv import:
292 -~= 37: CSV file imported successfully
293 -~= 38: CSV file import failed
294 294  
295 -4. Select CSV recipe file (take U disk as an example):
268 +**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.
296 296  
270 +Function address: all operations are done through function addresses, different operating value is as follows:
297 297  
298 -(1) 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, the configuration is shown in the following figure.
272 +* = 0: no operation;
273 +* = 1: trigger read data;
274 +* = 2: new trigger or update (If there is group number, it updates.)
275 +* = 4: insert (only valid in advanced mode)
276 +* = 8: delete (Delete according to the writing group number. If write and read address are consistent, refer to the reading group number);
277 +* = 16: delete and sorted ((Delete according to the writing group number. If write and read address are consistent, refer to the reading group number)
278 +* = 64: import CSV recipe file.
299 299  
280 +Recipe folder names can only consist of (0~~9), (a~~z), (A~~Z), ('_') (''), and other non-English characters.
300 300  
301 - Use the special address of the above table to configure the path of the CSV file: HSW106, configure recipe file name: HSW1050 to1065
282 +Adcanced
302 302  
284 +**Recipe Demo Download Link: **[[Download>>url:https://drive.google.com/open?id=1Cjbq_tW-NIirHFBpxt47g7IKvoYaWqUR]]
303 303  
304 -(2) Use HSW1066 address to select the corresponding CSV recipe file type.
305 -
306 -
307 - A) HSW1066 = 0: Import a user-defined CSV recipe file (all data in the custom CSV file must be valid);
308 -
309 -
310 -
311 - B) HSW1066=1: Import the normal recipe file of regular series HMI (the data in line 1 of the file is invalid);
312 -
313 -
314 -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.
315 -
316 -
317 -
318 - C) 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);
319 -
320 -
321 -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.
322 -
323 -
324 -
325 -
326 -(3) Perform import
327 -
328 -
329 - 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:
330 -
331 -
332 - A) Configure the DB recipe file name by text input object: HDW500 = 3 (recipe file configured in Figure 1),
333 -
334 -
335 - B) Set the recipe function address to: HDW1000 = 64 (the function address configured in Figure 1),
336 -
337 -
338 - C) Transform the CSV recipe file in U disk into DB recipe file with file name “3.rcp2”.
339 -
340 -
341 -5. DB recipe file for storing CSV data:
342 -
343 -
344 -(1) Simple mode:
345 -
346 -
347 - 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.
348 -
349 -
350 -(2) Advanced mode:
351 -
352 -
353 - 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).
354 -
355 -
356 -6. Import results:
357 -
358 -
359 -(1) HSW242 = 37: Import succeeded;
360 -
361 -
362 -(2) HSW242 = 38: Import failed.
363 -
364 -
365 -
366 -3. Precautions:
367 -
368 -
369 -~1. 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);
370 -
371 -
372 -2. 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;
373 -
374 -
375 -3. 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.
376 -
377 377  
378 378  
379 379  = (% style="color:inherit; font-family:inherit; font-size:29px" %)**Traditional recipe**(%%) =
image-20220805174501-1.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -79.3 KB
Content
image-20220805174543-2.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Stone
Size
... ... @@ -1,1 +1,0 @@
1 -80.0 KB
Content