...
AlarmCsvWr | Saves the alarm messages as CSV file. |
Subroutine | AlarmCsvWr(AlarmGroup, “CSVFileName”, TimeDisplay, PrintOption, Location) |
Description | Saves the messages of AlarmGroup at the assigned Location as CSVFileName. Enter 0 at Location to indicate the local. Assign 1 for SD/MMC and 2 for USB. You can also use strings for the Location. 0: _LOCAL_ 1: _SDMEM_ 2: _USBMEM_ The contents in the CSV file will be displayed with time data according to the value you assign to the TimeDisplay. 0: YYYY/MM/DD HH:MM:SS 1: DD/MM/YYYY HH:MM:SS 2: MM/DD/YYYY HH:MM:SS 3: MM/DD HH:MM:SS 4: DD/MM HH:MM:SS 5: HH:MM:SS According to the value assigned to the PrintOption, different contents will be saved. If you wish to select multiple items, distinguish them with a vertical bar ( | ). All Items: _ALMPRT_ALL_ or 511 Time and date: _ALMPRT_TIME_ or 1 Memory Address: _ALMPRT_ADDR_ or 2 Value: _ALMPRT_VALUE_ or 4 Alarm Type: _ALMPRT_TYPE_ or 8 Alarm Description: _ALMPRT_DESC_ or 16 |
Example | Saves all contents of alarm group 1 as "AlmGrp1.CSV" in SD/MMC. The contents will be displayed with time value in "YYYY/MM/DD HH:MM:SS" format. AlarmCsvWr(1, "AlmGrp1", 0, _ALMPRT_ALL_, _SDMEM_); |
AlarmPrint | Prints the alarm messages with printer. |
Subroutine | AlarmPrint(AlarmGroup, Messages, TimeDisplay, FontSize, PrintOption) |
Description | Prints the content of AlarmGroup as much as the value assigned to Messages (0~200 messages) with the assigned FontSize (10 or bigger). The time will be displayed according to the value assigned toTimeDisplay. 0: YYYY/MM/DD HH:MM:SS 1: DD/MM/YYYY HH:MM:SS 2: MM/DD/YYYY HH:MM:SS 3: MM/DD HH:MM:SS 4: DD/MM HH:MM:SS 5: HH:MM:SS According to the value assigned to the PrintOption, different contents will be saved. If you wish to select multiple items, distinguish them with a vertical bar ( | ). All Items: _ALMPRT_ALL_ or 511 Time and date: _ALMPRT_TIME_ or 1 Memory Address: _ALMPRT_ADDR_ or 2 Value: _ALMPRT_VALUE_ or 4 Alarm Type: _ALMPRT_TYPE_ or 8 Alarm Description: _ALMPRT_DESC_ or 16 |
Example | Prints out the 10 most recent messages of alarm group 1. The contents will be displayed in font size 12, with time value in "MM/DD/YYYY HH:MM:SS" format. AlarmPrint(1, 10, 2, 12, _ALMPRT_ALL_); |
...