User`s manual

Moxa C Programmable RTU Controllers Getting Started
2-14
Adding a Default Gateway
Follow the instructions given in a previous section to access the serial console of the target Moxa RTU Controller,
and then type #cd /etc/network to change directories.
1. Type #vi interfaces to edit the network configuration file with vi editor.
2. Add the gateway IP to the last entry of the interface settings.
After the LAN interface settings have been modified and saved, perform the following command to activate the
LAN settings immediately:
#/etc/init.d/networking restart
Adding DNS Settings
For details, refer to Chapter 4, Managing Communications .
Developing Procedures
In general, program development involves the following seven steps.
Step 1:
Connect the RTU
controller to a Linux PC.
Step 2:
Install Tool Chain (GNU Cross Compi
ler & glibc) from the
Docume
nt and Software CD.
Step 3:
Set the cross compiler and glibc environment variables.
Step 4:
Code and compile the program.
Step 5:
Download the program to the target RTU
c
ontroller using FTP or
NFS.
Step 6:
Debug the program
If bugs are found, return to Step 4.
If no bugs are found, continue with Step 7.
Step 7:
Back up the user directory (distribute
the program to additional
Moxa
RTU controller if needed).
Installing the Tool Chain (Linux)
The Linux Operating System must be pre-installed in the host PC before installing the RTU controllers GNU Tool
Chain. Fedora Core or compatible versions are recommended. The Tool Chain requires approximately 150 MB
of hard disk space on your PC. The RTU controllers Tool Chain software is located on the attached Document
and Software CD. To install the Tool Chain, insert the CD into your PC and then issue the following commands: