Moxa RM-2600-T [10/52] Developing the first program

Moxa RM-2600-T [10/52] Developing the first program
ioPAC RTU Software Getting Started
2-2
Developing the First Program
This section lists the minimum hardware and software requirements, and gives an overview of program
development procedures.
Hardware and Software Requirements
The following hardware items are required to complete the first program.
1 x ioPAC RTU controller
1 x 9-48VDC power supply
1 x Ethernet cable
1 x PC or Laptop with following minimum requirements
CPU: Intel Pentium 4 or above
RAM: 512 MB (1024 MB recommended)
HDD: at least 200 MB of free space
Network Interface: 10/100M Ethernet
Linux Operating System (Debian 6.0.1, Ubuntu 11.04 or Fedora Core 15 are recommended)
Development Procedure
Follow the steps below to complete the first program development.
Step 1: Connect an RTU to a Linux PC
Step 2: Install the Toolchain onto the PC
Step 3: Set Cross Compiler & glibc Environment Variables
Step 4: Develop Code & Compile the Program
Step 5: Upload & Run the Program
Configuring the Ethernet Interface
The network settings of the ioPAC RTU controller can be modified with the serial console, or online over the
network.
Modifying Network Settings with the Serial Console
In this section, we use the serial console to configure network settings of the ioPAC.
First, use the command
#cd /etc/network
to change to the directory where the network’s configuration files are located.
root@Moxa:# cd /etc/network/
root@Moxa:/etc/network/#
Call up the vi text editor to begin editing the interfaces configuration file by typing:
#vi interfaces
You can configure the ioPAC RTU controller’s Ethernet ports for static or dynamic (DHCP) IP addresses.

Содержание

Скачать