- Create a "Standard project" and select CODESYS Control Win V3 as the device.
- Define the target system by means of the Netzwork Network scan.
- Open the Library Manager and add the following libraries:
CAA Net Base Services
SysTypes2 interfaces
SysTimeRtc
Util - Create a global variable named gvlSetting.
Adapt gvlSetting as follows:
Section Column width 7 Declaration
Column width 93 Code Block theme Confluence {attribute 'qualified_only'} VAR_GLOBAL CONSTANT gc_uiPort : UINT := 50001; gc_stIpAddr : NBS.IP_ADDR := (sAddr := '192.168.99.74'); gc_wMaxTelegram : INT := 15; // Length o the telegram END_VAR
Adapt the IP address and the port to your system.
...