10/10 MN05003003Z-EN
Direct I/O access
53
X
Change over to the Task configuration and open the System
Events folder.
X
Enable IO Interrupt 3 by clicking in the check box on the left
beside the name “IO Interrupt 3”. The box is checked to
indicate that it has been activated.
X
Mark the area of column “Called POU” and the area and the
line “IO-Interrupt 3”.
X
Set the cursor on the marked area and press the function key F2.
The Input Assistant window is opened. This lists all the predefined
programs:
X
Select the “Fastprog” POU and confirm with OK.
X
Save the project. You can now test it.
The variable “b” is incremented by one with every rising edge on
input I3.
Direct I/O access
The functions of the library EC_Util.lib allow you direct access to
the local I/O on the PLC. This is executed directly from the user
program and not via the I/O image register. Direct access is not
supported for the following inputs/outputs:
• Inputs/outputs of the expansion devices
• Local diagnostics bits
• Buttons of the rocker switch
• Inputs/outputs of the devices that are integrated via a bus
system.
Access to the high-speed counters can be implemented using the
function blocks of the EC_Util2.Lib library.
Description of functions
The function “ReadBitDirect” is described as an example for all
other functions:
ReadBitDirect
This function enables you to read the status of an input bit directly.
It is stored in the variable to which the parameterised pointer
“ptr_xValue” is assigned. The pointer variable will not be changed
when a fault occurs during processing.
Figure 56: Interrupt edge selection
Figure 57: Enabling an interrupt
Figure 58: Allocation of Interrupt source
l
POU
Summary of Contents for easyControl EC4-200
Page 4: ...II...
Page 10: ...10 10 MN05003003Z EN 6...
Page 14: ...10 10 MN05003003Z EN 10...
Page 22: ...10 10 MN05003003Z EN 18...
Page 38: ...10 10 MN05003003Z EN 34...
Page 62: ...10 10 MN05003003Z EN 58...
Page 78: ...10 10 MN05003003Z EN 74...
Page 96: ...10 10 MN05003003Z EN 92...