Table 2: Required behavior
Signal from photo sensor Required signal of motor ON
FALSE TRUE
TRUE FALSE
Table 3: Hardware set-up
Element HW channel Symbol Description
Switch I1 DA501 DI8 xDI_08_DA501_I1 Photo sensor
LED output DC16 DA501 DC16 xStartDrilling1 Motor on
1.5.4.4.2 Implementation
Create a new program POU in the project
1. In the CODESYS menu select POUs
2. Select “Add object”
3. Enter “_01_Assignment_NOT”.
4. Set “Type of POU” to “Program”.
5. Set “Language of the POU” to Function Block Diagram “FBD”.
6. Select [OK].
ð
POU has been added.
Getting started with example projects
Example project for central I/O expansion > Programming and compiling
2023/03/033ADR010649, 3, en_US24