Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

AlarmCsvWr

Saves the alarm messages as a 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 the 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 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

Prints out the recent 10 messages of alarm group 1. The contents will be displayed in font size 12, with the time value in “MM/DD/YYYY HH:MM:SS” format.

AlarmPrint(1, 10, 2, 12, _ALMPRT_ALL_);

 

ClearAlarmLog

Clears all messages listed in the designated alarm group.

Subroutine

ClearAlarmLog(AlarmGroup)

Description

Deletes the entire alarm log of the assigned AlarmGroup (1~10).

Example

Clears all alarm messages in the alarm group #3.

ClearAlarmLog(3)

 

  • No labels