- Create a "Standard project" and select CODESYS Control Win V3 as the device.
- Define the target system by means of the Network scan.
- Open the Library Manager and add the following libraries:
Create a new POU named sc and a new task named MySecTask.
Assign the POU SecTask to the task MySecTask and set the call interval to 50 milliseconds.
Adapt the POU SecTask as follows:
Adapt the POU PLC_PRG as follows:
- After you have uploaded and started the project on the controller, you can compare the values between the task configuration and the IEC code.