You are on page 1of 40

Enbedded Internet/Ethernet Controler

Kevin Ho
R&D Engineer

Industrial Computer Products Data Acquisition System P.1


Product series

Data Acquisition and Control Cards


Daughter Boards
I-7000 Series Remote I/O Modules
I-7188 Series Embedded Controllers
 I-7188 Series Embedded Controller
 752N Series Communication Controller
 7188E Series Embedded Ethernet/Internet Controller
 I/O Expansion Board
I-8000 Compact Embedded Controller

Industrial Computer Products Data Acquisition System P.2


Feature of I-7000 Series

Variant I/O Modules


RS-485 Network
115.2K Baud Rate Maximum
Self-Turner
Dual Watch Dog
Good Expansibility
Wide Voltage Source (10~30VDC)
3000 VDC Isolated Protection

Industrial Computer Products Data Acquisition System P.3


Variant Remote I/O Modules

Analog Input Digital Output


 V  Photo MOS
 mV  Open Collector
 mA  Relay
 Thermocouple  Solid-State Relay (AC, RC)
 Strain Gauge Counter
Analog Output  Counter
 V  Frequency
 mV
 mA
Digital Input
 Isolated
 Non-Isolated

Industrial Computer Products Data Acquisition System P.4


Noise Resistance
Isolated
Protection

1.2Km ( up to 4.8Km by Repeater)

Noise

Cross Talk
D+

Deliver Receiver
Signal Signal
(DT)=(D+)-(D-) D- Noise (DT)=((D+)+Noise)
- ((D-)+Noise)

Ground

Industrial Computer Products Data Acquisition System P.5


Self-Tuner

RS-485 type PLC


Variant Baud Rate Data bit: 12 bits
Variant Data Format 38400 bps

Auto-Change RS-485 type PLC


Data bit: 12 bits
Direction 9600 bps

I-7000 modules
R.O.C. Innovation Data bit: 10 bits
Patent can be 1200, 2400
….., 115200 bps
P.R.O.C. Innovation
Patent Wireless modem
Data bit: 10 bits
U.S. Innovation 19200 bps
Patent
RS-232 Device
Data bit: 11 bits
9600 bps

Industrial Computer Products Data Acquisition System P.6


Dual Watch Dog

Host Watch Dog (Software) Module Watch Dog (Hardware)

Module Be Turned to Safe Value Module Be Reset Itself then Be


Turn to Power On Value

Industrial Computer Products Data Acquisition System P.7


Good Expansibility

RS-232 RS-485 Baud=115200


COM1
COM2
COM3
7520 .... . . .

7000 #01 7000 #02 7000 #FF


RS-232 RS-485 Baud=115200

7520 .... . . .

7000 #01 7000 #01 7000 #FF

:
:
RS-232 RS-485 Baud=115200

7520 .... . . .

7000 #01 7000 #02 7000 #FF

Industrial Computer Products Data Acquisition System P.8


RS-232 RS-485 RS-485

7188/752N .... . . .
7520
(Address-1)
7000 #01 7000 #02 7000 #FF
RS-485

7188/752N .... . . .
(Address-2)
7000 #01 7000 #02 7000 #FF

:
:
RS-485

7188/752N .... . . .
(Address-n)
7000 #01 7000 #02 7000 #FF

Industrial Computer Products Data Acquisition System P.9


Router TCP/IP RS-485

7188E .... .
Hub
(IP-1)
7000 #01 7000 #FF
RS-485

Router TCP/IP
7188E .... .
(IP-2)
7000 #01 7000 #FF
Hub
:
:
TCP/IP RS-485
TCP/IP

7188E .... .
(IP-n)
7000 #01 7000 #FF

Industrial Computer Products Data Acquisition System P.10


Command Protocol of I-7000

Use ASCII Command


Use Asynchronous Protocols
 1 Start Bit
 8 Data Bits
 Non Parity
 1 Stop Bit
Software Checksum for Reliability

Industrial Computer Products Data Acquisition System P.11


Typical Command Format
 Leading Character
 Address Character (00~FF)
 Command and Parameter
 Checksum (2 Character)
 CR (0x0D) for End of Command
Example
 $01M[Chk](CR) ………………..Read Module ID (Name)

Industrial Computer Products Data Acquisition System P.12


Develop Tool Kits

NAP7000P: Win32 DLL Developing Application


 VB, VC, BCB, Delphi
 For 7k/8k/87k Series
NAP7000S: Dos Based Diagnostic and Demo
 TC, BC, MSC
NAP7000X: ActiveX (OCX)
 VB, VC, BCB, Delphi
 For 7k/8k/87k Series
NAP7000V: VI Library for LabView
7000 Utility: Windows Based Diagnostic/ Utility Tool
 For 7k/8k/87k Series
NAP7000D: DDE Server
NAP7000OPCS: OPC Server
 For 7k/8k/87k Series

Industrial Computer Products Data Acquisition System P.13


Industrial Computer Products Data Acquisition System P.14
Features of 7188E

Supports a Variety of TCP/IP Protocols


 TCP, UDP, IP, ICMP, ARP, RARP
64 Bits Hardware Unique Serial Number Inside
COM Port Driver Support Interrupt & 1k Queue Input Buffer
Built-In Self-Tuner ASIC Chip for RS-485 Port
Built-in RTC, NVRAM, EEPROM, Flash Memory, SRAM
I/O Expansion Bus

Industrial Computer Products Data Acquisition System P.15


Features of 7188E

Built-In MiniOS7
Program Download Port: COM1 or Ethernet Port (Available
soon)
Remote Configuration, Diagnostics
Operating Temperature: -25 °C ~ 75 °C
Storage Temperature:-40 °C ~ 80 °C

Industrial Computer Products Data Acquisition System P.16


Typical Application
Application
Rs-232
VxComm Virtual COM

TCP/IP TCP/IP
Application Ethernet I/O
Program

Browser
( IE, Netscape) Web server

Hub

7188E series

Ethernet

RS-232
RS-485

Device I/O Expansion Bus


X server
X server
Web server I/O expansion
module

Industrial Computer Products Data Acquisition System P.17


VxComm
Virtual COM Application
Hub Ethernet 10M

COM1
COM 3
COM2
COM 4
7188E
(IP-1) .... .
7000 #01 7000 #FF

COM1
COM 5
COM2
COM 6
7188E
(IP-2) .... .
7000 #01 7000 #FF

COM1
COM 254
COM2
COM 255
7188E
(IP-n) .... .
7000 #01 7000 #FF

Industrial Computer Products Data Acquisition System P.18


Ethernet I/O Application
Hub Ethernet 10M

IP(1) Port 10000


COM1
IP(1) Port 10001
7188E2 COM2
IP(1) Port 10002

.... .
7000 #01 7000 #FF
IP(2) Port 10000
COM1
IP(2) Port 10001
7188E2 COM2
IP(2) Port 10002

.... .
7000 #01 7000 #FF

IP(n) Port 10000


COM1
IP(n) Port 10001
7188E2 COM2
IP(n) Port 10002

.... .

Industrial Computer Products


7000 #01
Data7000
Acquisition
#FF
System P.19
Commands Protocol of XServer

Port Configuration
Port: 10000 ~ 7188E
Port: 10001 ~ COM1 of 7188E
Port: 10002 ~ COM2 of 7188E

Port: 10008 ~ COM8 of 7188E

Command Set
Command Instruction format Example Return

Version 01 01 V2.60

RTS 05,port(1),set(1) 0511 OK

Baud 06,port(1),baud 0619600 OK

Line 07,port(1),line Control(3) 0718N1 OK

Set IP 08,IP(12) 08192168255001 OK

Industrial Computer Products Data Acquisition System P.20


Command Instruction format Example Return

Recv Timeout 19,timeout(4) 091000 OK

Server Name 10 10 7188E2

Dialog 11,string(80) 11hello hello

Set Gateway 12,GatewayIP(12) 12192168000001 OK

Get Gateway 13 13 192.168.0.1

Set Mask 14,Mask(12) 14255255000000 OK

Get Mask 15 15 255.255.0.0

Get COM Status 16,port(1) 161 9600,N,8,1

Digital Input 17,address_Hex(4) 1703F8 3A

Digital Output 18,address_Hex(4),Data_Hex(2) 1803F800 OK

Bypass User Cmd 19,Command 19(User define) (User define)

7-SEG LEDs Control 20,Status(1) 201 7-SEG LEDs Enable

Get Mac 21 21 70:00:00:00:00:01

Get OS Version 22 22 V1.2 (2000/06/27)

Industrial Computer Products Data Acquisition System P.21


VxComm.exe
Initialize

XServer UserInit(void)

Update
7-SEG LEDs
TCP (Now)
UDP (Soon) UserLoopFun(void)

Refresh Watchdog &


Scan COM port
Timer Trigger

No New Socket
Ready ?
UserCount(void)
Yes

Read command

User command Yes Cmd(Without "19")


(19) ?
No UserCmd(Cmd,Response)

Execute command
Response

VxComm.lib User.c

Industrial Computer Products Data Acquisition System P.22


UserCount (User Interrupt)

Prohibit Solve
ClockHigh(), ClockLow(), Clock Global Flag Variables
HighLow() Change Flag Status in UserCount
Any EEPROM Functions Execute in UserLoop
Any 5DigitLed Functions
Any NVRAM Functions
Any RTC Functions

Industrial Computer Products Data Acquisition System P.23


UserCmd

Parameters
 Cmd: 1.5K Bytes –2 Bytes (Command Number)
 Response: 1.5K Bytes
Action
 Request(PC) Feedback(Xserver)
Command Format
 19 + User defined protocol

Industrial Computer Products Data Acquisition System P.24


How to Debug

7188xw Debug Mode


 RS-223 (Download COM port)
Client Program
 TCP/IP
7-SEG LEDs

Industrial Computer Products Data Acquisition System P.25


Xserver Demo
Xserver demo PC used as a client

Demo 4: Empty Xserver PClient1.exe


Client send command string to Xserver
Server echo command string back

Demo 5: Receive fixed string from Xserver PClient1.exe

Demo 6: Read/Write I/O port of 7188E PClient1.exe


Client uses command 19 to simulate 17,18
Xserver uses inp, outp

Demo 9: Timer trigger PClient1.exe


Client reads/clears timmer trigger counts
Xserver triggers UserCount every second

Demo 10: Refresh Watchdog PClient1.exe

Demo 12: Read scan loop counts PClient2.exe


Client reads/clears scan loop counts
Xserver increases scan loop count every scan loop

Industrial Computer Products Data Acquisition System P.26


Xserver demo PC used as a client

Demo 14: Control 7-SEG LEDs PClient4.exe

Demo 17: Pulse width measurement (7188E2 +X003/A) PClient5.exe


Client uses 18 to send pulse signals, uses 19 to read pulse width
Xserver measures pulse width

Demo 18: Read 7000 series module ID.Show module ID at PC monitor and PClient4.exe
7188E LEDs.

Demo 19: Read 64 bits unique hardware serial number PClient4.exe

Demo 20: Read/Write/Clear NVRAM PClient4.exe

Demo 21: Control hardware in UserCount function None

Industrial Computer Products Data Acquisition System P.27


File Location

NapDos
 7188e
 Document
 MiniOS7
 TCP
 Vxcomm
 Firmware
 Driver
 Xserver
 Lib
 Demo
 Client
 Webserver
 PC Diag
 SendTCP
 Send232
 Other
 UDP
 Vxcomm
 Xserver

Industrial Computer Products Data Acquisition System P.28


Status of XSever

One Client to One Sever (V2.6.0 Ok)


 3 Connections Only
 Port 10000 for 7188E
 Port 10001 for COM1
 Port 10002 for COM2
Multiple Client to One Server (V2.6.14 OK)
 28 Connections Maximum
 Port 7188 (in Hex) for Debug
 Port 10000, 10001, 10002 for Listen

Hub

Industrial Computer Products Data Acquisition System P.29


Advantage of XServer

Built In TCP/IP Variant Communication Protocol


 User does not need to care communicate with PC by ethernet
Easy Modified Templet Program
 UserInit
 UserLoopFun
 UserCmd
 UserCount
User Defined Command Format
Support I/O Expansion Bus

Industrial Computer Products Data Acquisition System P.30


Application 1

Industrial Computer Products Data Acquisition System P.31


Application 2

Industrial Computer Products Data Acquisition System P.32


Application 3

Industrial Computer Products Data Acquisition System P.33


Application 4

Industrial Computer Products Data Acquisition System P.34


Application 5

Industrial Computer Products Data Acquisition System P.35


Application 6

Industrial Computer Products Data Acquisition System P.36


Contact Us

Web Site: www.icpdas.com

E-mail: service@icpdas.com
icpdas@ms8.hinet.net

Industrial Computer Products Data Acquisition System P.37


Memory Selection

NVRAM (31 Bytes) (Option)


 Change Very Frequently.
 Battery Backup for 10 years
EEPROM (2K Bytes)
 Data Not Change Frequently
 ReWrite 1000,000 Times
 Restore Configure Setting (Block 0)
Flash Memory (256K, 512K Bytes)
 Data Not Change Frequently
 ReWrite 100,000 Times
 Restore OS (Last Sector), User’s Program

Industrial Computer Products Data Acquisition System P.38


I/O Expansion Boards

Prototype & Testing


D/I, D/O
Timer/Counter
A/D, D/A
RS-232/422 Channels
Memory
 Flash ROM (4M Bytes ~ 32M Bytes)
 SRAM (128K Bytes, 512K Bytes)

Industrial Computer Products Data Acquisition System P.39


MiniOS7

Files Download and Execution (.exe, .com, .bat)


Hardware Diagnostic
Update MiniOS7
Use Autoexec.bat
Support Int 21H Memory Management
Don’t Support Int 21H File Read/Write Function (Support Library
to Read/Write File)
Can’t Run Another Process ( Function system() of C)
Warm Up Time
 0.1 Second for 20 MHz CPU
 0.05 Second for 40 MHz CPU
 0.5 Second for 8k Main Unit

Industrial Computer Products Data Acquisition System P.40

You might also like