Moxa ioPAC 5542-HSPA-IEC-T — инструкция по загрузке и запуску программ на RTU контроллерах [13/52]
Превью страниц
Страница 13 /
52
![Moxa RM-1050-T [13/52] Upload run the program](/views2/1201435/page13/bgd.png)
ioPAC RTU Software Getting Started
2-5
The following response should be shown on the screen.
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
The hello_world-release and hello_world-debug executable files are described as below:
• hello_world-release: an ARM platform executable file (created specifically to run on the Moxa RTU
Controllers)
• hello_world-debug: an ARM platform GDB debug server executable file
NOTE
Since Moxa’s tool
chain places a specially designed makefile in the /tmp/example/hello_world directory,
be
sure to type the
#make command from within that directory. If users type the #make command from any
other directory, the host L
inux PC may use other system compilers (e.g., cc or gcc) and result in errors.
Upload & Run the Program
Follow the steps below to upload and run the hello_world.c program.
Step 1: Use the telnet command to access the console of the RTU controller.
root@localhost:~# telnet 192.168.127.254
Step 2: Enter root for both the account and password.
Step 3: Before uploading the compiled program to the RTU controller, check the free space of the flash memory
on the RTU controller. If the flash memory is full, you cannot save data to the flash ROM. Use the following
command to calculate the amount of available flash memory.
root@Moxa:~# df –h
NOTE
If there is
not enough available space for user’s program, users must delete some existing files.
Step 4: Use the following commands to connect the FTP server of the RTU controller.
root@localhost:/tmp/example/hello_world# ftp 192.168.127.254
Step 5: Enter root for both the account and password.
Step 6: Use the following commands to upload hello_world-release to the RTU controller by FTP in Binary
mode
ftp> cd /home
ftp> put hello_world
Step 7: Use the following commands to run the hello_world program on the RTU controller.
root@Moxa:/home~# chmod +x hello_world
root@Moxa:/home~# ./hello_world
Содержание
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-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Инструкция по эксплуатации -
Moxa 85M-5401-TТехнические характеристики
Узнайте, как загрузить и запустить программу hello_world на RTU контроллерах. Пошаговое руководство по использованию telnet и FTP для успешной работы.