Moxa RM-1050-T — обзор программирования и использования памяти в RTU контроллерах [48/52]
Превью страниц
Страница 48 /
52
![Moxa RM-1050-T [48/52] Using c c](/views2/1201435/page48/bg30.png)
ioPAC RTU Software RTU Programming
6-2
Programming Guide
Memory Usage
Partition sizes are hard coded into the kernel binary. The total flash memory on the ioPAC RTU controller is 32
MB.
FLASH system space: 20 MB (read only)
FLASH user space: 12 MB (read/write, /home, /etc, /temp support)
Users can use df and free commands to check memory information.
root@Moxa:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 16384 8452 7932 52% /
/dev/ram0 499 17 457 4% /var
/dev/ram7 2011 15 1894 1% /dev
/dev/mtdblock3 12288 740 11548 6% /tmp
/dev/mtdblock3 12288 740 11548 6% /home
/dev/mtdblock3 12288 740 11548 6% /etc
tmpfs 30556 0 30556 0% /dev/shm
root@Moxa:~# free
total used free shared buffers
Mem: 61116 13476 47640 0 40
Swap: 0 0 0
Total: 61116 13476 47640
root@Moxa:~#
If the user file system is incorrect, the kernel will change the root file system to the kernel and use the default
Moxa file system. To finish the boot process, run the init program.
NOTE
1.
The user file system is a complete file system. Users can creat
e and delete directories and files (including
source code and executable files) as needed.
2.
Users can create the user file system on the host PC or the target platform and copy it to the ioPAC RTU
controller.
3.
Continuously writing data to flash is not recommended, since doing so will decrease the flash’s life.
Using C/C++
Linux Toolchain
The Linux toolchain contains a suite of cross compilers and other tools, as well as the libraries and header files
that are necessary to compile your applications. These toolchain components must be installed on your host
computer (PC) running Linux. We have confirmed that the following Linux distributions can be used to install
the toolchain.
ioPAC 8500 & 5500 Series
Debian 6.0.1
Ubuntu 11.04
Fedora Core 15
Steps for Installing the Linux Toolchain
Refer to the Install the Toolchain onto the PC section in Chapter 2.
Содержание
150- Www moxa com product
- Iopac rtu software user s manual
- First edition july 2013
- Www moxa com support
- Trademarks
- Technical support contact information
- Iopac rtu software user s manual
- Disclaimer
- Copyright notice
- Table of contents
- Introduction
- Supported products
- Software architecture
- Related documents
- Overview
- Iopac rtu software introduction
- Journaling flash file system jffs2
- Iopac rtu software introduction
- Software package
- Iopac rtu software introduction
- Getting started
- Modifying network settings with the serial console
- Iopac rtu software getting started
- Hardware and software requirements
- Development procedure
- Developing the first program
- Configuring the ethernet interface
- Modifying network settings over the network
- Iopac rtu software getting started
- Connect an rtu to a linux pc
- Install the toolchain onto the pc
- Develop code compile the program
- Set cross compiler glibc environment variables
- Root localhost telnet 192 68 27 54 trying 192 68 27 54 connected to 192 68 27 54 escape character is moxa login
- Root localhost telnet 192 68 27 54
- Root localhost path usr local arm linux bin path
- Root localhost mount dev cdrom mnt cdrom root localhost sh mnt cdrom software toolchain arm linux_vx x sh
- Root localhost cd tmp root localhost tmp mkdir example root localhost tmp cp r mnt cdrom software sample hello_world tmp example
- Root localhost cd tmp example hello_world root localhost tmp example hello_world make
- Iopac rtu software getting started
- Upload run the program
- Root moxa home chmod x hello_world root moxa home hello_world
- Root moxa df h
- 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
- Root localhost tmp example hello_world ftp 192 68 27 54
- Root localhost telnet 192 68 27 54
- Put hello_world
- Iopac rtu software getting started
- Rtu management
- Upgrading the firmware
- System information
- Iopac rtu software rtu management
- Firmware upgrade and default settings
- Attention
- Iopac rtu software rtu management
- Recovering the firmware
- Iopac rtu software rtu management
- Loading factory defaults
- Iopac rtu software rtu management
- Enabling and disabling daemons
- Iopac rtu software rtu management
- Run level settings
- Iopac rtu software rtu management
- Iopac rtu software rtu management
- System time setting
- Setting the time manually
- Updating the time with ntp client
- Updating the time automatically
- Iopac rtu software rtu management
- Ntp server setting
- Iopac rtu software rtu management
- Executing scheduled commands with cron daemon
- Software lock
- Iopac rtu software rtu management
- Rtu communications
- Modbus tcp master and slave
- Iopac rtu software rtu communications
- Internet configuration
- Enabling the telnet ftp server
- Disabling the telnet ftp server
- Telnet ftp
- Iptables
- Iopac rtu software rtu communications
- Iopac rtu software rtu communications
- Observe and erase chain rules
- Iopac rtu software rtu communications
- Examples
- Iopac rtu software rtu communications
- Examples
- Define policy for chain rules
- Append or delete rules
- Nat snat
- Iopac rtu software rtu communications
- Iopac rtu software rtu communications
- Enabling nat at bootup
- Iopac rtu software rtu communications
- Ppp dial up service
- Port forwarding dnat
- Iopac rtu software rtu communications
- Example 1 connecting to a ppp server over a simple dial up connection
- Iopac rtu software rtu communications
- How to check the connection
- Example 2 connecting to a ppp server over a hard wired link
- Setting up a machine for incoming ppp connections
- Iopac rtu software rtu communications
- Iopac rtu software rtu communications
- Setting up the iopac rtu controller as an nfs client
- Sending mail
- Openvpn
- Nfs network file system client
- Iopac rtu software rtu communications
- Example
- Setup 1 ethernet bridging for private networks on different subnets
- Iopac rtu software rtu communications
- Setup 2 ethernet bridging for private networks on the same subnet
- Iopac rtu software rtu communications
- Setup 3 routed ip
- Iopac rtu software rtu communications
- Ntp server client
- Iopac rtu software rtu communications
- Serial configuration
- Port trunking
- Modbus rtu master
- Iopac rtu software rtu communications
- Rtu data acquisition
- I o data access
- Battery backup sram
- Active opc server
- Millisecond timestamp
- Iopac rtu software rtu data acquisition
- Rtu programming
- Using c c
- Steps for installing the linux toolchain
- Programming guide
- Memory usage
- Linux toolchain
- Iopac rtu software rtu programming
- Iopac rtu software rtu programming
- Compilation for applications
- On line debugging with gdb
- Library and apis
- Iopac rtu software rtu programming
- Editor
- A system commands
- System commands
- File manager
- Process
- Network
- Moxa special utilities
- Iopac rtu software system commands
Похожие устройства
-
Moxa ioPAC 5542-HSPA-IEC-TТехнические характеристики -
Moxa ioPAC 5542-HSPA-IEC-TРуководство по аппаратной части -
Moxa ioPAC 5542-HSPA-IEC-TИнструкция по эксплуатации -
Moxa ioPAC 5542-IEC-TТехнические характеристики -
Moxa ioPAC 5542-IEC-TРуководство по аппаратной части -
Moxa ioPAC 5542-IEC-TИнструкция по эксплуатации -
Moxa ioPAC 5542-HSPA-C-TРуководство по аппаратной части -
Moxa ioPAC 5542-HSPA-C-TТехнические характеристики -
Moxa ioPAC 5542-HSPA-C-TИнструкция по эксплуатации -
Moxa ioPAC 5542-C-TРуководство по аппаратной части -
Moxa ioPAC 5542-C-TТехнические характеристики -
Moxa ioPAC 5542-C-TИнструкция по эксплуатации
Узнайте о программировании RTU контроллеров, использовании памяти и установке инструментов для разработки на Linux. Полезные советы и рекомендации.