All products manufactured by ICP DAS are under warranty regarding defective
materials for a period of one year, beginning from the date of delivery to the
original purchaser.
Warning
ICP DAS assumes no liability for any damage resulting from the use of this
product. ICP DAS reserves the right to change this manual at any time without
notice. The information furnished by ICP DAS is believed to be accurate and
reliable. However, no responsibility is assumed by ICP DAS for its use, not for any
infringements of patents or other rights of third parties resulting from its use.
Copyright
Copyright @ 2019 by ICP DAS Co., Ltd. All rights are reserved.
Trademark
The names used for identification only may be registered trademarks of their
respective companies.
Contact US
If you have any problem, please feel free to contact us.
You can count on us for quick response.
Email: service@icpdas.com
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 2
This chapter provides an overview of the LX-8000/9000 and its components, and introduces the
fundamental concepts for user familiar with the LX-8000/9000.
The LX-8000/9000 are Linux OS based PACs that combine computing, I/O, and operator interface
into a single unit, and provide the perfect solution for integrating HMI, data acquisition and
control in an individual PAC.
It is equipped with an x86 CPU, 0/1/3/7 I/O expansion slots and a variety of connectives including
dual Gigabit Ethernet, VGA, USB port, RS-232 and RS-485 interface. Local I/O slots are available to
use I-8K/9K and I-87K/97K series I/O modules and remote I/O expansions are available to use our
Ethernet I/O modules and RS-485 I/O modules.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 5
The LX-8000/9000 offers the most comprehensive configuration and remote system upgrade
solutions to meet specific application requirements. The following list shows the hardware and
software features designed to simplify installation, configuration and application.
●Powerful CPU Module
- x86 CPU (1 GHz, dual-core) for LX-8031/8131/8331/8731
- E3845 (1.91 GHz, 64-bit quad core) for LX-9181/9381/9781
- E3827 (1.75 GHz, 64-bit dual core) for LX-9171/ 9371/9771
●Linux OS
- Linux Kernel 3.2 for LX-8x31 series
- Linux Kernel 4.14 for LX-9x71/9x81 series
●Memory Size:
- SDRAM (2 GB DDR3) for LX-8x31/9x71 series
- SDRAM (4 GB DDR3) for LX-9x81 series
- Flash (32 GB SSD)
- CF Card (support up to 32 GB)
● 64-bit Hardware Serial Number
● Rich I/O Expansion Ability
- RS-232/RS-485
- USB
● Redundant Power Input
● Operating Temperature:
- -25 °C to +60 °C for LX-9x81 series
- -25 °C to +75 °C for LX-8x31/9x71 series
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 6
The LX-8000/9000 Series modules are equipped with several interfaces and peripherals that can
be integrated with external systems. Here is an overview of the components and its descriptions.
LX-8031
LX-8131
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 13
● ttyS1 (RS-232/RS-485)
The ttyS1 port is a 9-pins RS-232/RS-485 connector. The details of the ttyS1 port specifications are
shown to the side.
Note: 16C550 compatible
Port Type: Male
Baud Rate: 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200 bps
Data Bits: 5, 6, 7, 8
Parity: None, Even, Odd, Mark (Always 1), Space (Always 0)
ttyS1 can be configured as either RS-232 or RS-485, that only can select one at a time and its
configuration depends on the pin connections as follows:
- RS-232 (RXD, TXD, CTS, RTS and GND)
- RS-485 (Data+ and Data-)
There is no software configuration or hardware jumper needed.
● ttyS34 (RS-232)
The ttyS34 port is a 9-pins RS-232 connector. The details of the ttyS34 port specifications are
shown to the side.
Note: 16C550 compatible
Port Type: Male
Baud Rate: 115200, 57600, 38400, 19200, 9600, 4800, 2400, 1200 bps
Data Bits: 5, 6, 7, 8
Parity: None, Even, Odd, Mark (Always 1), Space (Always 0)
Stop Bits: 1, 2
FIFO: 16 bytes
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 16
The diagrams below provide the dimensions of the LX-8000 to use in defining your enclosure
specifications. Remember to leave room for potential expansion if you are using other
components in your system.
The height dimension is the same for all LX-8000. The width depending on your choose of I/O
expansion slots. All dimensions are in millimeters.
LX-8031
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 20
The diagrams below provide the dimensions of the LX-9000 to use in defining your enclosure
specifications. Remember to leave room for potential expansion if you are using other
components in your system.
The height dimension is the same for all LX-9000. The width depending on your choose of I/O
expansion slots. All dimensions are in millimeters.
LX-9171/LX-9181
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 23
This chapter provides a guided tour of the LX-8000/9000 installation and configuration that
describes the steps needed to download, install, configure, and run the basic procedures for user
working with the LX-8000/9000 for the first time.
Before starting any task, please check the package contents. If any of the following package
contents are missing or damaged, contact your dealer, distributor.
LX-8x31 Series
LX-9x71/LX-9x81 Series
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 25
A good common ground reference (earth ground) is essential for proper
operation of the LX-8000. One side of all control circuits, power circuits and the
ground lead must be properly connected to earth ground by either installing a
ground rod in close proximity to the enclosure or by connecting to the incoming
power system ground. There must be a single-point ground (i.e. copper bus bar)
for all devices in the enclosure that require an earth ground.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 28
A good common ground reference (earth ground) is essential for proper
operation of the LX-9000. One side of all control circuits, power circuits and the
ground lead must be properly connected to earth ground by either installing a
ground rod in close proximity to the enclosure or by connecting to the incoming
power system ground. There must be a single-point ground (i.e. copper bus bar)
for all devices in the enclosure that require an earth ground.
DIN Rail mounting
Step 1: Fasten the DIN rail clip to the LX-9000
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 30
For DIN rail mounting, it is strongly recommended that only a stainless steel DIN
rail be used to support the weight of LX-9000 system, providing stability and
preventing LX-9000 from leaning
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 31
Step 3: Connect the ground lead to the frame ground point
Tips & Warnings
A good common ground reference (earth ground) is essential for proper
operation of the LX-9000. One side of all control circuits, power circuits and the
ground lead must be properly connected to earth ground by either installing a
ground rod in close proximity to the enclosure or by connecting to the incoming
power system ground. There must be a single-point ground (i.e. copper bus bar)
for all devices in the enclosure that require an earth ground.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 32
The LX-8000/9000 provides a variety of communication interface to suit a range of application.
Here is a simple application for using theLX-8000/9000.
Step 1: Connect the positive terminal (+) of the power supply to the terminal PWR1/2 and the
negative terminal (-) of the power supply to the P.GND
Tips & Warnings
1. The input range of power supply is +10 to +30 VDC.
2. The LX-8000/9000 have two power inputs that can be connected
simultaneously to the two independent power sources. If one power source
fails, the other source takes over automatically. Redundant power input help
assure non-stop operation of the LX-8000/9000.
LX-8000
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 36
The LAN 1/2 of factory setting use DHCP. If user wants to set the static IP address, user can
refer to below steps:
Step 1: Using the linux command “vi” to modify the file “/etc/network/interfaces”.
Step2: Using the ‘#’ to mark the default configuration.
Step3: Set static IP by your own environment.
Step4: After user save the file and use “reboot” command to reset device, user can use the
new network configuration on LX-8000/9000.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 41
LX-9000 has 1/3/7 I/O expansion slots to support I-9K and I-97K series I/O modules. LX-8000 also
has 1/3/7 I/O expansion slots to support I-8K and I-87K series I/O modules.
Before choosing the right I/O modules, you first need to know the I/O expansion capacities in
order to choose the best expansion module for achieving maximal efficiency. For more
information about the I/O expansion modules that are compatible with the LX-8000/9000, please
refer to:
If you do not expand the I/O module full, please keep the top case of the unused slot
to protect the backplane from dirt, dust and damage from foreign objects.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 47
2. Delete old recover file (data folder “OS-install”) and unzip downloaded file.
3. Executing the command “setup-control.sh” and choose option ‘1’ to recover the factory Linux
OS to flash disk.
Notice:
If your OS version is under 1.4.1, and you want to update OS to recently version.
You could find that command “setup-control.sh” does not exist.
Use below two commands to solve this issue.
2. Delete old recover file (data folder “OS-install_9x7x_9x8x”) and unzip downloaded file.
3. Executing the command “setup-control.sh” and choose option ‘1’ to recover the factory Linux
OS to flash disk.
Notice:
After OS version 1.2.0, PAC OS converted from 32-bit OS to 64-bit OS.
If your OS version is under 1.2.0
You have to update CF card OS to 64-bit OS to update Flash OS version greater or equal to 1.2.0
Follow below steps to update CF card OS
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 50
This chapter provides a brief introduction of the LX-8000/9000 service tools and its benefits.
There are several tools and utilities built-in and designed for use with LX-8000/9000. Some of
these are pre-installed on LX-8000/9000 and can work directly on LX-8000/9000, and some of
these are supporting tools and can help you to manage the LX-8000/9000 remotely on a PC.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 52
PING www.google.com (216.58.200.36) 56(84) bytes of data.
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=6 ttl=53 time=8.89 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=7 ttl=53 time=8.69 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=8 ttl=53 time=8.54 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=9 ttl=53 time=18.6 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=10 ttl=53 time=8.46 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=11 ttl=53 time=18.6 ms
^C
--- www.google.com ping statistics --11 packets transmitted, 6 received, 45% packet loss, time 10046ms
rtt min/avg/max/mdev = 8.465/11.973/18.632/4.705 ms
root@icpdas:/tmp#
ping: check to see if the host in the network is alive
ping IPAddress (Example: ping 192.168.0.1)
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 68
PING www.google.com (216.58.200.36) 56(84) bytes of data.
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=6 ttl=53 time=8.89 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=7 ttl=53 time=8.69 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=8 ttl=53 time=8.54 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=9 ttl=53 time=18.6 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=10 ttl=53 time=8.46 ms
64 bytes from tsa01s08-in-f4.1e100.net (216.58.200.36): icmp_seq=11 ttl=53 time=18.6 ms
^C
--- www.google.com ping statistics --11 packets transmitted, 6 received, 45% packet loss, time 10046ms
rtt min/avg/max/mdev = 8.465/11.973/18.632/4.705 ms
root@icpdas:/tmp#clear
clear: clear the screen
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 69
From http://ftp.icpdas.com/pub/cd/lx-series/napdos/lx-series/sdk, you can download the latest
version of LX-8000/9000 SDK. And then follows the below steps in order to get the development
toolkit which has been provided by ICP DAS for the easy application of the LX-8000/9000
embedded controller platform.
(1)User can connect to LX-8000/9000 through communication port (Console, LAN1, LAN2) by
using “putty” software (refer to “CH2.LX-8000/9000 Getting Started").
(2)After connecting to LX-8000/9000, user could type command “wget”
“http://ftp.icpdas.com/pub/cd/lx-series/napdos/lx-series/sdk/linpac_x86_sdk.tgz” to get the
latest version of LX-8000/9000 SDK.
Tips & Warnings
Please check the network can connect to the ICP DAS official website.
(2) To type “tar zxf LinPAC_X86_SDK.tar.gz” to decompress tar file and type “make” to compile
demo code.
ls LinPAC_X86_SDK
cd LinPAC_X86_SDK/
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 79
This chapter provides a guided tour that describes the steps needed to set-up a development
environment, download, install, configure for user programming with the LX-8000/9000. The
default LX-8000/9000 support below development tools:
Default Development Tools
Linux OS is a mature embedded operating system which supports rapid development. Standard
development tools are list as follows which are highly integrated, with comprehensive support
for developing applications of LX-8000/9000.
Scripts Language (shell script, perl, python and php)
Standard C language and GNU gcc compiler
LX-8000/9000 SDKs
The x86 LinPAC SDK is a Software Development Kit (SDK) that contains C header files, C libraries.
The LX-8000/9000 SDK is classified by development tools that can be downloaded from the web
link “http://ftp.icpdas.com/pub/cd/lx-series/napdos/lx-series/sdk/linpac_x86_sdk.tgz” or use
command “LINPAC_SDK” to get the latest version of LX-8000/9000 SDK.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 81
4.1. Your First LX-8000/9000 Program with C Language
In this section, we will introduce how to compile the helloworld.c to helloworld and executes this
file on the LX-8000/9000 Series. In this example, no ICP DAS modules are used. To create a demo
program with C that includes the following main steps:
1. Find demo “helloworld.c” in SDK
2. Compile and Execute the demo on LX-8000/9000
3. Execute the application on LX-8000/9000 at boot time
All main steps will be described in the following subsection.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 82
The LX-8000/9000 series had supported SFTP(or SCP), user can transfer the file from Windows(or
Linux). For examples, using Windows Program “WinSCP” to access the device over network,
please follow below steps:
1. Choosing the “SFTP” or “SCP” protocol and type IP address, default ID (root) and password
(icpdas) to login
2. Drag and drop file
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 88
The LAMP (Linux + Apache + PHP + MySQL) server has been built in the Linux OS of LX-8000/9000.
As a solution stack, LAMP is suitable for building dynamic web sites and web applications.
MySQL default account is ‘root’ and password is ‘root’
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 89
XFCE is a lightweight desktop environment for UNIX-like operating systems. It aims to be fast and
low on system resources, while still being visually appealing and user friendly. The LX-8000/9000
series support the XFCE package, after user type “root” and password “icpdas” to login, the local
terminal would execute the XFCE Desktop.
LX-8x31 XFCE Desktop screen shot
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 90
Network redundancy is a communications pathway that has additional links to connect all nodes
in case one link goes down. We have two ways to support network redundancy.
1. Enable Bridge Interface with RSTP
User can create a network bridge interface with RSTP protocol to make dual LAN redundant
mechanism.
If one of your LX-8000/9000 PAC device LAN port is stops working, bridge will use another
LAN port to continue working.
This mechanism makes sure your network environment much stronger.
User can follow below steps to enable bridge interface with RSTP protocol.
Step 1: Using the linux command “vi” to modify the file “/etc/network/interfaces”.
Step 2: Unmark rstp mechanism like below
Step 3: After user save the file and use “reboot” command to reset device, user can use the new
network configuration on LX-8000/9000.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 92
Linux network bonding is a creation of a single bonded interface by combining 2 or more
Ethernet interfaces. The mode 1 setting is active backup, like network redundant.
In this section, you can follow below steps to configure linux bonding easier.
If you use LX-9x71/9x81, check your OS version by command “OS_version”. OS support linux
bonding when version greater or equal to 1.1.1.
Step1: Unmark linux bonding example in /etc/network/interfaces and mark other setting.
Step2: reboot to make configure work.
Step3: Check linux bonding status.
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 93
N-port communication modules provide two or four serial ports and can be inserted into the slot
of an LX-8000/9000 embedded controller. In this way, additional serial ports can be used on the
LX-8000/9000 embedded controller. The LX-8000/9000 embedded controller is a multi-tasking
uint, meaning that all the serial ports can be controlled simultaneously. The number of each serial
port on the N-Port Serial modules(two or four serial ports) are presented in below figures:
LX-8000 N-Port Modules support (I-8114W, I-8112iW, etc.)
LX-8000 and Serial Module (4-Ports)
LX-8000 and Serial Module (2-Ports)
LX-8000/9000 (Linux based PAC) User Manual version 1.1.0 Page: 96
Below three products only support LX-8x31 PAC, not support LX-9000 PAC.
LX-8000 can support 3G/4G system by I-8213W-3GWA, I-8213W-4GC, I-8213W-4GE device.
Customer can follow below steps to enable 3G/4G system.