- 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:
CmpApp
SysTypes2 interfaces - Activate the automatic generation of the project information in Project/Project information:
Create a persistent variable named PersistentVars.
Adapt PersistentVars as follows:
Deklaration
{attribute 'qualified_only'} VAR_GLOBAL PERSISTENT RETAIN xAutoRestart : BOOL; udiCnt : UDINT; END_VAR
- sdggd