Skip to content

Software

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


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
);

Sets the communication speed of the local I/O bus. Default: 8 MHz (maximum). This value should never be changed.


Watchdog IO mapping

A hardware watchdog relay is wired to the power connector. In the nX3 CPU I/O Mapping sheet a BOOL variable named Watchdog is automatically mapped.

Activate by calling this in your main task:

WATCHDOG := TRUE;

If the task stops executing due to a fault or exception, the watchdog relay opens.


The nX3E local bus supports expansion with ProCard I/O modules by UFG Company. Add modules via the CODESYS device tree context menu. Each module exposes its I/O points through the nX3CPU I/O Mapping sheet.


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

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


Additional licenses (fieldbus, libraries, etc.) can be purchased from the CODESYS Online Store. Insert the CODESYS Key into the USB host port to activate them.


The nX3E supports connection to the CODESYS Automation Server for:

  • Remote device access and monitoring
  • Application deployment and update
  • WebVisu page hosting
  • OPC UA data visualization

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

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