Skip to content

Software

The nX3CpuSetup 1.0.1.0 library (CODESYS) provides runtime control over IP settings.


SetEthIPAddressEx Function Block

Changes the IP configuration of ETH0 or ETH1 at runtime from within a CODESYS application.

Static IP on ETH0:

VAR
Error : nX3.ERROR;
END_VAR
Error := nX3.SetEthIPaddressEx(
0,
192, 168, 10, 123, (* IP *)
255, 255, 255, 0, (* Mask *)
192, 168, 10, 1, (* Gateway *)
192, 168, 10, 1 (* DNS *)
);

Static IP on ETH1:

Error := nX3.SetEthIPaddressEx(
1,
192, 168, 20, 123,
255, 255, 255, 0,
192, 168, 20, 1,
192, 168, 20, 1
);

DHCP (pass all zeros):

Error := nX3.SetEthIPaddressEx(
0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0
);

DeviceMount path
microSD/media/mmcblk1p1/
USB memory/media/sda1/

Read and write files using the standard CODESYS file access functions.


The NXmicro+ supports connection to the CODESYS Automation Server for:

  • Remote device access and monitoring
  • Application deployment and update
  • WebVisu page hosting

A CAS account is required. See the CAS official help.

To connect the NXmicro+ to CAS, install the CODESYS Edge Gateway component on the device. Follow the Edge Gateway for Linux guide.