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.)
Содержание EH-A14EDR
Страница 6: ...MEMO ...
Страница 10: ...MEMO ...
Страница 141: ...Chapter 3 Programming 3 81 Program ...
Страница 166: ...Chapter 5 Maintenance 5 4 MEMO ...
Страница 170: ...Appendix A1 4 MEMO ...