- No category
advertisement
ioPAC RTU Software Getting Started
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.
2-2
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 6 Overview
- 6 Scope
- 6 Related Documents
- 6 Supported Products
- 6 Software Architecture
- 7 Journaling Flash File System (JFFS2)
- 8 Software Package
- 10 Developing the First Program
- 10 Hardware and Software Requirements
- 10 Development Procedure
- 10 Configuring the Ethernet Interface
- 10 Modifying Network Settings with the Serial Console
- 11 Modifying Network Settings over the Network
- 11 Connect an RTU to a Linux PC
- 12 Install the Toolchain onto the PC
- 12 Set Cross Compiler & glibc Environment Variables
- 12 Develop Code & Compile the Program
- 13 Upload & Run the Program
- 16 System Information
- 16 Firmware Upgrade and Default Settings
- 16 Upgrading the Firmware
- 18 Loading Factory Defaults
- 18 Enabling and Disabling Daemons
- 20 Run-Level Settings
- 20 System Time Setting
- 20 Setting the Time Manually
- 22 Updating the Time with NTP Client
- 22 Updating the Time Automatically
- 23 NTP Server Setting
- 23 Executing Scheduled Commands with Cron Daemon
- 24 Software Lock
- 26 Internet Configuration
- 26 Modbus TCP Master and Slave
- 26 DNS
- 26 Telnet/FTP
- 27 iptables
- 29 Observe and Erase Chain Rules
- 30 Define Policy for Chain Rules
- 30 Append or Delete Rules
- 31 NAT (SNAT)
- 32 Enabling NAT at Bootup
- 33 Port Forwarding (DNAT)
- 33 PPP Dial-up Service
- 34 Example 1: Connecting to a PPP server over a simple dial-up connection
- 35 Example 2: Connecting to a PPP Server over a Hard-Wired Link
- 35 How to Check the Connection
- 36 Setting up a Machine for Incoming PPP Connections
- 36 PPPoE
- 38 NFS (Network File System) Client
- 38 Setting up the ioPAC RTU Controller as an NFS Client
- 38 Sending Mail
- 38 OpenVPN
- 39 Setup 1: Ethernet Bridging for Private Networks on Different Subnets
- 40 Setup 2: Ethernet Bridging for Private Networks on the Same Subnet
- 41 Setup 3: Routed IP
- 42 NTP Server/Client
- 43 Port Trunking
- 43 Serial Configuration
- 43 Modbus RTU Master
- 45 I/O Data Access
- 45 Battery Backup SRAM
- 45 Millisecond Timestamp
- 45 Active OPC Server
- 47 Programming Guide
- 47 Memory Usage
- 47 Using C/C++
- 47 Linux Toolchain
- 47 Steps for Installing the Linux Toolchain
- 48 Compilation for Applications
- 49 On-Line Debugging with GDB
- 49 Library and APIs
- 50 File Manager
- 50 Editor
- 51 Network
- 51 Process
- 51 Other
- 51 Moxa Special Utilities