background image

 

4-5 

Programming Problems 

 

Why do the Win32 COMM API functions return fail, or the PComm Pro 

library functions return the fail code “SIO_WIN32 FAIL”? 

The fail code for the COMM API functions implies something different than 

the fail code received from the standard COM driver. For example, you get 

the fail code when the network connected to the device server is unreachable, 

or the device server is offline. If the network connection is through the 

Internet, the network could be unreachable if Internet traffic is jammed. This 

does not mean you have a defective device server. To recover from this type 

of error, you can modify your program so that the port is automatically 

closed and then re-opened. 

 

You should also check the following to make sure that the problem is only 

with the TCP/IP network: 

1. 

If the device server is off-line, turn it on and plug it into the network. 

You may test if the route to NPort Server Lite is reachable by typing 

 

Ping [NPort-Server-Lite-IP-address]

 

 

If a route to the device server cannot be established, check your host’s 

routing table and the device server's routing table. 

 

To solve this problem, programs should: 

1. 

Try to re-open the port if the fail code is returned during the open (i.e., 

sio_open) session. 

2. 

If the fail code returns while writing data, reading data, changing settings, 

etc., you should close the file handler, and then try to reopen the port. 

 

Summary of Contents for NPort Server Lite DE-302

Page 1: ...er Lite Server Lite Server Lite Server Lite Hardware Installation Guide for DE 301 331 DE 302 304 332 334 Second Edition Dec 2002 Moxa Technologies Co Ltd Tel 866 2 8919 1230 Fax 886 2 8919 1231 www m...

Page 2: ...document is subject to change without notice and does not represent a commitment on the part of Moxa Moxa provides this document as is without warranty of any kind either expressed or implied includi...

Page 3: ...ucts Moxa Internet Services has been set up to provide technical support driver updates product information and user s manual updates The following services are provided E mail for technical support a...

Page 4: ...ews 1 4 2 Connecting the Hardware 2 1 Choosing a Location 2 1 Desktop 2 1 Wall or Cabinet 2 2 DIN Rail 2 3 Network Connection 2 5 Power Connection 2 6 Serial Connection 2 6 3 Using the Built In LCD Pa...

Page 5: ...on on the other allowing any device that supports the asynchronous communications protocol to attach to a network NPort Server Lite works like an add on multiport serial board to the Windows host but...

Page 6: ...eal tty drivers Automatic network connection recovery Suitable for both desktop and DIN Rail installation Product Specifications Hardware Processor 16 bit CPU I O controller DE 301 331 DE 302 332 DE 3...

Page 7: ...KV for Ethernet Regulatory Approvals FCC CE UL CUL T V Note If you need a product with optical isolation MOXA Transio A53 a smart RS 232 to RS 422 485 bi directional converter can be used with NPort...

Page 8: ...efore retrieving an IP address from the DHCP BOOTP server NPort will display DHCP BOOTP fail every 1 second 6 Input buttons for LCD display panel configuration 7 Reset button press continuously for a...

Page 9: ...available NPort Server Lite can be placed on a desktop fixed to a wall or inside a cabinet or fixed to a 35 mm DIN Rail Desktop One option is to place NPort Server Lite on a clean flat well ventilate...

Page 10: ...inside of a cabinet Using three screws per bracket first attach the brackets to the bottom of the server Fig 2 1a Next use two screws per bracket to attach the server to a wall or cabinet Fig 2 1b Fi...

Page 11: ...ment Figure 2 2b DIN Rail Mounting Brackets Outer Placement Since the screw heads are beveled and the holes in the plate are countersunk the tops of the screws will be flush with the metal plates This...

Page 12: ...2 4 Figure 2 3a Din Rail Mounting Brackets Inner Placement Figure 2 3b Din Rail Mounting Brackets Outer Placement...

Page 13: ...This releases the bottom of the DIN Rail from the DIN Rail mount Network Connection There are two ways to use the 10 100BaseT Ethernet jack located on NPort Server Lite s rear panel 1 For many of the...

Page 14: ...is receiving power The LCD panel should look similar to the figure shown in Chapter 1 Serial Connection The model of NPort Server Lite that you purchased has either one models DE 301 331 two models DE...

Page 15: ...will see a display similar to N P 6 1 4 0 5 S N 6 1 4 0 5 1 9 2 1 6 8 1 2 7 2 5 4 This is where NP61405 is the server s name 61405 is the server s serial number 192 168 127 254 is the server s IP addr...

Page 16: ...7 2 5 4 H M A I N M E N U S E R V E R S E T T I N G In addition you only need to remember to Use the SEL button to move up one level i e left to right on the tree graph Use the MENU button to move do...

Page 17: ...3 3 that you can t change it Figure 3 1 Tree Graph Displaying LCD Menu Options...

Page 18: ...ly a small number of options from which to choose although only one option will be visible at a time Consider the PARITY attribute under PORT SETTING as an example Follow the tree graph to arrive at t...

Page 19: ...e the same host PC is unable to access the NPort Server Lite device server When a host PC is used to install an NPort Server Lite device server in Single Host mode two things happen 1 NPort Server Lit...

Page 20: ...nctions by setting up a password Consequently if you need to change some configuration settings but you do not know the password you will have to ask the administrator for help If you are the administ...

Page 21: ...might have changed and as a result your host s IP address is no longer on the device server s Access Control List To solve this problem 1 Determine your NPort Server Lite s current IP address You can...

Page 22: ...to reconnect with the device server If the problem is still not fixed contact Moxa technical support for further information After rebooting my Windows host why does one of my NPort Server Lite device...

Page 23: ...his type of error you can modify your program so that the port is automatically closed and then re opened You should also check the following to make sure that the problem is only with the TCP IP netw...

Page 24: ......

Page 25: ...A 1 A A A A A A A A A Cable Pinouts...

Page 26: ...A 2...

Page 27: ...e Model Numbers DE 301 DE 302 DE 304 DE 331 DE 332 DE 334 conforms to the following standards EMC EN55022 1994 class A EN61000 3 2 1995 class A EN61000 3 3 1995 EN55082 1 1997 EN61000 4 2 1995 Contact...

Page 28: ......

Page 29: ...485 by RTS 3 Operation Mode Host Based Mode TCP Server TCP Client UDP Server Client Pair Connection DE 301 331 4 Serial Number ___________ 5 NPort Lite Firmware Version ________________ 6 NPort Lite...

Page 30: ......

Page 31: ...n History Revision History Document Edition Revision Date Revision Details 2nd December 1 2002 1 Moxa FTP site changed to Moxa website Moxa Internet Services page 2 Added a note about retrieving an IP...

Page 32: ......

Page 33: ...om the sales representative or dealer Fill out the Problem Report Form PRF Include as much detail as possible for a shorter product repair time Carefully pack the product in an anti static package and...

Reviews: