Moxa ioPAC 5542-C-T [3/52] Table of contents
Table of Contents
1. Introduction ...................................................................................................................................... 1-1
Overview ........................................................................................................................................... 1-2
Scope ........................................................................................................................................ 1-2
Related Documents ..................................................................................................................... 1-2
Supported Products ..................................................................................................................... 1-2
Software Architecture .......................................................................................................................... 1-2
Journaling Flash File System (JFFS2) ............................................................................................. 1-3
Software Package ........................................................................................................................ 1-4
2. Getting Started.................................................................................................................................. 2-1
Developing the First Program ............................................................................................................... 2-2
Hardware and Software Requirements ........................................................................................... 2-2
Development Procedure ............................................................................................................... 2-2
Configuring the Ethernet Interface ........................................................................................................ 2-2
Modifying Network Settings with the Serial Console ......................................................................... 2-2
Modifying Network Settings over the Network ................................................................................. 2-3
Connect an RTU to a Linux PC .............................................................................................................. 2-3
Install the Toolchain onto the PC .......................................................................................................... 2-4
Set Cross Compiler & glibc Environment Variables .................................................................................. 2-4
Develop Code & Compile the Program ................................................................................................... 2-4
Upload & Run the Program ................................................................................................................... 2-5
3. RTU Management .............................................................................................................................. 3-1
System Information ............................................................................................................................ 3-2
Firmware Upgrade and Default Settings ................................................................................................. 3-2
Upgrading the Firmware ............................................................................................................... 3-2
Recovering the Firmware .............................................................................................................. 3-4
Loading Factory Defaults .............................................................................................................. 3-5
Enabling and Disabling Daemons .......................................................................................................... 3-5
Run-Level Settings .............................................................................................................................. 3-7
System Time Setting ........................................................................................................................... 3-8
Setting the Time Manually ............................................................................................................ 3-8
Updating the Time with NTP Client ................................................................................................. 3-9
Updating the Time Automatically ................................................................................................... 3-9
NTP Server Setting .................................................................................................................... 3-10
Executing Scheduled Commands with Cron Daemon ............................................................................. 3-10
Software Lock .................................................................................................................................. 3-11
4. RTU Communications ........................................................................................................................ 4-1
Internet Configuration ......................................................................................................................... 4-2
Modbus TCP Master and Slave....................................................................................................... 4-2
DNS........................................................................................................................................... 4-2
Telnet/FTP .................................................................................................................................. 4-2
iptables ...................................................................................................................................... 4-3
NAT (SNAT) ................................................................................................................................ 4-7
Port Forwarding (DNAT) ............................................................................................................... 4-9
PPP Dial-up Service ..................................................................................................................... 4-9
PPPoE ...................................................................................................................................... 4-12
NFS (Network File System) Client ................................................................................................ 4-14
Sending Mail ............................................................................................................................. 4-14
OpenVPN .................................................................................................................................. 4-14
NTP Server/Client ...................................................................................................................... 4-18
Port Trunking ............................................................................................................................ 4-19
Serial Configuration .......................................................................................................................... 4-19
Modbus RTU Master ................................................................................................................... 4-19
5. RTU Data Acquisition ......................................................................................................................... 5-1
I/O Data Access.................................................................................................................................. 5-2
Battery Backup SRAM .......................................................................................................................... 5-2
Millisecond Timestamp ........................................................................................................................ 5-2
Active OPC Server............................................................................................................................... 5-2
6. RTU Programming ............................................................................................................................. 6-1
Programming Guide ............................................................................................................................ 6-2
Memory Usage ............................................................................................................................ 6-2
Using C/C++ ...................................................................................................................................... 6-2
Linux Toolchain ........................................................................................................................... 6-2
On-Line Debugging with GDB ........................................................................................................ 6-4
Library and APIs .......................................................................................................................... 6-4
A. System Commands ............................................................................................................................ A-1
File Manager ...................................................................................................................................... A-1
Содержание
- First edition july 2013 1
- Iopac rtu software user s manual 1
- Www moxa com product 1
- Copyright notice 2
- Disclaimer 2
- Iopac rtu software user s manual 2
- Technical support contact information 2
- Trademarks 2
- Www moxa com support 2
- Table of contents 3
- Introduction 5
- Iopac rtu software introduction 6
- Overview 6
- Related documents 6
- Software architecture 6
- Supported products 6
- Iopac rtu software introduction 7
- Journaling flash file system jffs2 7
- Iopac rtu software introduction 8
- Software package 8
- Getting started 9
- Configuring the ethernet interface 10
- Developing the first program 10
- Development procedure 10
- Hardware and software requirements 10
- Iopac rtu software getting started 10
- Modifying network settings with the serial console 10
- Connect an rtu to a linux pc 11
- Iopac rtu software getting started 11
- Modifying network settings over the network 11
- Develop code compile the program 12
- Install the toolchain onto the pc 12
- Iopac rtu software getting started 12
- Root localhost cd tmp example hello_world root localhost tmp example hello_world make 12
- Root localhost cd tmp root localhost tmp mkdir example root localhost tmp cp r mnt cdrom software sample hello_world tmp example 12
- Root localhost mount dev cdrom mnt cdrom root localhost sh mnt cdrom software toolchain arm linux_vx x sh 12
- Root localhost path usr local arm linux bin path 12
- Root localhost telnet 192 68 27 54 12
- Root localhost telnet 192 68 27 54 trying 192 68 27 54 connected to 192 68 27 54 escape character is moxa login 12
- Set cross compiler glibc environment variables 12
- Iopac rtu software getting started 13
- Put hello_world 13
- Root localhost telnet 192 68 27 54 13
- Root localhost tmp example hello_world ftp 192 68 27 54 13
- Root localhost tmp example hello_world make usr local arm linux bin arm linux gcc i usr local arm linux include i usr local arm linux include rtu o hello_world hello_world o l usr local arm linux lib lpthread lmxml l usr local arm linux lib rtu lmoxa_rtu lrtu_common ltag wl rpath lib rtu wl allow shlib undefined 13
- Root moxa df h 13
- Root moxa home chmod x hello_world root moxa home hello_world 13
- Upload run the program 13
- Rtu management 15
- Attention 16
- Firmware upgrade and default settings 16
- Iopac rtu software rtu management 16
- System information 16
- Upgrading the firmware 16
- Iopac rtu software rtu management 17
- Iopac rtu software rtu management 18
- Recovering the firmware 18
- Enabling and disabling daemons 19
- Iopac rtu software rtu management 19
- Loading factory defaults 19
- Iopac rtu software rtu management 20
- Iopac rtu software rtu management 21
- Run level settings 21
- Iopac rtu software rtu management 22
- Setting the time manually 22
- System time setting 22
- Iopac rtu software rtu management 23
- Updating the time automatically 23
- Updating the time with ntp client 23
- Executing scheduled commands with cron daemon 24
- Iopac rtu software rtu management 24
- Ntp server setting 24
- Iopac rtu software rtu management 25
- Software lock 25
- Rtu communications 26
- Disabling the telnet ftp server 27
- Enabling the telnet ftp server 27
- Internet configuration 27
- Iopac rtu software rtu communications 27
- Modbus tcp master and slave 27
- Telnet ftp 27
- Iopac rtu software rtu communications 28
- Iptables 28
- Iopac rtu software rtu communications 29
- Examples 30
- Iopac rtu software rtu communications 30
- Observe and erase chain rules 30
- Append or delete rules 31
- Define policy for chain rules 31
- Examples 31
- Iopac rtu software rtu communications 31
- Iopac rtu software rtu communications 32
- Nat snat 32
- Enabling nat at bootup 33
- Iopac rtu software rtu communications 33
- Iopac rtu software rtu communications 34
- Port forwarding dnat 34
- Ppp dial up service 34
- Example 1 connecting to a ppp server over a simple dial up connection 35
- Iopac rtu software rtu communications 35
- Example 2 connecting to a ppp server over a hard wired link 36
- How to check the connection 36
- Iopac rtu software rtu communications 36
- Iopac rtu software rtu communications 37
- Setting up a machine for incoming ppp connections 37
- Iopac rtu software rtu communications 38
- Example 39
- Iopac rtu software rtu communications 39
- Nfs network file system client 39
- Openvpn 39
- Sending mail 39
- Setting up the iopac rtu controller as an nfs client 39
- Iopac rtu software rtu communications 40
- Setup 1 ethernet bridging for private networks on different subnets 40
- Iopac rtu software rtu communications 41
- Setup 2 ethernet bridging for private networks on the same subnet 41
- Iopac rtu software rtu communications 42
- Setup 3 routed ip 42
- Iopac rtu software rtu communications 43
- Ntp server client 43
- Iopac rtu software rtu communications 44
- Modbus rtu master 44
- Port trunking 44
- Serial configuration 44
- Rtu data acquisition 45
- Active opc server 46
- Battery backup sram 46
- I o data access 46
- Iopac rtu software rtu data acquisition 46
- Millisecond timestamp 46
- Rtu programming 47
- Iopac rtu software rtu programming 48
- Linux toolchain 48
- Memory usage 48
- Programming guide 48
- Steps for installing the linux toolchain 48
- Using c c 48
- Compilation for applications 49
- Iopac rtu software rtu programming 49
- Iopac rtu software rtu programming 50
- Library and apis 50
- On line debugging with gdb 50
- A system commands 51
- Editor 51
- File manager 51
- System commands 51
- Iopac rtu software system commands 52
- Moxa special utilities 52
- Network 52
- Process 52
Похожие устройства
- Moxa ioPAC 5542-C-T Технические характеристики
- Moxa ioPAC 5542-C-T Руководство по аппаратной части
- Moxa ioPAC 5542-HSPA-C-T Инструкция по эксплуатации
- Moxa ioPAC 5542-HSPA-C-T Технические характеристики
- Moxa ioPAC 5542-HSPA-C-T Руководство по аппаратной части
- Moxa ioPAC 5542-IEC-T Инструкция по эксплуатации
- Moxa ioPAC 5542-IEC-T Руководство по аппаратной части
- Moxa ioPAC 5542-IEC-T Технические характеристики
- Moxa ioPAC 5542-HSPA-IEC-T Инструкция по эксплуатации
- Moxa ioPAC 5542-HSPA-IEC-T Руководство по аппаратной части
- Moxa ioPAC 5542-HSPA-IEC-T Технические характеристики
- Moxa OnCell G3150A-LTE-EU Инструкция по эксплуатации
- Moxa OnCell G3150A-LTE-EU Технические характеристики
- Moxa OnCell G3150A-LTE-EU-T Инструкция по эксплуатации
- Moxa OnCell G3150A-LTE-EU-T Технические характеристики
- Moxa OnCell G3470A-LTE-EU Инструкция по эксплуатации
- Moxa OnCell G3470A-LTE-EU Технические характеристики
- Moxa OnCell G3470A-LTE-EU Руководство по программной части
- Moxa OnCell G3470A-LTE-EU-T Инструкция по эксплуатации
- Moxa OnCell G3470A-LTE-EU-T Технические характеристики