Weidmuller IE-CS-2TX-1RS232/485 User Manual page 79

Industrial serial to ethernet converter
Hide thumbs Also See for IE-CS-2TX-1RS232/485:
Table of Contents

Advertisement

IE-CS(T)-2TX-xRS232/485
Under classical mode, the driver will not notify the user's program that Tx is completed until all Tx data
has been sent out from the IE-CS(T)-2TX-xRS232/485; this mode will cause lower throughput. If you want
to ensure that all data is sent out before further processing, classical mode is recommended.
Enable/Disable Tx/Rx FIFO. If disabled, the IE-CS(T)-2TX-xRS232/485 will send one byte each time
the Tx FIFO becomes empty; and an Rx interrupt will be generated for each incoming byte. This will result
in a faster response and lower throughput. If you want to use XON/XOFF flow control, we recommend
setting FIFO to Disable.
Fast Flush (only flush local buffer)
For some applications, the user's program will use the Win32 "PurgeComm()" function before it reads
or writes data. With our design, after the program uses this Purge Comm() function, the
IE-CS(T)-2TX-xRS232/485 driver will keep querying the IE-CS(T)-2TX-xRS232/485's firmware several
times to make sure there is really no data queued in the IE-CS(T)-2TX-xRS232/485 firmware buffer,
rather than just flushing the local buffer. This kind of design is used because of some special
considerations. However, it might take more time (on the order of several hundred milliseconds) than
a native COM1, because it needs to work via Ethernet. That's why the native COM ports on the
motherboard can work fast with this function call, but the IE-CS(T)-2TX-xRS232/485 requires much
more time. In order to accommodate other applications that require a faster response time, the new
IE-CS(T)-2TX-xRS232/485 driver implements a new "Fast Flush" option. Note that by default, this
function is disabled.
To begin with, make sure there are some "PurgeComm()" functions being used in your application
program. In this kind of situation, you might find that your IE-CS(T)-2TX-xRS232/485 exhibits a much
poorer operation performance than when using the native COM1 port. Once you have enabled the "Fast
Flush" function, you can check to see if there has been an improvement in performance.
By default, the optional "Fast Flush" function is disabled. If you would like to enable this function, from
the "S/E-Converter Administrator," double click the COM ports that are mapped to the
IE-CS(T)-2TX-xRS232/485, and then select the "Fast Flush" checkbox. You should find that when "Fast
Flush" is enabled, the IE-CS(T)-2TX-xRS232/485 driver will work faster with "PurgeComm()."
7. The Serial Parameter settings shown here are the default settings when the IE-CS(T)-2TX-xRS232/485 is
powered on. However, the program can redefine the serial parameters to different values after the program
6-16
IP Serial LIB

Advertisement

Table of Contents
loading

Table of Contents