Home

Software Manual - ICP DAS USA`s I

image

Contents

1. 843x883x Document Readme htm 1 Configure Wizard TCP PCDiag Setup 2 Send232 3 Send TCP Source 4 7188E VxComm Doc Big5 Eng Gb2312 vxcomm htm Driver PC NT 2K XP Server 843x883x Web Server Xserver 8430 8431 Client VB VC Demo BC MSC TG Demo Lib v7000 Xserver htm Function htm Other UDP Other 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 1 3 Software Installation 1 3 1 Installation Steps The installation steps are given as follows Step 1 Change the directory to the destination folder as follows For example CD ROM Drive is D C gt d D gt cd NAPDOS 8000 843x883x D NAPDOS 8000 843x883x gt _ Step 2 Make a new directory for the 8000E Xcopy all files C gt md 8000E C gt cd 8000E C 8000E gt xcopy d c s v 1 3 2 Installing 7188X exe 7188XW exe The 7188X exe 7188XW exe is used to download and debug programs Users should copy it to the PATH directory first Then users can execute 7188X exe 7188XW exe in any directory on the host PC The installation steps are given as follow Step 1 Change the directory to the destination folder as follows For example CD ROM Drive is D C gt d D gt cd NAPDOS 8000 Common MiniOS7 D NAPDOS 8000 Common MiniOS7 gt _ Step 2 Copy 7188X EXE from CD
2. __ gq Gateway A sa Fee Mask Dm Set _ Server COM3 Echo Service Configuration Send Echo Tet OS S S Baud Rate peoo Data E Party fn Respons TEmo Ten eowpetsetra sop Me Send Receive Data send _Send send SME 7 CP di Response a S Virtual 7000 Server COM4 Send pom V CR Configuration B Baud Rate 600mm Data E co E COM Port Setting stop fil sed SM c3 Response Response Step 5 Send 19N to read the module s ID which is plugged in 8431 with N being the slot number Note The firmware inside 8000E must be Demo36 exe default shipping Xserver for 8431 8831 Send Receive Data Send Responsellot 0 Find 8705400 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 85 Send Receive Data Send Responselsiat 1 Find 805600 Send Receive Data Send Responselsiot 3 NoFind00 Step 6 Send 19N to read the main unit s name with N larger than 7 Send Receive Data Send Responselvain Unit gt 5451 Step 7 Send 03M to read the 7000 module s ID which is connected to 8431 s COM3 using CA0915 to connect 8431 s COM3 with 7520 directly Server COM3 Configuration Baud Rate peoo Data E Parity NRE compen etre
3. Q Does the VxComm Driver PC support auto reconnection after fixing a network break A Yes the VxComm Driver PC supports the auto reconnection mechanism after version 2 00 The VxComm Utility allows users to set the server options that include Keep Alive Time ms and Connection Broken time ms Please refer to the section Adding a 7188E 8000E server and configuring the VxComm driver 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 53 4 Ethernet I O Applications 4 1 Operation Principle of the Xserver The typical TCP IP mechanism is a standard tool but very complicated for a software engineer It takes long time for a software engineer to develop a programs using TCP IP protocol The command protocol designed for a TCP IP system can be based on user s applications without any limitations So every software engineer can design his special protocol without any pre defined standard This will cause some of the troubles given as follows Is this protocol reliable Does this protocol fit all requirements How to maintain this protocol by another software engineer Time to market Engineering cost to design amp debug this protocol The Xserver is designed to solve all problems mentioned above as follows We design amp maintain the reliable original Xserver for all users The protocol is designed to fit all requirements of the 7188E series The protocol is OPEN amp expandable to reduc
4. The term Ethernet generally refers to a standard published in 1982 by Digital Eugipment Corp Intel Corp and Xerox Corp Ethernet is the most popular physical layer local area network technology today Ethernet is a best effort delivery system that uses CSMA CD technology It recognizes hosts using 48 bit MAC address Internet Physically a collection of packet switching networks interconnected by gateways along with TCP IP protocol that allows them to perform logically as a single large and virtual network Internet recognizes hosts using 32 bit IP address TCP IP Transmission Control Protocol TCP and Internet Protocol IP are the standard network protocols They are almost always implemented and used together and called TCP IP TCP IP can be used to communicate across any set of interconnected network TCP Transmssion Control Protocol TCP provides a reliable flow of data between two hosts It is connected with things such as dividing the data passed to it from applications into appropriately sized chunks for the network layer below acknowledging received packets setting timeouts to make certain that the other end acknowledges packets that are sent and so on UDP User Datagram Protocol UDP provides a much simpler service to the application layer It just sends packets of data from one host to the other But there is no guarantee that the packets reach the destination host Gateway Computers that in
5. t_Status Length 3 break case SKEY_DOWN t_Status ReadUartChar DOWN t_Status Length 5 break case SKEY_SET t_Status ReadUartChar SET t_Status Length 4 break case SKEY_MODE t_Status ReadUartChar MODE t_Status Length 5 break of switch Send data to PC VcomSendSocket t_Status Socket t_Status ReadUartChar t_Status Length int VcomUserBinaryCmd TCPREADDATA p t_Status Socket p gt Socket p gt ReadUartChar p gt Length 0 Add zero end sscanf p gt ReadUartChar 2 s sMode Turn to upper case strupr sMode if stremp sMode ON VcomSendSocket t_Status Socket Turn on auto reply 19 String length is 19 else VcomSendSocket t_Status Socket Turn off auto reply 20 String length is 20 return 1 any value will be accept 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 97 Demo40 SE only D I from 8000 modules 16 DI channels Part of the explanation head 191 1 19I 1 gt D I from slot 1 1911 1911 gt D I from slot 1 Uses DI_16 to D I from parallel DI modules 16 channels on 8000 slots Shows value both decimal amp binary mode bitO bit15 Hardware 8000E parallel DI module 16 DI channels int UserCmd unsigned char Cmd unsigned char Response user s command interpreter refer to all demo char sResult 17 Store 16 bits binary input status High gt 1 Low gt 0 int iSlot iTotalChannel 16 unsigned i
6. xi 7188E S000E Intemet Ethemet I Check Duplical IV_Check Serve IP Address 192 168 255 1 Add Server V xComm Devices Server Options Note Check Duplicate option Checks whether the IP address is already listed in the server window left hand window Default is automatically checked The following window pops up if IP address is duplicated YxComm x AN This IF has been used 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 30 Check Server option Connects to the 7188E 8000E and gets the device s name before adding to the server window left hand window Default is automatically checked The following window pops up if the host fails to connect xComm E x iN Check Server Failure Step 4 The following window pops up if you uncheck the Check Server option before pressing the Add Server button Please choose a suitable Model Number of 7188E 8000E and then click the OK button a Please select the correct product model number Cancel Model Number AEAF 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 Step 5 Select one of the 7188E 8000E devices and configure the virtual COM port s by double clicking Port1 Port2 or etc x 7188E 8000E Intemet Ethemet I Check Duplical IV Check Serve IP Address 192 168 255 1 Add Server VxComm Devices 7188E4 192 168 255 1 Available Available Available Available
7. General Driver S Ynsernet Device type Non Plug and Play Drivers Manufacturer Unknown Location Unknown Device status This device is working Ifyou are having problems with this device click Troubleshooter to start the troubleshooter Troubleshooter Device usage Use this device enable v OK Cancel Problem Client programs open the COM port with success but fail to access the device Check Check the device s power supply and wiring RS 232 RXD TXD RS 485 D D GND 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 52 3 FAQ Q Which modules are supported by VxComm Driver PC A 7188EA 7188EX 7188E1 7188E2 7188E3 7188E3 232 7188E4 7188E5 7188E8 8430 8830 and 8431 8831 Q Does the VxComm Driver PC v2 00 work with the VxComm Server 7188E 8000E v2 6 00 A No please upgrade the VxComm Server to version 2 6 14 or lastest version The VxComm Server 7188E 8000E v2 6 00 uses the 06 and 07 command to change the baudrate and the data format and then saves these configurations in the EEPROM The newer version adds the 02 and 03 command to change the baudrate and data format without saving These two commands improve the performance when changing baudrate and data format The VxComm Driver PC also changed to use the new commands Thus users have to upgrade their VxComm Server 7188E 8000E to the lastest version
8. anne Options T S A lt 4 le Large u Assume SS Equals DS IIl Bocca ef ines ee 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 76 Step 4 Set Advanced code generation options roject indow elp piiat ion options Advanced C options ptimizations l ource lessages ames Far Data hreshold Step 5 Set Debugger options a indow Help pplication ompiler ransfer ake nvironment BEJ 52 C gt None m R _ d Display Swappin i rogram Heap Size Kx K bytes 8000E Series Software User s Manual 2002 v1 0 8MS O01 10 71 Step 6 Make the project Note Please refer to 8000 843x883x Document TCPLib pdf for more information about settings of other compilers 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 78 4 6 Using client programs To test functions of Xserver you must run a client program We support many Quick Start documents for specific modules like 8430_Quick_Start pdf 8431_Quick_Start pdf Please refer to documents in 8000 843x883x Document 4 6 1 Using Client4 exe to link 8431 Step 1 Run 8000 843x883x TCP Xserver Client Vb5 Client4 Chient4 exe in host PC Press Connect button to connect to 8431 Send command 01 10 ia Client side host name DNS IP 192 168 168 16 ECHO Client Server IP 192 168 2551 o
9. s COM port that is used by 7188xw exe more more 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 16 1 5 PC Diagnostic tools The PC Diagnostic tools include gt Configure Wizard guides users step by step in configuring the 7188E 8000E s network setting 10 2 COM1 E gt Configure Wizard COM status __ Host PC Operation com 115200 IP 192 168 30 23 Step 4 Connect COM1 COM2 of PC ee NG Mask 255 255 0 0 to COM1 of the 7188E 8000E i Close Gateway fi 92 168 0 1 Step 5 7188E Setting Recomend 7188E Setting Origin Information of the IP JIP IP fi 92 168 30 24 7188E 8000E Mask Mask Mask 255 255 0 0 Gateway Gateway Gateway 192 168 0 1 Please refer to 8000 843x883x Document 8000Ehh pdf for more operating details 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 17 gt Send232 uses serial port RS 232 interface to communicate with devices Can be used to test the Virtual COM technology 2 2 0 0 COM2 COM status gt _ Send string with com2 x 9600 z None C LF_CR C CR C CRLF Line control N 81 CLF Open Close Auto send sting Interval o Set Send Send Stop k Send Receive Exit Program Please refer to sec 3 6
10. 3 allaPI Network cy Search gt DAQPro fF 718de 2 Help Run SendTcp EA SendTcp Help Cy Shut Down on MHEN HXAG Step 2 Click the server name you want to remove and press the Remove Server button g xComm Utility 2 03 g xj 7188E78000E Internet Ethernet I Check Duplical IV Check Serve IP Address 192 168 255 1 Add Server Fomm Devices 8830 192 168 255 1 Port 1 0 COM3 Available Port 1 COM4 Available Part 3 COMS Available Server Options Status 4 M Remove Server 8830 v3 0 02 11 30 2001 connected 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 36 Setp 3 The following window will pop up please make sure of your choice and press the Yes button to remove it comm Server 8830 192 168 255 1 Are you sure to remove this server a Step 4 Press the OK button to finish this utility g xComm Utility v2 03 nd 7188E 8000E Intemnet Ethemet M Check Duplical V Check Serve IP Address 192 168 255 1 Add Server Pot COM___ Status V xComm Devices Server Uptions x Remove Server 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 37 3 5 Uninstalling the VxComm Driver Step 1 Select the UnInstall VxComm op Pro ant RQ Accessories gt Fn Development Kits gt A Documents gt Microsoft Visual Studi
11. 7188EA 7188EX 7188EX 256 series 8000 series Iview 100 series More new embedded controller families 7188E1 7188E2 7188E3 7188E4 7188E5 7188E8 series Several brands of DOS have been created by various companies In all cases DOS whether PC DOS MS DOS or ROM DOS is a set of commands or code which tells the computer how to process information DOS runs programs manages files controls information processing directs input and output and performs many other related functions The MiniOS7 provides equivalent functions of ROMDOS and provides more specific functions for the 7188X 7521 8000 family Comparison between MiniOS7 and ROM DOS Function MiniOs7 RomDos Power up time O l sec 4 5 sec Supports I O expansion bus Yes No Supports AsicKey Yes No Supports hardware unique serial number Yes No Supports MMI Iview 100 series Yes No Supports Ethernet 10M interface 7188E amp 8X3X series Yes No Directly downloads executable programs into Flash ROM Yes No O S updateable downloadable Yes No Built in hardware diagnostic functions Yes No Directly controls 7000 series modules Yes No Customers ODM functions Yes No Free of charge Yes No Note We reserve the right to change the specifications of MiniOS7 without notice 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 Command Sets of MiniOS7 Command Description LED5 pos value Shows a HEX
12. Print you must use DisableCom and RestoreCom to disable printCom1 You can use Print or printCom1 to send a Debug string to PC monitor by Demo8 Uses Print to debug 7188E 8000E s vom Clienti programs If you want to use Print you must use DisableCom and RestoreCom to disable printCom1 UserCount will be executed every second Count value will be icreased in Demog Timer trigger demo UserCount PC can read count value to Client know how many seconds after count value be cleared If user s function cost more than 1 6 Refreshes Watchdog seconds User must insert Refresh WDT Demo10 Clienti demo function to refresh WDT avoid the OS restarting itself in 1 6 second 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 64 UserLoopFun will increase count value every scan loop PC can read how Scan time Demo12 i many scan loops there are after clear Client2 evaluation f count value So user can use this demo to test Xserver performance Show5DigitLed Show5DigitLedWithDot can show 5 digits to 7 SEG LEDs Th f i how 0 9 Demo14 Controls 7 SEG LED two functions can s ide i Client4 A a F This demo shows how to E Reads l 7000 series communication with the 7000 series Client4 module s ID which are connected to COM2 of 7188E or COMS of 8000E Unique serial number is used to protect ser s software Using 7188xw exe to Reads 64 bits ia Bp ng aa enter 7188E
13. 1 2 DIRECTORY TREE OF SOFTWARE AND LITERATURE sssssesesesessseseseseceseceveseseseceseseseceseseceeeseseseseseseseseseseseseseseseseseeeeees 8 1 3 SOFTWARE INSTALLATION a a E A oe dea wae E R ER 10 1 4 SOFFWARE UTILITIES a a Sle tae E E a a eTe a EEr e S aee S 13 1 5 PC DINE ORIN LOARO O EEN E EE EAE S A E EE EEE a ee en tease ees 17 2 MINIOS7 OF THE 8000 SERIES eesseseessecesssecssoceesseceesseceessecssccsecssoceesseceessecsscseesscocesseceessecsssoecsscoeesseceessecessseessssecsseceese 20 2 1 MINIOS7 FOR THE 8000 SERIES 0ccccccsceeeseseseseseceseseseseveceveseseceseseseeeeeseseseseeeceseseseseceseseseseeeseseceseseseseseseseseeeeeeeeens 20 2 2 DEMO PROGRAMS FOR THE 8000E SERIES 0 0c0ecssesesesesesesesesesesesecesesesesececessceseseseseseseseseeeseseseseseceseseseseseseeeeeeeeees 23 3 VXCOMM APPLICATIONS wisssssscsssorsseseconsocsessciseseccosevsstcossetecsssesdecssdusioossbecseseetecsesustecsesesieldeedesesssvensoede sisses rissin 24 3 1 OVERVIEW ssrsc 2 ee eco eee ELSE LEE RB IB bt 24 3 2 INSTALLING THE VXCOMM DRIVER cccscsssesesesesevevevevevevevevevevesesevesevevevevereveveveveveveveveseresevesesesesesesesesesesesesesesenesenens 27 3 3 ADDING A 7188E 8000E SERVER AND CONFIGURING THE VXCOMM DRIVER ss000seeseeeseeeseseseseseseseseseseseseseseeens 29 3 4 REMOVING A 7188E 8000E SERVER ccccssesesesesesssesesesececeveseveseseseseseeeseseseceseseseseceseseseseeeseceseseceeeseceseseseceseseseeeeen
14. 8000 slots wine More demo programs We will provide 50 100 demo programs for the Xserver in the future Please refer to 8000 843x883x TCP Xserver Xserver htm and Function htm for more information of demo programs 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 67 4 4 Client program list for Xserver 8430 8830 More client programs Client programs are located at 8000 843x883x TCP Xserver 8430 Full features demo include 8430 Virtual 7000 Ae All simple demos 8431 8831 Full features demo include 8431 Virtual 7000 an All simple demos oer More client programs Client programs are located at 8000 843x883x TCP Xserver 8431 Common clients Client1 Used to test all Used to test all simple Xserver demos _ Xserver demos All Alidemos Client2 Sends 19 0 men aslay n ms and Demo12 send command 19 1 Similar to Client1 just adds sending string with CR function Sends period step function signals to eae O port of the 7188E poo Client4 All demos CheckValue main functions Demo22 Demo25 or 1 Catches below errors demos which return a Winsock error value total 7 CheckValue 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 68 b Receive data from Xserver timeout 2 Checks received data out of range 3 Automatic reconnect ability CheckString main functions 1 Catches below errors a
15. Doon E SESE E Response 05706000 Note You cannot get any correct response when you download any Xserver program excep you implement the firmware in v7000 c into 8000Es by sending commands like 00M from Virtual 7000 function 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 86 Virtual 7000 E Response 7 Clear If you want to use 8000 s commands to access modules you must first download 8KE10 exe default shipping for 8430 8830 into the 8000E Then reconnect to the 8000E and send commands form Virtual 7000 Virtual 7000 Response Of course using the 7000 Utility is the easiest way to configure modules plugged in 8000E Please refer to sec 3 6 1 example 3 for more information 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 87 4 7 Demo Programs of Xserver We will provide 50 100 demo programs for our users Please refer to 8000 843x883x TCP Xserver Xserver htm and Function htm for more information about demo programs of Xserver and client programs for Xserver Demo5 Echoes special string to clients Part of the program body int UserCmd unsigned char Cmd unsigned char Response user s command interpreter refer to all demo strcpy Response 8000_Series returns 8000_Series string to clients return 1 return OK Demo 7 Uses printCom1 to debug programs Par
16. MiniOS7 will show a Demo19 unique hardware Client4 number User can check the number at serial number first then decide to execute Xserver from that point on NVRAM s characteristic is short Reads Writes Clears a Demo20 NVRAM response time limitless erasure Client4 and battery backup for 10 years Actions concerning hardware control in UserCount is prohibited If users want Controls hardware in UserCount to control hardware in UserCount they must use flag variable to pass the command to UserLoopFun Function of hardware can be executed correctly in UserInit UserLoopFun UserCmd This demo will increase numbers every second and show the value in the LEDs in UserCount function Demo21 Client4 Demo23 Echoes all data Uses VcomSendSocket to echo all data Client4 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 65 including 23 to including 23 to specific clients specific clients There are 8 countdown timer channel 0 to channel 7 This demo uses channel Uses countdown 0 The countdown timer initial value is Demo24 j None timer 1000 ms When the countdown timer value become 0 the value of the LED will increase Links to MMI by Demo26 Modbus Serial portocol This demo is the default shipping Demo36 Reads Units and program for 8431 8831 Users can use 8E only modules s ID this demo to find out which modules are plugged in 8000
17. RefreshWDT File GeFileNo GetFileName GetFilePositionByNo GetFilePositionByName Connects to 7000 SendCmdTo7000 ReceiveResponseFrom7000 Programmable T O SetDio4Dir SetDio4High SetDio4Low GetDio4 Others Kbhit Getch Putch LineInput Scanf Refer to 8000 843x883x document 8000Ehh pdf amp 8000 843x883x document TCPIPLib pdf amp 8000 843x883x document WebLib pdf amp 8000 Common minios7 doc index htm for more information Refer to 8000 843x883x document TCPIPLib pdf for how to compile amp link 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 2 2 Demo Programs for the 8000E Series We provide hundreds of demo programs for users The source codes are all in the shipped CD It is recommended to edit amp modify these demo programs when starting user s special applications The demo programs can be classed as follows Some of the demo programs designed for MiniOS7 are given as follows Demo Description Hello Can run on PC or 8000 just use Print to print xxx Hello 8000 Hellol Demo for using functions Is8000 GetLibVersion Print Hello2 Demo for using C compiler FILE Demo information in obtaining file information and file position in Flash memory All file data is stored in Flash Memory In MiniOS7 cannot use C s functions fopen fclose fread fwrite BATCH An example of BATCH files BAT SCANF Demo for using LineInput and Sc
18. Software User s Manual 2002 v1 0 8MS 001 10 93 if CLED i cLED i 18 Show5DigitLedG 1 cLED i strcpy Response Cmd return 1 Demol18 Reads I 7000 series module s ID Part of the explanation head 19 gt Any command will be accepted This demo shows how to communication with the 7000 series which are connected to COM3 of the 8000E Hardware 8000E any 7000 series module whose address is 01 baudrate is 9600 checksum is disable Part of the program body char cStr 9 Receive data from 7000 017021 Ox0c char cModuleID 5 Store module ID 7021 0x00 void UserCount void int 1 SendCmdTo7000 3 01M 0 ReceiveResponseFrom7000 3 cStr 1000 0 cut 01 and cr strcpy cModuleID cStr 3 cModuleID 4 0 Show moduleID to PC monitor printCom 1 Address 01 ModuleID s n r cModuleID 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 94 void UserInit void AddUserTimerFunction UserCount 1000 InstallCom 2 9600 8 0 SetBaudrate 1 115200L Demo19 Reads system serial number Part of the explanation head 19 gt Any command will be accepted Unique hardware serial number is used to protect user s software Using 7188xw exe to enter 7188E and then execute command ver MiniOS7 will show the serial number User can check the number at first then decide to execute Xserver forward Hardware 8
19. VxCommNT exe for Windows NT 4 0 or gt 8000 843x883x TCP VxComm 2K VxComm 2K exe for Windows 2000 Windows XP This document shows how to install and configure the driver correctly There are three parts to the quick start manual The first part instructs users how to install the software The second part shows how to add a 7188E 8000E server and configure a COM port Finally the third part teachs you how to remove a 7188E 8000E server 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 24 3 1 1 Architecture The VxComm Driver creates COM port s and maps them to the COM port s of the 7188E 8000E The user s RS 232 client programs need only to change to the different COM port to access the serial devices that are allocated to the Internet or Ethernet network via the 7188E 8000E Serial 71886 Ethernet Ethernet Internet Internet Driver Internet rcp 1p Layer 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 25 3 1 2 Port mapping Vxcomm Driver Utility supports Port 1 to Port 8 in accessing COM to COM8 of the 7188E 8000E Another Port I O is designed to access the I O boards mounted on 7188E or 8000E With the help of the VxComm Driver Utility uses can map remote COM port and I O boards to become a virtual COM port of PC One PC can control a maximun of 256 COM ports including COM1 and COM2 PC r 71 on COM COM o Poti o 1 COM a a a C
20. clear case C cnt 0 break case r 19r 19R gt read count case R break break case r 19r 19R gt read count case R break default return 0 Command Error sprintf Response d cnt return count value return 1 return OK return 0 return ERROR Demol14 Controls 7 SEG LEDs Part of the explanation head 1912345 19abcde gt Show 5 digits to 7 SEG LED Show5DigitLed Show5DigitLedWithDot can show 5 digits to 7 SEG LEDs The two functions can show 0 9 Fat a Hardware 8000E 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 92 Part of the program body extern int bLedControl key variable 0 disable LED control Xserver will not show default information on LED 1 enable LED control Xserver will show default information on LED void UserInit void Init5 DigitLed bLedControl 0 char cLED 6 int UserCmd unsigned char Cmd unsigned char Response user s command interpreter int i set default LED char is blank for i 0 1 lt 5 1 cLED iJ 16 strcpy cLED Cmd forG 0 1 lt 5 1 if CLED i gt 0 amp amp cLED i lt 9 cLED i J cLED i 0 if CLED i gt a amp amp cLED i lt f cLED iJ cLED i a 10 if CLED i gt A amp amp cLED i lt F cLED i cLED i A 10 if CLED iJ cLED iJ 16 if CLED i cLED i 17 8000E Series
21. of the 8000E s COM port ma 1 vow Ge Comer le O Bi fomes heast None Senh Gate Po m oa em o aa e en DDD Deen rom Gen yi 3 a z ee uwe 8000 50 8000 53 Meter 1 7000 01 7000 FF s000 S0 8000 53 Meter 1 U REISE 7000 01 7000 FF 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 T 1 2 Directory tree of software and literature To help users reduce developing time we support many software resources including documents drivers libraries diagnostic programs client programs and many Xserver demos You can quickly find which resources you need by using the directory tree The content of shipped CD AUTORUN INF gt for CD auto run README TXT gt please read this file first NAPDOS Web gt Company web site Ar4 gt for Acrobat reader Bin gt for autorun 8000 Index htm gt please read this file first 841x881x 842x882x 843x883x Document E TCP UDP 844x884x 87K Catalog Common Note The software amp manual are updated frequently so the content of the companion CD is also updated frequently The best way is to read every README TXT located in every directory All updated information is given in these files 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 8 Sub directory tree of 843x883x
22. the menu item COM Port to choose the COM port number baudrate and checksum For example COM4 115200 19200 9600 and No Checksum These settings depend on the 7000 series module s settings 7ONN tility il COM Port earch Run Terminal Help The I 7000 8000 Modules Found J plela It T Searching Status COM Port COM Address fi fdec 1Thexl Baud Rate 775200 3 39PM 5 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 48 Step 4 Click the a search icon 7000 Utility File COMPort Search Run Terminal Help Step 5 If the VxComm Driver works well the 7000 Utility can search the module s connected to the 7188E 8000E s COM1 7000 Utility Fille COMPort Search Run Terminal Help the I 7000 8000 Modules Found plaja jefe Module Addr Baudrate _ Alarm Di 7060D 101 115200 3 6 2 Trouble Shooting Problem Client program fail to open the COM port that was created by the VxComm Driver Check 7188E 8000E s power supply network cable IP address subnet mask and gateway Please refer to the 7188E 8000E user s manual for more information 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 Problem Client program still fails to open the COM port Check Step 1 Right click the My computer icon and select the Manage option Recycle Bin Step 2 Select the Device Manager icon from the Com
23. to the PATH directory defined in PATH C gt cd windows C windows gt copy d 7188x exe Note 7188XW exe is designed for win32 system So it can be used for USB RS232 or PCMCIA RS232 port 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 10 1 3 3 Installing PC diagnostic tools Step1 Run Setup exe from the 8000 843x883x TCP PCDiag Setup directory Setp2 Choose destination folder ation Location Setup will install PCDiag in the following folder To install to this folder click Next To install to a different folder click Browse and select another folder You can choose not to install PCDiag by clicking Cancel to exit Setup Destination Folder C Program Files 7198E PCDiag Browse Cancel Step3 Select program folder ram Folder Setup will add program icons to the Program Folder listed below You may type a new folder name or select one from the existing Folders list Click Next to continue Program Folders 7188e PCDiag Existing Folders Dr eye 2001 FA E asyBuilder 200 FinePrint 2000 GlobalSCAPE Step4 Start copying files Setup has enough information to start copying the program files If you want to review or change any settings click Back If you are satisfied with the settings click Next to begin copying files Current Settings Installing PC diagnostic tools listed below 1 Configure Wizard version 1 0 0 2 Send232 versio
24. to your computer Before you can use the program you must restart Windows or your computer C No Iwill restart my computer later Remove any disks from their drives and then click Finish to complete setup D Step 5 After rebooting the computer the VxComm Utility will ask you to configure the virtual COM port s Please refer to the next section for more information 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 3 3 Adding a 7188E 8000E server and configuring the VxComm Driver 7188E 8000E s default IP address is 192 168 255 1 Stepl Obtain the IP address of the 7188E 8000E Either 7188x exe 7188xw exe or Configure wizard can help you in obtaining the IP address of 7188E 8000E Refer to 8000 843x883x Document 8000Ehh pdf for information regarding the use of these three tools Step 2 Select the VxComm Utility T or Programs gt 3 Accessories gt E fr Development Kits gt Documents gt 3 Microsoft visual Studio 6 0 gt 9 InstallShield PackageForTheWeb 2 Eh Settings gt A AIAPI Network gt eg Search gt 3 DAQPro gt 8 2 J C PCDiag foe eed icf Uninstall xComm Run EY xComm Help YxComm Utility Cy Shut Down amp SendTcp EY SendTcp Help Asar HEUGHAE 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 29 Step 3 Add a 7188E 8000E server IP address and Press the Add Server Button
25. value in the specified position of 5 digit LED USE NVRAM Into the service routine for reading writing NVARM USE EEPROM Into the service routine for reading writint EEPROM USE Flash Into the service routine for reading writing Flash ROM USE COMO option Into the service routine for sending receiving to from COMO USE COM2 option 8000 s back plane RS 232 to communicate with 87K modules Into the service routine for sending receiving to from COM2 RS 485 to communicate with 7000 and 87K modules DATE mm dd yyyy Sets the date of RTC TIME hh mm ss Sets the time of RTC MCB Tests current memory block UPLOAD The first step in updating the MiniOs7 BIOS1 The last step in updating the MiniOs7 LOAD DOWNLOADs the user program into the Flash Memory DIR crc Shows the information of all files downloaded into the Flash Memory RUN fileno Runs the file with file number fileno no fileno gt the last file Name Runs the file with file name name DELETE or DEL Deletes all files stored in the Flash Memory It will delete all files RESET Resets the CPU DIAG option Hardware Diagnostic BAUD baudrate Sets the new value of communication baudrate to baudrate TYPE filename b Lists content of the file REP command Repeats execution of the same command times RESERVE n Reserves n Flash Memory sectors for USER
26. 00 set 8431 is connected MAC 00 80 33 32 11 92 Select Port Send Data with Port 10 C None CR C LF LE CRO CRLF CSCR oe Send Data 7188E COM Status Send Nc Set Fw Ver m Receive fv3 0 02 1 1 30 2001 Clear MiniOs Version PESAGA Clos 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 81 Step 3 Send command 10 to the 8431 Send TCP 7188E S000E Diagnostics App v2 03 Config TCPAP Network Status 192 168 255 1 Gateway 192 168 0 1 _ Set Disconnect 8431 is connected Mask 255 255 0 0 Set MAC 00 80 33 32 1 1 92 m Select Port Send Data with Port10 C None CR C LF C LF CRO CRLF CSCR Modify IP Send Data 7188E COM Status Send uc Set Fw Ver Receive v3 0 02 1 1 30 2001 _Clear_ MiniOs Version fet 3 24200171171 Close Step 4 Select Port 3 and CR Then send 02M to read the 7000 module s ID which is connected to the 8431 s COM3 If you enable the 7000 module s checksum function select CS_CR The CS CR option will add two checksum bytes then adds CR Send TCP 7188E S000E Diagnostics App v2 03 Config TCPAP Send Command To 7188E ______ r Network Status 192 168 255 1 Gateway 192 16801 _Set_ Garnett Disconnect Meck fa5a5500 se
27. 192 168 255 1 9999 I O boards 7188E 8000E configuration 192 168 255 1 10000 COM1 of the 7188E 8000E 192 168 255 1 10001 COM2 of the 7188E 192 168 255 1 10002 COM3 of the 7188E 8000E 192 168 255 1 10003 COM4 of the 7188E 8000E 192 168 255 1 10004 COMS of the 7188E 192 168 255 1 10005 COM6 of the 7188E 192 168 255 1 10006 COM7 of the 7188E 192 168 255 1 10007 COM8 of the 7188E 192 168 255 1 10008 192 168 255 1 is the default IP address of the 7188E 8000E You can change the IP address to suit your requirements Contrary to the IP address the Ethernet port is fixed You must use the port number as defined above 4 2 2 Command set of the Xserver Example Example cma Explain instruction Format Sen dete TNA o1 Version V2 6 14 10 04 2001 Sets baudrate Doesn t store the setting to lt 06 Port 1 Baud gt ok EEPROM Sets data format doesn t store the setting to EEPROM lt 04 Client 2 gt 0414 141 First asking from client lt 07 Port 1 LineControll 3 0718N1 OK 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 55 reset status 14 after system reset 140 Not first asking from client 14 after system reset RTS _ 05 Port 1 Set 1 gt 0511 OK COM Port RTS on Sets baudrate storesithe e ori Bands 0619600 OK setting to EEPROM 5 o8 Sets data format Stores the setting to EEPROM Sets IP lt 08 IP 12 gt 08192168255001 Server Name lt 10 gt C
28. 31 exe to link 8431 Step 1 Make sure the firmware inside 8000E is Demo36 exe default shipping Xserver for 8431 8831 Step 2 Run 8000 843x883x TCP Xserver 843 1 Vb5 8431 exe in host PC r Server Connection r Server COM1 Hast IP Set IP Configuration Baud Rate Data cones oe TO E Parity J Server Information COM Port Settin inma vaf SERRE stop To Server Name M Send M 7 cP c server onnigupaish gt Gateway NN se PPO Mask QS set Sone con SAREE r Configuration Baud Rate aeoo Data im Send EcnoTet o i E Party Response COM Por Setting Stop B send Receive Data send a paa Sa E 7 0 E Po TRE Response Virtual 7000 Server COM4 Send pom t S V CR Configuration E Baud Rate ep0 Data E Parity COM Port Setting Stop i E lt 1 m CR m Clear Response Poo Response Step 3 Press Connect button The program will then readout relative information concerning the 8431 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 84 Server Connection Server COM1 Host IP aaeoa SetiP Configuration Baud Rate Data e H ari Server Information COM Port Settin B Firmware Ver Stop j m Server Name p send SIME 7 CR Server Configuration
29. 431 or 8831 Part of the program body int bSerialNumOk char cID 8 0x9 0x31 0xa4 0x39 0x3 0 0 0x5 void UserInit void char cSerialNumber 8 GetSerialNumber cSerialNumber if stremp cSerialNumber cID bSerialNumOk 1 Matching else bSerialNumOk 0 Unmatched 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 95 int UserCmd unsigned char Cmd unsigned char Response if bSerialNumOk strcpy Response ID ok else strcpy Response ID error return 1 return OK Demo37 SE only Reads SystemKey status Part of the explanation head 23 on 23 On 23 ON gt Turns on auto reply system key status 23o0n 230n 230N gt Turns on auto reply system key status 23 other gt Turns off This demo use command 23 to switch on off auto return system status PC send command 23 on at beginning When user press system key Xserver will auto reply which system key pressed Hardware 8000E Part of the program body char sMode 3 Switchs on off auto reply system key status TCPREADDATA t_Status Variable to record socket void UserLoopFun void VxComm exe will call this function in every scan time refer to demol1 for scan time evaluation if stremp sMode ON if IsSystemKey switch GetSystemKey 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 96 case SKEY_UP t_Status ReadUartChar UP
30. 8000E Series 8000E Series Software User s Manual 8000E Series New Features 1 Virtual COM Technology Your Powerful Tools 2 Ethernet I O Technology 3 Web server Technology Create New Ideas 4 MiniOS7 amp Xserver Inside 5 I O Expansion Bus Inside Create New Applications 6 Time to market amp Cost Effective Solution Warranty All products manufactured by ICP DAS are warranted against defective materials for a period of one year from the date of delivery to the original purchaser Warning ICP DAS assume no liability for damages consequent to 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 nor for any infringements of patents or other rights of third parties resulting from its use Copyright Copyright 2002 by ICP DAS All rights are reserved Trademark The names used for identification only may be registered trademarks of their respective companies 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 1 Table of Contents 1 INTRODUCTION iicisiisssessissscicesesisdistesk cddeceuesessoscasudesecastasoscectassnsecessessestasoocssssstussedessosacessovasssdcveussesvacdessessesssbasesosstacescases e 3 1 1 3 TYPICALSAPPEICA TIONS cccsscaceceaitaceek oak nnevomnicacs a a a e r E EE NET 4
31. Available Server Options x Remove Server Status Another example when adding the 8830 at IP address 192 168 119 102 xj 7188E 8000E Intemnet Ethemet I Check Duplical JV Check Serve IP Address 192 168 119 102 Add Server Pot COM Status VxComm Devices 7188E4 192 168 255 1 Potl 0 UnMap Available 8830 192 168 119 102 Port 1 UnMap Available Port 3 UnM ap Available gt Server Options x Remove Server OK Status 8830 v3 0 02 11 30 2001 connected 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 32 Step 6 Select an appropriate COM port number and then click the OK button CT x Select COM Cancel Note Assign following COM number sequentially option Assigns the following ports with the available COM port number sequentially and automatically Step 7 Select one of the 7188E 8000E devices and then click the Server Options button to configure the options g xComm Utility v2 03 ed 7188E 8000E Intemet Ethemet I Check Duplical V Check Serve IP Address 192 168 255 1 Add Server Pot COM Status Port 1 0 COM10 Available Port 1 COM11 Available Port 2 COM12 Available Port 3 COM13 Available Port 4 COM14 Available VxComm Devices 7188E4 192 168 255 1 gt XM Remove Server t atus 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 33 Another exam
32. E Client4 This demo uses command 23 to switch on off auto return system status Reads Sytsemkey PC sends command 23 on at status beginning When user press system key Xserver will auto reply which system key pressed Client4 Only LED of DO and DIO parallel modules can be set by function ShowLED8 amp ShowLED16 Client4 And the module must have total 16 channels D LED of emong nels Or apg Controls L1 L2 and L3 of 8000 units Client4 8E only units Demo38 Shows LED of 8000 8E only modules D I from 8000 Demo40 Uses DI_16 to D I from parallel DI modules 16 DI channels Demo41 D from 8000 Uses DI_8 to D I from parallel DI or DIO Client4 8E only modules 8 DI modules 8 DI channels on 8000 slots Client4 8E only modules 16 channels on 8000 slots 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 66 Demo42 D O to 8000 Uses DO_16 to D O to parallel DO 8E only modules 16 DO modules 16 DO channels on 8000 Client4 channels slots D O to 8000 modules 8 DO channels Uses DO_8 to D O to parallel DO modules 16 DO channels on 8000 Client4 slots Demo43 8E only D O to 8000 modules 8 DO channels Uses COM3 to D 45 lient4 a control 87k modules alieni Uses Modbus TCP pee protocol to access 8E onl Peay 8000 modules Demo44 8E only Uses DIO_DO_8 to D O to parallel DIO Client4 modules 8 DO channels on
33. M ports I O expansion boards a 7 Seg LED or other relevant products The advantages of the Xserver l 2 We design maintain update the Xserver for all users Xserver can be easily modified through the use of general development tools such as TC BC MSC All relative libraries are coded in C language High running speed The original Xserver Demo4 exe can run about 750 scan loops per second version 2 6 14 Most program code of the Xserver is finished Ethernet Internet communication and program loop control are all finished in VxComm lib 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 6 oe N 9 This vastly reduces user s developing time To modify Xserver users need only to modify the 6 functions The command protocol is designed to fit most of the 8000E s requirements Users can develop and extend their private command protocol very easily It supports multi clients The Xserver can handle a maximum of 30 N connections simultaneously with N being the number of the 8000E s COM ports Auto wake up option The Xserver will check on packet timeouts If the software crashes the Xserver will wake itself up automatically 10 The Xserver demos TC BC MSC and Client demos VB VC are included 1 1 3 Web server application With the help of Wserver Web server users are able to use standard browsers such as IE or Netscape to access the I Os of the 8000 modules or devices connected to any
34. M1 2 Print nR f r 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 13 Hot key of 7188x exe Command Description Fl Shows help messages of 7188x exe Alt_1 Uses PC s COM1 Alt_2 Uses PC s COM2 Alt_C Switchs to command mode to change PC COM port s baudrate and data format Press ENTER to confirm the setting Press LEFT RIGHT arrow key to select different field Press Any key to switch different values Press ENTER in the last field will stop this operation Alt_D Sets the date of RTC to the PC s date Alt_T Sets the time of RTC to the PC s time Alt_E For downloading files into memory Only after the message Press ALT_E to download file is shown on screen can users press Alt_E Alt_L Switchs normal line mode In line mode all characters pressed will not send to COM until ENTER is pressed It is designed for testing the 7000 series Alt_X Quits 7188X EXE F2 Sets the file name for download without download operation Alt_F2 Sets multiple filenames for download 10 files maximum If set less then 10 files add to end Ctrl_F2 Shows COM1 amp COM2 messages for easily COM port testing Press ALT_X to return to the original mode Press TAB to switch the cursor between these two windows F5 Runs the program specified by F2 and arguments set by F6 F6 Sets the arguments of the execution file set by F2 10 argum
35. OM Pot3 COM COM Porte _ COMA COM5 COM6 COM8 Port 1 0 O board 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 26 3 2 Installing the VxComm Driver Step 1 Run VxComm2K exe for Windows 2000 Windows XP or VxCommNT exe WindowsNT 4 0 in the packaged CD to start installing Step 2 Choose a destination folder g3 vxComm Setup VxComm vI1 05 00 for Windows 2000 Setup will install YxComm in the following folder To install to this folder click Next To install to a different folder click Browse and select another folder You can choose notto install VxComm by clicking Cancel to exit Setup m Destination Folder C Program Files 7188E YxComm Browse eck C Cerca Step 3 Choose a program folder Select Program Folder x Setup will add program icons to the Program Folder listed below You may type a new folder name or select one from the existing Folders list Click Nextto continue Program Folders Existing Folders Accessories Administrative Tools DAQPro FactorySoft OPC GlobalSCAPE InstallShield 5 5 Professional Edition Lantronix Redirector Microsoft Press MSDE hdl Cancel 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 27 Step 4 Select the Yes option and click the Finish button to reboot your computer Setup Complete Setup has finished copying files
36. S A BED Diag lt String lt 80 gt L1Hello lt 07 Port 1 LineControll 3 0718N1 Sets Gatewa Status Digital Input lt 17 Addr_Hex 4 gt i F8 Digital Output _ lt 18 Addr_Hex 4 Data_Hex 2 gt 1803f855 Bypass User 9 Defined lt 19 Command gt 19 User defined User defined Command Enable OK Enable 5 DititLED 5 DigitLED ich arama cal show information GetsMac_k2I gt 00 80 30 9 9F 02 Version ig ee lt 23 String gt 23 User definded User defined VcomUserCmd Sets feedback 240 OK Note 1 The number inside of instruction format is parameter size byte Note 2 Don t insert any space between parameters except user defined command Note 3 All command except user defined command responses will add a termanial char CR 0x0d Note 4 Refer to vxcomm htm to get more information about Xserver command protocol and parameter setting in 8000 843x883x Tcp Vxcomm Doc N N N 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 56 4 2 3 Options of command line Options Explanations Nate o i Recognizes 7188E1 2 Recognizes 7188E2 3 Recognizes 7188E3 After version 3 0 0 4 Recognizes 7188E4 After version 3 0 0 5 Recognizes 7188E5 After version 3 0 0 8 Recognizes 7188E8 After version 3 0 0 IX Recognizes 7188EX After version 3 0 0 A Recognizes 7188EA After version 3 0 0 Multi echo mode MO Echoes data from the 7188E 8000E s COM p
37. Winsock error b Receive data from Xserver CheckString timeout 2 Checks received data a Full comparison b Part comparison 3 Automatic reconnect ability GetString main functions 1 Catches below errors a Winsock error b Receive data from Xserver timeout 2 Automatic reconnect ability 3 Large text box can show 1600 bytes on one page GetString Common client programs are located at 8000 843x883x TCP Xserver Client Note gt You can install all 8000E special clients 8430 8431 etc by executing 8000 843x883x TCP Xserver Setup Setup exe gt You can install all common clients Client1 Client2 Client4 Client5 characters All demos All demos CheckValue CheckString GetString etc by executing 8000 843x883x TCP Xserver Client Setup Setup exe gt Please refer to 8000 843x883x TCP Xserver Xserver htm and Function htm for more information of demo programs 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 4 5 Programming of Xserver To develop the Xserver you must have the 9 files listed below Item Files Location Head file 8000 h TCPIP h Vxcomm h 8000 843x883x TCP Xserver Demo BC Lib Library 8000L Lib TCPIPL Lib XS8_NNNN Lib User s file User c VModbus c V7000 c 8000 843x883x TCP Xserver Demo BC Demo4 Note The NNNN of XS8_NNNN Lib is the lib file s version 4 5 1 Original Xserver All user c files are devided into t
38. Xserver continually Please refer to 8000 843x883x Document Readme htm and gt 8000 843x883x TCP Vxcomm Doc Big5lEnglGb23 12 Vxcomm htm for new version information 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 72 4 5 2 Default shipping Xserver for 8431 8831 The default shipping Xsever for 8431 8831 is Demo36 exe With the help of the Demo36 exe you can read the 8000E Unit s Name and modules s ID plugged in the Unit Plese refer to sec 4 6 3 for how to use client program to test the default shipping Xserver Part of the explanation head 190 gt Read the module s ID plugged in slot 0 191 gt Read the module s ID plugged in slot 1 197 gt Read the module s ID plugged in slot 7 19N gt Read the Unit s ID with N gt 7 This demo is the default shipping program for 8431 8831 Users can use this demo to find out which modules are plugged in 8000E Hardware 8000E Part of the program body int UserCmd unsigned char Cmd unsigned char Response int iTotalSlotNum int iTotalComNum int iSlot if Cmd 0 Not null command sscanf Cmd d amp iSlot 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 73 switch iSlot case 0 case 1 case 2 case 3 case 4 case 5 case 6 case 7 if NameOfModule iSlot Oxff if ModuleType iSlot amp 0x80 0 sprintf Response Slot d Find 870 02d n r iSlot NameOfModule iSl
39. anf RUNPROG Uses Ungetch to send commands to MiniOS7 to run another program DEMO90 98 Demos for using TIMER functions Location 8000 Common MiniOS7 Demo Some typical TCP IP demo programs are given as follows Typical TCP IP demo 8000E PC Ping demo Client ping exe None Telnet server demo Server telserv exe Client telnet exe Telnet server demo2 Server telserv2 exe Client telnet exe Demol1 TCP IP demo Server demol exe Client Clientl exe Demo2 TCP IP demo Server demo2 exe Client Clientl exe Demo3 TCP IP demo Server demo3 exe Client Clientl exe Location 8000 843x883x TCP Other Refer to Sec 4 7 for more TCP IP demo program designed for Xserver Refer to 8000 843x883x document TCPIPLib pdf 8000 common minios7 doc index htm and 8000 843x883x document WebLib pdf for more information Refer to sec 4 5 for how to compile and link 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 23 3 VxComm Applications Overview Installing the VxComm Driver Adding a 7188E 8000E server and configuring the VxComm Driver Removing a 7188E 8000E server Uninstalling the VxComm Driver Diagnostics and Trouble Shooting FAQ 3 1 Overview The VxComm Virtual Comm Driver and VxComm Utility are very easy to install and use The first thing to do is to find the installation file in the included CD The directory is gt 8000 843x883x TCP VxComm NT
40. d error or control messages to other gateways or hosts to know what wrong with the network communication Ping Ping sends an ICMP echo request message to a host expecting an ICMP echo reply to be returned Normally if you cannot Ping a host you won t be able to Telnet or FTP to the host Conversely if you cannot Telnet or FTP to a host Ping is often the starting point to determine what the problem is Packet The unit of data sent across a physical network It is consisted of a series of bits containing data and control information including source and destination node host address formatted for transmission from one node to another Socket Each TCP segment contains the source and destination port number to identify the sending and receiving application These two values along with the source and destination IP address in the IP header uniquely identify each connection The combination of an IP address and a port number is called a socket 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 102 16 17 Clients and Servers The client server paradigm uses the direction of initiation to categarize whether a program is a client or server In general an application program that initiates peer to peer communication is called a client End users usually invoke client programs when they use network services Most client program consists of conventional application program develop tools Each time a clie
41. e Server Port I 0000 Disconnect Send fi 0 r With CR 01 Firmware version 10 Module name Clear EXIT Status Connection to 192 168 255 1 successful Receive y3 0 02 11730 2001 I Step 2 Send 161 162 and 163 to readout COM port setting ig Client side host name DNS IP 192 168 168 16 ECHO Client Server IP 192 168 255 1 Server Port I 0000 Disconnect Send fi 64 r With CR 2 11 30 2001 1 I 3 0 8431 9600 8 N 11 9600 8 N 11 9600 8 N 11 Clear Status Connection to 192 168 255 1 successful Receive Step 3 Disconnect and then reconnect at port 10003 Step 4 Select With CR and then send 02M to read 7000 module s ID which is connected to 8431 s COM3 4 6 2 Using SendTCP to link 8431 Step 1 Run SendTCP in host PC Send TCP D 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 80 Send TCP 7188E 8000E Diagnostics App v2 03 Config TCP IP Send Command To 7188E _ p Network Status 192 168 255 Gateway Eo Clear Result vee Cet mac NC Select Fort Send Data with zj Nome CR CLEC LF CRO CRLFC CSCR Modify IP Send Data 7188E COM Status Send Nc Set p Fw Ver Receive Nc Send Command To 7188E l Network Status Gateway 192 16801 _Set_ Send _ Clear Result_ Mask 255 255
42. e 7188E 8000E the Internet TCP IP layer may respond with a Disconnect event to the VxComm Driver if it sends the message failure in 20 seconds or later Users can set a shorter Connection Broken timeout for example 10000 ms 10 seconds to force the VxComm Driver to build the connection again and get a quicker response If there is no sending receiving signal in the connection during the Connection Broken time the connection will be marked as broken The VxComm Driver will build the connection again in Connection Broken time Thus the Keep Alive Time should be shorter than the Connection Broken time to make the connection come on line The default System Timeout STxxx value of the 7188E 8000E is about 300 seconds After client programs connect to the 7188E 8000E the clients must send commands to keep the 7188E 8000E alive before timeout is up otherwise the 7188E 8000E will reset itself and clients must build the connection again You can disable the Keep Alive Time and the Connection Broken mechanisms by setting their value to 0 Step 10 Press the OK button to save the settings and exit the VxComm Utility 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 35 3 4 Removing a 7188E 8000E server Step 1 Select the VxComm Utility lm Programs Fn Accessories Fn Development Kits gt A Documents gt 3 Microsoft visual Studio 6 0 gt F InstallShield PackageForTheweb 2 Eh Settings
43. e user s design cost An easy use interface is designed for user s special applications Standard design and maintaince for all engineers using this protocol he features of the Xserver are given as follows The Xserver is an embedded firmware designed for the 8000E series in the default shipping 8KE10 exe for 8430 8830 Demo36 exe for 8431 8831 Supports Virtual COM applications Supports Ethernet I O applications Supports I O expansion bus Supports 8430 8431 8830 8831 and etc TCP IP protocol amp command protocol is open amp expandable Provides easy use interface for user s special programs VVVVVV VS VVVVV With the help of Xserver a software engineer can design a robust Xserver in one day We will provide about 50 100 typical real world applications for user s reference From these demos a software engineer can start easily with a cost friendly time to market Refer to Sec 4 3 for more information 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 54 4 2 Command Protocol of Xserver 4 2 1 IP and port configuration Before developing Ethernet I O applications for your PC you must first know the IP address and the Ethernet port number The 7188E 8000E and all COM ports of the 7188E 8000E use the same IP address but different Ethernet port number They are listed below Function IP address Port number Modbus TCP 192 168 255 1 502 Virtual 7000
44. ents maximum If set less than 10 arguments add to end F8 F8 F9 F5 F9 Downloads the file specified by F2 into FLASH memory Alt_F9 Downloads all files specified by ALT_F2 into FLASH memory F10 Downloads the file specified by F2 into SRAM and execute it F12 For 7521 7522 7523 to test RS 232 more More 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 14 1 4 2 7188XW EXE Utility for Host PC 7188xw exe is the Win32 version of 7188x exe The difference beteween 7188x exe and 7188xw exe is 7188x exe Uses standard COM ports COM1 COM2 7188xw exe Supports RS 232 COM ports using USB and PCMCIA interfaces Command line options of 7188xw exe Option Description c Uses PC s COM b Sets baudrate of PC s COM port default is 115200 s Sets screen s display rows default is 25 max is 50 Hot key of 7188xw exe Command Description Fl Shows help messages of 7188xw exe Alt_Fl Shows the Chinese Big5 help messages of 7188xw exe Ctrl_Fl Shows the Chinese GB2312 help messages of 7188xw exe Alt_1 Uses PC s COM1 Alt_2 Uses PC s COM2 Alt_3 Uses PC s COM3 Alt_4 Uses PC s COM4 Alt_5 Uses PC s COM5 Alt_6 Uses PC s COM6 Alt_7 Uses PC s COM7 Alt_8 Uses PC s COM8 Alt_9 Uses PC s COM9 Alt_A Switches between normal mode and ANSI Escape code support mode Alt_C Switches to command mode S
45. f located in 8000 843x883x Document 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 3 1 1 3 typical applications S000E series controllers have 3 typical applications Virtual COM Ethernet I O and web server implementation These applications use different firmware and program styles Users can choose any of the 3 applications they prefer Using the Virtual COM application one PC can control 256 COM ports including real COM ports The VxComm firmware will turn your 7188E into a RS 232 to Ethernet Internet converter Using the Ethernet I O and Web Server applications users can program the firmware of the 8000E Xserver Web server Ethernet _Application _ k ecm Rs 232 Virtual COM TCP IP TCP UDP Application d Ethernet I O Program i I B RS Web server IE Netscape y RS 232 RS 485 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 Device Vxcomm l l Xserver l l Web server Lo OO 1 1 1 Virtual COM application Ethernet 10M 8000ECIP 1 is mapped to COM3 of PC 1 Back Plane mm Seale F s000 50 7 8000 53 8000E COM IP 1 meree COM1 COM3 of the 8000E IP 1 are mapped to COM4 COM5 of 7000 01 7000 FF Back Plane cram
46. for more operating details gt SendTCP uses TCP protocol to communicate with the 7188E 8000E and devices which are connected to the 7188E 8000E s COM ports Config TCPAP _ _ Send Command To 7188E _ Network Status Gateway NC Set Connect Dissorinect Send Clear Result moo NC Set a Mask mac INC m Select Port l m Send Data with v C None CR C LFC LF CRO CRLFO CS_CR Modify IP Send Data 7188E COM Status Send oo O O nc Set Fw Ver Receive uc _Chear_ MiniOs Version Please refer to sec 4 6 for more operating details 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 18 gt 7188e Command prompt mode program used to send data to specific machines using TCP protocol Usage 7188e S IP P Port gt Connect to a device by using TCP protocol Q gt Quit program and disconect C Program Files 7188E PCDiag gt 7188e s 192 168 41 8 p 16668 Connect to 192 168 41 8 16666 Commands i v3 01 11 06 2081 1 18 8431 hea C Program Files 7188E PCDiag gt 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 19 2 MiniOS7 of the 8000 Series 2 1 MiniOS7 for the 8000 Series The MiniOS7 is an embedded O S designed for the following families 7188XA 7188XB 7188XC series 7521 7522 7523 series
47. he Xserver trims 19 and passes the other data not including 19 to be the first parameter Cmd of function UserCmd User can define his own command protocol in UserCmd For example define lt 19 Read Write 1 address 4 value 2 gt to replace command 17 and 18 then one can send 19RO3f8 to read values form address 03f8 sends 19W03f85a to write 5a to address 03f8 Users can decide whether or not any other characters are needed between parameters Any command protocol format will be accepted because it is user defined At the end of UserCmd copy the results to the second parameter Response 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 62 Then the XServer will send the string to the Client program by port 10000 See Demo4 gt VcomUserBinaryCmd TCPREADDATA p Xserver executes this function when client program sends command 23 to port 1000 of the Xserver This function is similar to UserCmd When the client program sends command 23 VcomUserCmd will receive TCPREADDATA type information The TCPREADDATA is declared as below Type define t_TcpReadData Int Comport int Socket int Length char ReadUartChar TCPREADDATA p gt ReadUartChar the buffer where command data is stored include 23 p gt Length the command data length include 23 p Socket the Xserver assigns a socket number to index when client sends command 23 to the 7188E So the socket nu
48. iables initialized for UserLoopFun I O or variables initialized for User s functions in this file refer to demo9 amp demol1 for example code cnt 0 AddUserTimerFunction UserCount 1000 call UserCnt every 1000 ms int UserCmd unsigned char Cmd unsigned char Response user s command interpreter refer to all demo int i if Cmd 0 Not Null command switch Cmd 0 case c 19c 19C gt clear count case C cnt 0 break case r 19r 19R gt read count case R break default return 0 Command Error sprintf c_cnt d cnt strcpy Response c_cnt return count value return 1 return OK return 0 return ERROR 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 Demol12 Scan time evaluation Part of the explanation head 19c 19C gt clear count value 19r 19R gt read count value UserLoopFun will increase count value every scan loop PC can read how many scan loops after clear count value So user can use this demo to test the Xserver s performance Hardware 8000E Part of the program body unsigned long cnt void UserInit void cnt 0 void UserLoopFun void cnt int UserCmd unsigned char Cmd unsigned char Response if Cmd 0 Not Null command 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 91 switch Cmd 0 case c 19c 19C gt
49. ime GetDate SetDate refer to demo9 for example code void UserInit void user s initial function timer initialized for UserCount VO or variables initialized for UserLoopFun I O or variables initialized for User s functions in this file refer to demo9 amp demol1 for example code void UserLoopFun void VxComm exe will call this function every scan time refer to demol1 for scan time evaluation 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 71 int UserCmd unsigned char Cmd unsigned char Response user s command interpreter refer to all demo if Cmd 0 Not Null command strcpy Response Cmd echo user s command back return 1 return OK return 0 return ERROR int VcomUserBinaryCmd TCPREADDATA p VXCOMM EXE 2 6 12 09 04 2001 or later will support this function TCP PORT 10000 command 23 will call this function user can get the following message p gt ReadUartChar the buffer store the command data include 23 p gt Length the command data length include the two byte 23 p gt Socket the socket number that receives the command that is when the user function wants to return a message to the client just use the socket to send data use VcomSendSocket p gt Socket pdata datalength return 1 any value will be accept Note gt We will enhance the
50. m lib TCPREADDATA p v7000 c 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 61 It is very difficult to develop an enbedded controller program with Ethernet Internet communication But by using the Xserver users can do that quickly and easily Users need only modify 7 functions in User c vVModbus and v7000 c Users build their own code in the 7 functions to make the Xserver work as they desire The features of the 7 functions are listed below gt UserlInit void Xserver executes this function once as soon as the 7188E 8000E is turned on Therefore all variables of initial values or initial status must be set in this function gt UserLoopFun void Xserver executes this function every scan loop One Xserver scan loop completes in a short time so real time work should be executed by this function See Demol12 gt UserCount void This function will be triggered when the time interval set in AddUserTimerFunction is up For best result call AddUserTimerFunction in UserInit to let the Xserver call the UserCount period Longest time interval is 65 535 seconds 2 16 1 ms See Demo9 gt UserCmd Cmd Response Xserver executes this function when client program sends the command 19 to port 10000 of the Xserver This command is defined in UserCmd function by users When the Xserver receives packets from port 10000 the Xserver checks the data If the data begins with 19 t
51. mber can used to return messages to a specific client To send message to specific client call VcomSendSocket int skt char data int cnt The first parameter should be the socket number See Demo23 gt VcomCmdModbus TCPREADDATA p Xserver executes this function when client program sends commands to port 502 of the Xserver This function is used to implement Modbus TCP protocol to access devices See Demo46 gt VcomCmd7000 TCPREADDATA p Xserver executes this function when client program sends commands to port 999 of the Xserver This function is used to implement 7000 series compatiable commands to access expansion boards See 8000 843x883x TCP Xserver v7000 Note Please rafer to 8000 843x883x Document ModbusTCP pdf for more information about how to use ModbusTCP to communicate our 8000 series hardware 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 63 4 3 Demo program list of Xserver After developing the Xserver Users must download the program into the 7188E 8000E and execute one client program to test if all functions run properly lient Demo4 ous Echoes command Original Client1 string X Server Demo eEhoes spacial Xserver wil echo a 88_Series or Clienti string to clients 8000_Series to clients You can use Print or printCom1 to send a Debug string to PC monitor by U inttom1 t 7188E 8000E s COM1 Demo7 pie ee a 7 Clienti debug programs If you want to use
52. n 2 0 0 3 SendT cp version 1 13 4 7188e Package version 1 0 1 21 Nov 2001 fF Accessories gt Programs Fn Development Kits gt A Documents gt Microsoft Visual Studio 6 0 k 9 InstallShield PackageForTheWweb 2 Eh Settings E 3 AlAPI Network gt a Search gt Fn DAQPro gt fey 7188e Hiin PCDiag gt A Configure Wizard 2 Help gt l Send232 Run E SendTCP help sendtce T Uninstall PC Diag Cy Shut Down Asa NAEU EAs 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 12 1 4 Software Utilities 1 4 1 7188X EXE Utility for Host PC The utility program 7188X EXE can be used as follows Downloads user s programs from host PC into 7188 7188X 7188E and 8000 families Shows debug string to monitor of host PC Three standard output libraries Putch Print amp Puts will allow main control unit to send output string to monitor of Host PC Monitor of host PC 7188X 7188E 8000 RS 232 Test 123 Main 115200 N81 Print nTest 123 Host PC COM1 2 Run 7188X EXE Keys in test data from keyboard of host PC Three standard input libraries Getch Scanf amp LineInput will allow main control unit to read keyboard from Host PC Monitor of host PC 7188X 7188E 8000 RS 232 R 3 14159 Mane ooo 115200 N81 Host PC Run 7188X EXE 3 14159 Keyboard of host PC Scanf n f amp r CO
53. nd Auto send sting Interval 500 Set Interval 500 Set Send Send Stop Receive Send Exit Program Exit Program Step 7 Type Virtual COM in right hand window and press Send Data will be sent from PC s COM4 through Path2 to 7188E 8000E s COM1 and immediately returned through Path to PC s COM1 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 43 Send232 2 0 1 COM1 Eix Send232 Y 2 0 1 COM4 Bee COM status Send string with COM status Send string with c DMI z fa600 z None C LF_CR fc DM4 z fasoo z None C LF_CR C CR C CR_LF CCR CR_LF Line control N 81 e Line control N 8 1 Open Close Open Close Auto send COMI Auto send Interval 500 Set Interval 500 Send Receive COM1 a l gi Clear Clear Exit Program Exit Program Example 3 Internal Devices Testing Step 1 Plug several 8000 modules or 87k modules into a 8000E Step 2 Build a connection as follows Real COM 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 44 Step 3 Click the menu item COM Port to choose the COM port number baudrate and checksum For example COM3 115200 19200 9600 and No Checksum These settings depend on the 8000 series module s settings IK Com Port earch Run Terminal Help eals eE Module Addr Baudrate Alam Checksum gt l Searching S
54. nt 1Value Store 16 bits decimal input value unsigned int iBit Store input value Used to read every bit status int 1 if Cmd 0 1 I Cmd 0 T Not Null command sscanf Cmd 1 d amp iSlot iValue DI_16 Slot iBit i Value for i 0 1 lt iTotalChannel i if iBit amp 1 0 sResult i 1 else sResult i 0 iBit gt gt 1 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 98 sResult iTotalChannel 0 string with zero end sprintf Response u DIO gt DI d s iValue iTotalChannel 1 sResult return 1 return OK return 0 return ERROR Demo43 8E only D O to 8000 modules 8 channels Part of the explanation head 190 1 OF gt D O to slot 1 OF is Hex value means DOO DO3 are on 190 1 OF 1901 OF 1901 OF Uses DO_8 to D O to parallel DO modules 16 DO channels on 8000 slots Hardware 8000E parallel DO modules 8 DO channels Part of the program body int UserCmd unsigned char Cmd unsigned char Response user s command interpreter refer to all demo unsigned int iValue Output value int iSlot if Cmd 0 o II Cmd 0 0 Not Null command sscanf Cmd 1 d x amp iSlot amp iValue DO_8 Slot i Value sprintf Response Output ok return 1 return OK return 0 return ERROR 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 99 5 Glossary 1 Ethernet
55. nt program executes it contacts a server sends a request and awaits a response When the response arrives the client program continues processing Client programs are often easier to develop than servers and usually require no special system privileges to operate By comparison a server is any program that awits for incoming requests from a client program The server receives a client s request performs the necessary computation and returns the result to the client Firmware Alterable programs in semipermanent storage e g ROM EEPROM or Flash memory 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 103
56. o 6 0 gt 9 InstallShield PackageForThe Web 2 Eh Settings 3 AlAPI Network a Search gt fF DAQPro gt ES 7188e J PCDiag 2 Help fa nm gt TRF Uninstall xComm Run 2 xComm Help g xComm Utility Cy Shut Down SendTcp g nu Haoe PAstart Step 2 Click the Yes button Confirm File Deletion E X Are you sure you want to completely remove xComm for Windows 2000 and all of its components Step 3 Click the OK button E unlnstallShield will remove the software VxComm for Windows 2000 from your computer Please wait while each of the following components is removed Shared program files Standard program files Folder items Program folders Program directories bA a a Gk eS Program registry entries Uninstall successfully completed EA SendTcp Help 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 38 3 6 Diagnostics and Trouble Shooting 3 6 1 Diagnostics After configuring the VxComm Driver by using the VxComm Utility the VxComm Driver should work without error However users can use a simple test to make sure it s working properly Note The test method depends on the user s devices and client programs E Example 1 Loop Back Testing Step 1 Make sure the VxComm Server is working in m0 mode Please refer to sec 4 2 3 Options of command line Ziautoenec notepad TST File Edit Forma
57. or routers ARP Address Resolution Protocol Consider two machines A and B that share a physical network Each has an assigned IP address IP and IPg and a MAC address MAC and MACs The goal is to devise low level software that hides MAC addresses and allows higher level programs to work only with IP addresses Ultimately however communication must be carried out by physical networks using whatever MAC address scheme the hardware supplies Suppose machine A wants to send a packet to machine B across a physical network to which they both are attached but A has only B s Internet address IPg The question arises how does A map that address to B s MAC address MAC ARP provides a dynamic mapping from 32 bit IP address to the corresponding 48 bit MAC address We use the term dynamic since it happens automatically and is normally not a concern of either the 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 101 11 12 13 14 15 application user or the system administrator RARP Reverse Address Resolution Protocol RARP provides a dynamic mapping from 48 bit MAC address to the corresponding 32 bit IP address 32 bit IP address ARP RARP 48 bit MAC address ICMP Internet Control Messages Protocol No system works correctly all the time The ICMP provides communication between the Internet Protocol software on one machine and the Internet Protocol software on another It allows gateways to sen
58. orts to every client which is connected to the 7188E 8000E Single echo mode M1 Echoes data from the 7188E 8000E s COM ports to the After version 2 6 12 specific client which requested the service Timeout of building a socket connection If timeout is up Vxcomm exe Xservder gives up building a socket connection Wxxx Xxx timeout Time unit sec Default 0 xxx 0 disable option W System timeout between two packets from network to STXxx 7188E 8000E If timeout is up Vxcomm exe Xserver reboots system itself 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 57 XXX timeout Time unit sec Default 0 xxx 0 disable option ST Timeout between the 7188E 8000E sending command to COM ports completed and beginning receiving data from the COM ports If timeout is up Vxcomm exe Xserver TXXx gives up receiving data Time unit ms Default 100 ms xxx 0 disable option T Acts in M1 Single echo mode MO0 Multi echo mode Condition 1 One client sends a request to Xserver to access devices The Xserver echoes data from devices to every client which is connected to the 7188E 8000E 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 58 Condition 2 No clients send a request to Xserver to access devices The Xserver echoes data from devices to every client which are connected to the 7188E 8000E M1 Single echo mode Condition 1 One client
59. ot else sprintf Response Slot d Find 80 02d n r iSlot NameOfModule iSlot else sprintf Response Slot d No Find n r iSlot return 1 default iTotalSlotNum GetNumberOfSlot 1TotalComNum GetComportNumber if iTotalComNum 3 sprintf Response Main Unit gt I 8 d30 iTotalSlotNum else sprintf Response Main Unit gt I 8 d31 iTotalSlotNum return 1 of switch 4 of if return 0 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 74 4 5 3 Setting of compiler BC 3 1 To develop programs for 7188 7188X 7188E 8000 series you can use the compilers below 1 BC 3 1 5 02 2 MSC 3 MSVC before version 1 52 4 TC2 01 5 TC 1 01 From Borland s web site you can download the free TC 2 01 and TC 1 01 compilers Web site http community borland com museum How to use BC 3 1 s IDE to compile projects Please follow the steps below Step 1 Create a new project Add item Delete item Local options Include files N Test PRJ lt L iles ain 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 Project TEST eee Step 2 Add all necessary files into the project meee Options pen project lose project Local options Include files Project TEST Step 3 Set Code generation options C options Advanced C options ptimizations Ae ource lessages
60. p F i s000 S0 7 a000 53 8000E COM1 Meter 1 IP n p COM3 7000 01 7000 FF To use the Virtual COM application first install the VxComm Driver After installation the VxComm Utility can map any 8000E remote COM port These virtualized COM ports can be used by the PC to control devices directly just as you would use COM real COM port to control devices When using the Virtual COM application one PC can use a maximum of 256 COM ports Users need not worry about network connections The VxComm Driver will handle all Ethernet Internet connections The advantages of VxComm 1 Users can upgrade their systems to the Ethernet Internet with increased ease as program code needs no modification 2 The internal firmware of 8000E supports multiple clients One 8000E can handle a maximum of 30 N socket connections simultaneously with N being the number of the 8000E s COM ports For example If one PC uses two virtual COM ports connect to COM ports of one 8430 The 8430 allows a maximun of 14 PC connections 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 5 1 1 2 Ethernet I O application TCP UDP Application Program Ethernet 10M Port i Port i 1 Port i 3 Port j 1 Port j 3 The Xserver is a powerful program designed for Ethernet I O appllications It supplies the 8000E with a range of flexible options Users can modify the Xserver to control all of the 8000E s hardware CO
61. ple of virtualizing the 8830s COM1 to become PC s COM20 g xComm Utility v2 03 nd 7188E 8000E Intemnet Ethemet I Check Duplical IV Check Serve IP Address 192 168 119 102 Add Server Pot COM Status VxComm Devices 7188E4 192 168 255 1 Pot l7O UnMap Available 8830 192 168 119 102 Port 1 UnMap Available Part 3 UnMap Available El Server Options x Remove Server OK Status 8830 v3 0 02 11 30 2001 connected Step 8 Key in the value and then click the OK button to exit x Server 7188E4 192 168 255 1 Keep Alive Time ms 7000 Recommend 7168E s System Timeout 1 3 Cancel Recommend Less then 20 seconds or equal to 7188E s System Timeout Connection Broken ms 20000 Note 1 Keep Alive Time ms field After connecting to the 7188E 8000E the VxComm Driver will automatically and periodically sends commands to keep the 7188E 8000E alive The timer will be reset after each sending command or receiving data success The Keep Alive mechanism won t work until the next timeout 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 34 The default setting of Keep Alive time is about 7000 ms It s recommended setting is 7188E 8000E s System Timeout 1 3 or a smaller value Connection Broken ms field The VxComm Driver will try to build a new connection when the connection is broken When clients send a message to th
62. puter Management program Step 3 Click the menu item View Show hidden devices 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 50 Step 4 Select the item Non Plug and Play Drivers Ynsernet oOo Computer Management action view gt m S Tree H E Network adapters R E EEEE Be v Non Plug and Play Drivers a L Seentok 9 lt gt AFD Networking Support Environment H Event Viewer a7 a a B System Information S Debug Message c amp Performance Logs and Ale lt Diskperf lt gt dmboot he gt dimload gt DsPeiCfg oo gt Serial2 i ene Disk Management Q Siwvid SiwvidStart S TCP IP Protocol Driver gt Unknown device ee Disk Defragmenter Logical Drives 6 Removable Storage Services and Applications Step 5 Right click the mouse button on the Ynsernet item and select the Properties menu item a gt Unknown device Disable Uninstall Other device 3f Ports COM 8 E tas z EEN i Sound video can tor naraware cnanges storage ou Properties H System device gt Universal Serial Bus controllers 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 51 Step 6 Check if it shows the message This device is working properly If the driver does not work properly please remove it and then re install and configure it again Ynsernet Properties
63. s 36 3 5 UNINSTALLING THE VXCOMM DRIVER 0s0sseeesesesssesesecesesevevesesssesesesesesesesesesesesesesesececeeeseseseseseceseceseseseseseseseeeeens 38 3 6 DIAGNOSTICS AND TROUBLE SHOOTING 0 c c0ssecvesevsvevevsvsecvevsvcvevevsvuedessevtveveesvversessvievsevvtereessvseeveesevessessssvovsevevesens 39 3 7 PAO Fevers te ces dete seus a tees a dee db csbec Han a sbas eaten Desde ties Hew a a ea a tes ackdeae tubes Sokbot es busta Mectees Ea 53 4 ETHERNET VO APPEICA TIONS scsccssccccsccssssssssscssscossecsoosesssecesosnososbescsocesccecsectsssseceeoseesscesdecsescesescassosssddesosessoobesedaesees 54 4 1 OPERATION PRINCIPLE OF THE XSERVER cccsssesesesesesesevevevevevevecevevececevevevevesevevesevesevesesesesesesesesecesesesesesereseseseseseeens 54 4 2 COMMAND PROTOCOL OF XSERVER sssssssssesssesesevesesesevesevececevececeseceseceeesesesesesesesesecesecesesesesececesecesececeseseceseseseeeeeeens 55 4 3 DEMO PROGRAM LIST OF XSERVER ssssssssssesesesevevesevesevssecevevevesesesesececeseseveseseseseseseseseseseseeesecesesecesececeseseseseseseseeesens 64 4 4 CLIENT PROGRAM LIST FOR XSERVER csssseseseseseseseseseceseceveceveseceseseseseceseseseceeeceseseseseseseseseceseseseseceseseseceseeeseseeeeesens 68 4 5 PROGRAMMING OF XSERVER esnin tee en E Esne rea ET EEEO EE NSE EEE eO EEEO EEE nO EE EEE EE eE EEO EEE EEE E r 70 4 6 USING CLIENT PROGRA M S a a a e a a a e aa a S EE 79 4 7 DEMO PROGRAMS OF XSERVER ssssssseeseseessese
64. s programs LOADR Downloads a file into SRAM RUNR param 1 Runs a program saved into SRAM downloaded by command param2 LOADR I INP I W INPW port Reads data from the hardware PORT O OUTP OW OUTP Outputs to hardware PORT W port value More More Refer to 8000 Common MiniOS7 DOC index htm for user s manual amp demo programs for the MiniOS7 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 There are some of the libraries included with the 8000E as follows 8000L LIB CPU amp I O related library Large model TCPIPL LIB TCP IP related library Large model XS8_NNNN LIB Xserver related library Large model with NNNN being the version of lib Some of the libraries supported by 8000L LIB are given as follows Function Example description COM port InstallCom1 InstallCom2 InstallCom4 IsComl IsCom IsCom4 ToCom1 ToCom ToCom4 ReadComl1 ReadCom2 ReadCom4 EEPROM WriteEEP ReadEEP EnableEEP ProtectEEP NVRAM amp ReadNVRAM WriteNVRAM GetTime SetTime GetDate RTC SetDate LED amp LedOn LedOff LedToggle InitsDgitLed Show5DigitLed 5DigitLed Show5DigitLedWithDot Flash Memory FlashReadId FlashErase FlashRead FlashWrite Timer amp TimerOpen TimerClose TimerReset Value TimerReadValue Watchdog StopWatchReset StopWatchRead StopWatchStop Timer InstallUserTimer EnableWDT DisableWDT
65. seceveveveveveveveceveseveseseseceseeeseseseseseeesesesereseseceseceseseseseseseseceseseseseseeeeeeeeees 88 5 GLOSSARY seissiccseisvisseasesssvensocsensessssecsesecteseosestcesdestesssincicccesssiesensectesesdesseonssesieeasosseseasesseseodsvdalesdeveasesbeseadsvasceosesdeeeoseste 100 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 2 1 Introduction One 8000E series controller comes equipped with one RJ 45 connector one I O expansion bus and several serial COM ports The 8000E is an embedded controller which with aid of c language can help you develop your own programs Included with the 8000E are many demos and libraries The 8000E can be used to access devices via Ethernet Internet or RS 232 485 422 In addition each 8000E controller has one I O expansion bus Our expansion boards can be mounted quickly and easily to implement various I O functions such as D I D O A D D A Timer Counter Flash memory and battery backuped SRAM lt gt sone TEE TR 8000 50 8000 53 gt P Dem Bhemet 10M Rhemet 10M ME 1p 4 RS 232 485 Devices Firmware Vxcomm Xserver Web server Back Plane 7000 01 7000 FF Hub Back Plane Router A 8000E 8000 50 8000 53 Ethemet 10M UOM RS 232 485 aM i 7000 01 7000 FF Note Please refer to below documents for more information about hardware and how to getting start quickly gt 8000Ehh pdf gt 8430_Quick_Start pdf gt 8431_Quick_Start pd
66. sends a request to Xserver to access devices The Xserver echoes data from devices to the client which requested the service Condition 2 No clients send any request to Xserver to access devices The Xserver doesn t echo data from devices to any client v a Txxx Request Response 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 60 4 2 4 Flow chart of Xserver Reset 7188E 8000E AA Xse Initialize rver v Userlnit void Yes Y v Scan COM ports amp Send packet from TCP ports Y Update 5 DigitLED y Refresh hardware Watchdog Receive packe Timeout No UserLoopFun void Timer Trigger Y UserCount void Cmd Without 19 Yy y l v 10000 N 10000 9999 502 y y Bypass packet to Switch case COM port N command y y v Other 23 19 v Execute command p Response v UserCmd Cmd Response y VcomUserBinaryCmd TCPREADDATA p Yes v Send packet from TCP p ort 10000 User c Y VcomCmdModbus TCPREADDATA p vModbus c y VcomCmd7000 VxCom
67. t B431 is connected 2 Mac 008033321192 LF C LF_CRO CRLEC CS_CR Modify IP saaat 7188E COM Status 9600 8 N 1 Set Fw Ver 3 0 0201 1 30 2001 MiniOs Version 13242001A 1 1 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 82 If you want to change the 7188E 8000E s COM ports settings click Set to change them The 7188E 8000E s COM port that you want to configure is specified by Select Port combo list Port 3 means you want to configure the 7188E 8000E s COM3 Send TCP 7188E 8000E Diagnostics App v2 02 15 x Config TCP IP Send Command To 7188E Network Status 192 168 255 1 jio Gateway 192 168 0 1 set Connect Disconnect Send ClearResult SOE set 9431 is connected 7188E COM Port Setting x Select Port 1 nd Data Port 3 x None Baud 115200 DataBit E x 24 30 32 4d StopBit f x m Receive Clear 1027021 MiniOs Version pi 303237 30 3231 i 3242001113 Close Please refer to SendTCP s help document for more information H OrCAD Release 9 ANAFI Network P Teq n Hypersnap DX A Configure Wizard D q E SendICP help a Y v v v EtA cy Uninstall PC Diag 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 83 4 6 3 Using 84
68. t Help 8KELO ST300 m Real COM 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 39 Step 3 Virtualize 7188E 8000E s COM1 to become PC s COM4 by using the VxComm Utility xi 7188E78000E Internet Ethernet M Check Duplical V Check Serve Add Server Available Available Available IP Address fi 92 168 119 102 xComm Devices 8830 192 168 119 102 Port 120 COM3 Part 1 COM4 Port 3 COMS5 2 Server Options x Remove Server Status 8830 v3 0 02 11 30 2001 connected Step 4 Run the 7188xw exe from the Start Run menu Run Z Type the name of a program Folder document or ang Internet resource and Windows will open it For you Open 7188xw Cancel Browse 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 40 Step 5 Press the lt Alt gt lt 4 gt keys to use PC s COM4 It will show Change to use COM4 message after changed X ICPDAS 7188x Win32 version 1 06 7188x for WIN32 version 1 66 67 11 2661 gt By ICPDAS Tsai Kun Ting 1 Current set Use COM1 115266 N 8 1 AutoRun Current work directory D Change to use COM4 Step 6 Type some characters in the 7188xw exe window The characters will be sent from PC s COM4 to 7188E 8000E s COM 1 through Pathl and immediately returned from the 7188E 8000E s COMI to the PC s COM4 through Path2
69. t of the explanation head 19 gt Any non null command will be accepted You can use Print or printCom1 to send Debug string to PC monitor by 8000E s COM1 printCom1 is the defualt function of Xserver If you want use Print you must use DisableCom and RestoreCom disable printCOM1 Hardware 8000E 8000E Series Software User s Manual 2002 v1 0 8MS O001 10 88 Part of the program body int UserCmd unsigned char Cmd unsigned char Response user s command interpreter refer to all demo if Cmd 0 Not Null command printCom1 s n r Cmd Send debug string to PC monitor by 8000E s COM1 strcpy Response Cmd return 1 return OK return 0 return ERROR Demo9 Timer trigger demo Part of the explanation head 19c 19C gt clear count value 19r 19R gt read count value UserCount will be executed every second Count value will be increased in UserCount PC can read count value to know number of seconds after count value is cleared Hardware 8000E Part of the program body unsigned int cnt char c_cnt 20 void UserCount void user s timer trigger function refer to demo9 for example code printCom1 n rUserCount d cnt cnt 4 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 89 void UserInit void user s initial function timer initialized for UserCount 1 O or var
70. tatus COM Port COM 1 Address Qifdecl tThexl Baud Rate 775200 Step 4 Click the J search icon 7000 Utility File COM Port Search Run Terminal Help Step 5 If the VxComm Driver works well 7000 Utility can search the module s plugged in the 8000E iix Fie COMPort Search Run Terminal Help The I 7000 8000 Modules Found a ells _ r 2 Module Addr Baudrate Alam Checksum _ Description B4307 101 115200 Disable 8430 Module 8051 S0 115200 Disable 16 DI 8056 S1 115200 Disable 16 DO Example 4 External Devices Testing Connect 7000 series modules to 7188E 8000E s COM1 Use VxComm Driver to virtualize the 7188E 8000E s COM1 to become PC s COM10 Thus we can use the 7000 Utility to search the 7000 series module through COM 10 Note Users must first install the 7000 Utility by runing CD ROM Drive Napdos 7000 7000Util setup exe 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 46 Step 1 Run the 7000 Utility iF Develop amp 7188 C NuMega SoftICE Driver Suite gt Documents ES DAQPro gt i 7000 Utility gt A Administrative Tools r M 1 oe OG Settings b Search Help Run RI Shut Down Start AERREUEBUFRMBAA Step 2 Build connection as follows Real COM 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 7000 Utility amp 7000 Utility Help Uninstall 7000 Utility Step 3 Click
71. terconnect two networks and pass packets form one to the other are called Internet Gateways or Internet Routers Gateways route packets are based on destination network not on destination host 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 100 7 IP Internet Protocol address Every interface on an Internet must have a unique IP address also called an Internet address These addresses are 32 bit numbers They are normally written as four decimal numbes one for each byte of the address such as 192 168 41 1 This is called dotted decimal notation 8 MAC Media Access Control address To allow a computer to determine which packets are meant for it each computer attached to an Ethernet is assigned a 48 bit interger known as its MAC address also called an Ethernet address hardware address or physical address They are normally written as eight hexadecimal numbers such as 00 71 88 af 12 3e 0f 01 Ethernet hardware manufacturers purchase blocks of MAC addresses and assign them in sequence as they manufacture Ethernet interface hardware Thus no two hardware interfaces have the same MAC address 9 Subnet Mask 10 Subnet mask is often simply called mask Given its own IP address and its subnet mask a host can determine if a TCP IP packet is destined for a host that is 1 on its own subnet 2 on a different network If 1 the packet will be delivered directly else will be delivered by gateways
72. then shown on the PC s minitor ICPDAS 7188x Win32 version 1 06 7188x for WIN32 version 1 66 867 11 2661 gt By ICPDAS Tsai Kun Ting Use COM1 11520 N 8 1 Current work directory D see Change to use COM4 dfdsafdsfdfdfdsfsdfsdfsdfsdfsdfdsfdsfdsfdsfdsfa_ E Example 2 Close Loop Testing Step 1 Make sure the VxComm Server is working in m0 mode Please refer to sec 4 2 3 Options of command line lolx File Edit Format Help 8KELO ST300 m 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 41 Step 2 Build connection as follows Real COM Path 1 Step 3 Run Send232 and then open PC s COM 1 a J Clear 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 42 Step 4 Virtualize 7188E 8000E s COM1 to become PC s COM4 by using the VxComm Utility Step 5 Run another Send232 and open PC s virtual COM4 Step 6 Type COM1 in left hand window and press Seng Data will be sent from PC s COM1 through Path to 7188E 8000E s COM1 and immediately returned through Path2 to PC s COM4 Send232 v 2 0 1 C Pei zix COM status COM status None LFAER C CR C CR_LF LF fcoma z a600 z Line control Net Send string with com z a600 z None C LF_CR C CR C CRLF Line control N 8 1 CLF z Open Close Open Close E string with rAuto se
73. upports commands b sets new baudrate of PC s COM ports c Uses PC s COM n e o sets parity to none even odd 5 6 7 8 sets data bits to 5 6 7 8 p sets PC s working directory q quits command mode 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 15 Alt_D Sets the date of RTC to the PC s date Alt_T Sets the time of RTC to the PC s time Alt_E For downloading files into memory Only after the message Press ALT_E to download file is shown on screen can users press Alt_E Alt_H Switchs Hex ASCII display mode Alt_L Switches normal line mode In line mode all characters pressed will not send to COM until the ENTER is pressed It is designed for testing the 7000 series Alt_X Quits 7188X EXE F2 Sets the file name for download without download operation Alt_F2 F5 Runs the program specified by F2 and arguments set by F6 Alt_F5 Runs the program stored in SRAM F6 Sets the arguments of the execution file set by F2 10 arguments maximum If set less than 10 arguments add to end Ctrl_F6 Clears screen F8 F8 F9 F5 F9 Downloads the file specified by F2 into FLASH memory Alt_F9 Downloads all files specified by ALT_F2 into FLASH memory F10 Downloads the file specified by F2 into SRAM and execute it Alt F10 Downloads the file specified by F2 into SRAM memory Ctrl B Sends a BREAK signal to the PC
74. wo parts One is the explanation head the other one is the program body Explanation head DEMO4 send receive command to Xserver Compiler BC 3 1 TC 3 0 TC 1 01 TC 2 0 Compile mode large Content of the Project user c CORFE SY YY YY project file v7000 c vModbus c after XS8_ 3002 LIB 8000L Lib LIB TCPIPL Lib ALIB XS8_NNNN Lib with NNNN being the lib file s version Client programs use this command protocol to communicate with the This demo is the original user c Xserver 19 gt Any non null command will be accepted User can modify their own Xserver from this file Some addition hardware Explanation of this demo Hea DUUE devices will listed here program Refer 8000 843x883x TCP Doc Big5lEnglGb2312 Vxcomm htm 8000 843x883x TCP Xserver Xserver htm 8000 843x883x TCP Xserver Function htm to get more information Last modified date 30 Nov 2001 by TCK 8000E Series Software User s Manual 2002 v1 0 8MS 001 10 70 Program body include lt string h gt include lib 8000 h include lib vxcomm h void UserCount void user s timer trigger function In this function users cannot use any function that will use the hardware signal clock Such as 1 ClockHigh ClockLow ClockHighLow 2 Any EEPROM functions 3 Any 5DigitLed functions 4 Any NVRAM function 5 Any RTC function GetTime SetT

Download Pdf Manuals

image

Related Search

Related Contents

Zanussi ZDT 6041 Instruction Booklet  La lutte contre les Grands projets inutiles imposés  150200164400MAS R01 for All sku-P1  Sharkoon FireGlider Optical  Russound DPA-6.12 Stereo Amplifier User Manual  CQ Serise-P21  Betriebsanleitung Kehrmaschine SWE-SD 140 CD KU  Morphy Richards 300604 iron  Embout auditif Technique de laboratoire Protection acoustique  

Copyright © All rights reserved.
Failed to retrieve file