EasyManua.ls Logo

Hitachi MICRO-EHV+ - Page 121

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 61
Preset value
If the counter value exceeds the preset value 1 or 2, 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 a counter event from Counter 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_Counterset) is
automatically defined in the FUNCTION. This variable consists of one BYTE variable named byChannelIndex
indicating which preset value is exceeded.
(Library IoDrvHIES is implicitly added to Library Manager, and this STRUCT is defined in it.)

Table of Contents

Related product manuals