====== Global Events ====== Global events are project-level events that are always active regardless of which screen is being displayed. On the contrary, [[:comfilehmi:screenevent:|screen events]] are only active when their associated screen is being displayed. {{ :comfilehmi:globalevent:globaleventscreen.png?nolink |}} {{ :comfilehmi:globalevent:global_event.png?nolink |}} ===== Global Event Types ===== There are 4 available global event types: * 1. When Project Starts : This event occurs when the project is first executed. * 2. Timer : This event occurs periodically while the project is running. * 3. Montor Device : This event occurs when data in a device's memory meets a specified condition. * 4. Monitor by Expression : This event occurs when a variable or expression evaluates to a specified condition. ===== 1. When Project Starts Event ===== Press the down arrow icon next to the event type to add actions to an event. {{ :comfilehmi:globalevent:event_actionadd.png?nolink |}} ===== 2. Timer Event ===== Press the down arrow icon next to the //Timer// node to add a new timer event. {{ :comfilehmi:globalevent:timeradd.png?nolink |}} The following window will appear. {{ :comfilehmi:globalevent:eventtimer1.png?nolink |}} Specify the period of for which the event will occur. In this example, the period is set to 1 second. Add actions to run when the event occurs. {{ :comfilehmi:globalevent:globaltimeradd1.png?nolink |}} ===== 3. Monitor Device Events ===== Press the down arrow icon next to the //Device// node to add a new device event {{ :comfilehmi:globalevent:devicewatchadd1.png?nolink |}} Enter the device address to monitor and specify the conditions that must be met for the event to occur. {{ :comfilehmi:globalevent:devicewatch.png?nolink |}} Add the actions to be executed when the event occurs. {{ :comfilehmi:globalevent:globaldeviceadd1.png?nolink |}} ===== 4. Monitor by Expression Events ===== Press the down arrow icon next to the //Expression// node to add a new expression event. {{ :comfilehmi:globalevent:globaleventadd1.png?nolink |}} Enter the expression specifying the condition that must be met for the event to occur. {{ :comfilehmi:globalevent:susikwatch.png?nolink |}} Add actions to be executed when the event occurs. {{ :comfilehmi:globalevent:globaladdaction.png?nolink |}} ---- ===== Add Action ===== The following window will appear to provide the ability to add multi-actions to the event. {{ :comfilehmi:globalevent:eventadd.png?nolink |}} [[comfilehmi:multiaction:index|What is action?]] ====== Video ====== {{ :comfilehmi:globalevent:hmievent.mp4?850x454 |}} [[comfilehmi:#Field_Resources:|Back to ComfileHMI]]