Chapter 7 Event Log... 2 7.1 Event Log Management... 2 7.1.1 Excel Editing... 3 7.2 Create a New Event Log... 4 7.2.1 Alarm (Event) Log General Settings... 4 7.2.2 Alarm (Event) Log Message Settings... 6 7.3 Event Log Relevant Registers... 8 1
Chapter 7 Event Log 7.1 Event Log Management Alarm Bar / Alarm Display / Event Display Category EasyBuilder Pro classifies events by dividing them into 0 ~ 255 categories. Select one category to add or view event log. In [ ] it shows how many events are in this category. Using these objects to view the process of the whole event from triggering waiting for processing until alarm stops. Define event content first. History files Specify the storage device of an event log. However, when simulating the project on PC, the files will be saved under the installation directory. For USB numbering, the first inserted will be USB1, the second will be USB2, regardless of the interface position. 2
[Preservation limit] This setting determines how many days the data to be preserved. For example, the [Days of preservation] is set to two days, which means HMI memory will keep the data of yesterday and the day before yesterday. Data that is not built in this period will be deleted automatically to prevent the storage space from running out. Print To enable this setting, please finish the settings of printer in [System Parameter Settings]/ [Model]. 7.1.1 Excel Editing Use Excel to edit [Event Log]. Click on the Excel icon on Event Log setting dialog to open the Excel template for editing. This template is under installation directory - EventLogExample.xls and includes ready made dropdown lists and validation mechanism. 1. [System tag] and [User-defined tag] can not be set to true simultaneously, otherwise, the system will view [System tag] to be true, and [User-defined tag] to be false. If setting [User-defined tag] as [Device type], please set [System Tag] to be false. 2. [Color] format is R:G:B, each should be an integer form 0 ~ 255. 3. When setting [User-defined tag] to be true, if the system compares the [Device type] with the user-defined tag in system, and no suitable tag is found, the system will set the user-defined tag in event log to be false. 4. Before importing Library (Label Library / Sound Library), please make sure library names exist in the system, otherwise the system will simply use the file name of the imported Excel file. 3
7.2 Create a New Event Log 7.2.1 Alarm (Event) Log General Settings Click [New], appears the [Alarm (Event) Log] dialog which includes two tabs, go to [General] tab. [Category] Select event category, 0 ~ 255. [Priority level] When the number of Event Log equals to the max number available in the system (default 1000), the lower priority events will be deleted and new events will be added in. [Read address] System reads data from this address to check if the event matches the trigger condition. [Notification] When enabled, system will set the specified register to ON or OFF when the event is triggered. [Condition] When [Bit] is selected, Event Log will detect the ON or OFF state of a Bit address. When [Word] is selected, Event Log will detect the value of a Word address to check if it equals to, greater than, or less than a specified value. The setting above indicates: When [Read address] value is greater than or equals to 29 (= 30-1) and less than or equals to 31(= 30 + 1), the event will be triggered. The trigger condition: 4
29 <= [Read address] value <= 31 After the event is triggered, when [Read address] value is greater than 32(= 30 + 2) or less then 28(= 30-2) the system will return to normal condition: [Read address] value < 28 or [Read address] value > 32 The setting above indicates: When [Read address] value is less than 29 (= 30-1) or greater than 31(= 30 + 1), the event will be triggered. The trigger condition: [Read address] value < 29 or [Read address] value > 31 After the event is triggered, when [Read address] value is greater than or equals to 28(= 30-2) and less than or equals to 32(= 30 + 2) the system will return to normal condition: 28 <= [Read address] value <= 32 5
7.2.2 Alarm (Event) Log Message Settings Alarm (Event) Log [Message] tab: [Content] The text content of Event Log shown in [Alarm Bar], [Alarm Display] and [Event Display] Please see the examples next page. [Font] / [Color] The font and color can be set differently for each event. The font and color shown in [Alarm Bar], [Alarm Display] or [Event Display] come from this setting. [Write value for Event/Alarm Display object] When an event in [Event Display] or [Alarm Display] is acknowledged, the value is written to the assigned address. [Sound] When enabled, a designated sound will be played when an event is triggered. Continuous beep can be set which will only stop when the event is acknowledged or recovered. When using continuous beep for Event Log, a delay period can be set between triggering the alarm and the start of beeping. An illustration of how the beep is related to the event: 6
The data of LW address of the triggered event can be included in the content: Format: %#d (% = initial sign # = address d = end sign) When an event is triggered, if LW-20 = 13: Setting: High Temperature = %20d" Display: High Temperature = 13" When an event is triggered, data in certain device type can also be shown in the content. This device type should be the same as that of the [Read address] of Event Log, take MW address as example: Format: $#d ($ = initial sign # = address d = end sign) When an event is triggered, if MW-15 = 42: Setting: High Temperature = $15d" Display: High Temperature = 42" [Address of Watch] Click [Syntax] to edit and display the value in watch address when the event is triggered. Up to four watch addresses can be set. 7
7.3 Event Log Relevant Registers EasyBuilder Pro provides the following system tags to manage the Event Log: Address Description LB-9021 reset current event log (set ON) LB-9022 delete the earliest event log file on HMI memory (set ON) LB-9023 delete all event log files on HMI memory (set ON) LB-9024 refresh event log information on HMI memory (set ON) LB-9034 save event/data sampling to HMI, USB disk, SD card (set ON) LB-9042 acknowledge all alarm events (set ON) LB-9043 unacknowledged events exist (when ON) LB-11940 delete the earliest event log file on SD card (set ON) LB-11941 delete all event log files on SD card (set ON) LB-11942 refresh event log information on SD card (set ON) LB-11943 delete the earliest event log file on USB 1 (set ON) LB-11944 delete all event log files on USB 1 (set ON) LB-11945 refresh event log information on USB 1 (set ON) LB-11946 delete the earliest event log file on USB 2 (set ON) LB-11947 delete all event log files on USB 2 (set ON)ON) LB-11948 refresh event log information on USB 2 (set ON) LW-9060 (16bit) : no. of event log files on HMI memory LW-9061 (32bit) : size of event log files on HMI memory LW-9450 (16bit) : time tag of event log - second LW-9451 (16bit) : time tag of event log - minute LW-9452 (16bit) : time tag of event log - hour LW-9453 (16bit) : time tag of event log - day LW-9454 (16bit) : time tag of event log - month LW-9455 (16bit) : time tag of event log - year LW-10480 (16bit) : no. of event log files on SD card LW-10481 (32bit) : size of event log files on SD card LW-10483 (16bit) : no. of event log files on USB 1 LW-10484 (32bit) : size of event log files on USB 1 LW-10486 (16bit) : no. of event log files on USB 2 LW-10487 (32bit) : size of event log files on USB 2 8