Software
The nX3CpuSetup 1.0.1.0 library (CODESYS) provides runtime control over IP settings.
SetEthIPAddressEx
Section titled “SetEthIPAddressEx”
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);Removable Storage
Section titled “Removable Storage”| Device | Mount path |
|---|---|
| microSD | /media/mmcblk1p1/ |
| USB memory | /media/sda1/ |
Read and write files using the standard CODESYS file access functions.
CODESYS Automation Server (CAS)
Section titled “CODESYS Automation Server (CAS)”The nX7 and nX10 support connection to the CODESYS Automation Server for:
- Remote device access and monitoring
- Application deployment and update
- WebVisu and TargetVisu page hosting
A CAS account is required. See the CAS official help.
CODESYS Edge Gateway
Section titled “CODESYS Edge Gateway”To connect the nX7 or nX10 to CAS, install the CODESYS Edge Gateway component on the device. Follow the Edge Gateway for Linux guide.