EasyManua.ls Logo

Hitachi MICRO-EHV+ - Page 125

Hitachi MICRO-EHV+
170 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 3 Programming
3 65
Event task
If rising or falling edge is detected, then corresponding event task will be executed immediately, which leads POU
(FUNCTION) under the task called accordingly. Desired program can be written in this FUNCTION. Event task is
configured as follows.
Double click on Task Configuration or right click and choose Edit Object. Task Configuration window appears.
Click System Events tab.
Click Add Event Handler…” then Add Event Handler window appears. Choose an interrupt event from Interrupt 1
to 5 in Event and enter a name in Function to call. Click OK button, then FUNCTION will be created.
When new FUNCTION is created, a variable EventPrm (type:STRUCT EVTPARAM_Interrupt) is automatically
defined in the FUNCTION. This variable contains no data.
(Library IoDrvHIES is implicitly added to Library Manager, and this STRUCT is defined in it.)
Create your program in this FUNCTION accordingly. Functions contain no internal state information. Use global
variables including local I/O (external I/O) in functions.
Local I/O (external I/O) used only in functions is not updated. Make sure to use in other programs or function
blocks also.

Table of Contents

Related product manuals