Moxa ioPAC 8500-9-RJ45-C-T [28/69] Moxa c programmable rtu controllers getting started

Moxa ioPAC 8500-9-RJ45-C-T [28/69] Moxa c programmable rtu controllers getting started
Moxa C Programmable RTU Controllers Getting Started
2-16
#/etc/init.d/networking restart
NOTE
After changing the IP
settings, use the networking restart command to activate the new IP address.
User
s must modify the /etc/network/interfaces to store the new settings. Using commands such as
#ifconfig eth0 192.168.1.1
WILL NOT save the settings to the flash memory.
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 Compiler
& glibc) from the Document 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 controller 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).

Содержание

Скачать