EasyManua.ls Logo

WAGO PFC200 2ETH RS XTR - Creating an Event Handler; Figure 78: CODESYS Program Provokes Division by 0; Figure 79: CODESYS - Creating and Activating an Event Handler

WAGO PFC200 2ETH RS XTR
418 pages
Print Icon
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...
WAGO I/O SYSTEM 750 XTR Run-time System CODESYS 2.3 261
750-8202/040-000 PFC200 2ETH RS XTR
Manual
Version 1.2.0, valid from FW Version 03.01.07(13)
8.5.1 Creating an Event Handler
The example here is provided to illustrate how to define and use an event
handler. The event handler excpt_dividebyzerois used in this example.
First, a program is generated in the PLC_PRG- module which provokes division
by 0.
Figure 78: CODESYS Program Provokes Division by “0”
After this, the system event excpt_dividebyzerois activated in the Task
Configurator and the name of the event handler to be generated is entered in the
column Called POU”.
Figure 79: CODESYS Creating and Activating an Event Handler
To generate the event handler, click [Generate CALLBACK_DIV_BY_ZERO
function block].
A new function having the defined name then appears in the Function blocks
tab.

Table of Contents

Related product manuals