Moxa Technologies CP-132U Series user manual Solution

Page 72

and receiving), since it is automatically managed with the board’s built-in intelligent hardware mechanism. This means that RS-485 programming using ADDC™ mode is just as simple and straightforward as RS-232 or RS-422 programming.

How to transmit and receive data for Windows 95/98NT/2000/XP/2003

In order to acquire precise timing control for RS-485 2-wire transmission, we recommend that you configure your CP-132UL Series ports as described below.

There are 2 solutions to control RS-485 2-wire transmission.

Solution 1

The following method is commonly used for RS-485 2-wire transmission:

sio_SetWriteTimeouts(port, 0); /* Set sio_write() into block mode if for Windows

 

NT and Windows 95/98 */

sio_RTS(port, 1);

/* Turn on RTS signal. The RS-485 port is ready for

 

transmitting data. */

sio_write(port, buff, 10);

/* Write 10 byte characters in "buff". The function

 

blocks until the last character is transmitted */

sio_RTS(port, 0);

/* Turn off RTS signal. The RS-485 port is ready for

 

receiving data. */

sio_read(port, buff, 10);

/* Read 10 bytes */

Solution 2

The PComm or API-232 library includes a dedicated RS-485 function that integrates the functions described in solution 1 above into one function:

sio_putb_x(port, buff, tick );

/* 1.

Turn on RTS and ready for transmitting data.

 

2.

Send data.

 

3.

Wait for tick time.

 

4. Turn off RTS and ready for receiving data. */

For more information on these functions, refer to the PComm library’s on-line Help file for Windows 95/98/NT/2000/XP/2003.

4-6 CP-132U Series User’s Manual

Image 72
Contents CP-132U Series User’s Manual Copyright Notice TrademarksDisclaimer Moxa Internet Services Table of Contents Introduction Industio-The Industrial Multiport Async Solution OverviewAddc Automatic Data Direction Control for RS-485 Termination Resistors Ready for RS-422/485Introduction PCI Solution Universal PCIOperating System Support Moxa Serial Comm ToolsFeatures Package ChecklistHardware Installation CP-132UL Series Block Diagram CP-132UL-I V2 120 x 64.5 mm CP-132U-I V1 120 x 100 mm CP-132UL V2 120 x 64.5 mm CP-132UL V1 120 x 64.5 mm DIP Switch Port Settings Installing the CP-132UL Series Board Software Installation WindowsCPCI Boards CT-114I Installing the Driver Software Installation CP-132U Series User’s Manual Software Installation How to Check the Installation Using Device ManagerPort Configuration CP-132U Series User’s Manual Using PComm Using Event Log Windows 2000/XPSelect Install from a list or specific Windows Windows XPSoftware\Win2K-XP-2003 folder on Software Installation Next Welcome to the Found New Software from a specific locationSelect Specify a location and then click Next to continue 16 CP-132U Series User’s Manual Software Installation Device Manager Port Configuration 20 CP-132U Series User’s Manual Moxa PComm Utility Event LogRemoving the Driver Click OK to proceed with the un-installation of the board Windows 95/98 Installing the Driver First Time Driver Installation InstallationSee the section, Board and Ports Ready Windows Click Other Locations Type \Software\Win9x\Windows Software Installation Board and Port Ready WindowsConfiguring the Board and Ports Software Installation Updating the Driver Software Installation Removing the Driver Windows NT 36 CP-132U Series User’s Manual Software Installation 38 CP-132U Series User’s Manual Software Installation Configuring the Board and Ports Re-Configuring Port SettingsSoftware Installation Configuring Another CP-168U Board Removing an Existing CP-168U Board Configuration 44 CP-132U Series User’s Manual DOS 46 CP-132U Series User’s Manual Setting up the Driver Run the BIN\SETUP.EXE filePort number Loading the Driver TxD buffer sizeRxD buffer size F5 Group EditLinux Unloading the DriverSoftware Installation Page PComm Installation Serial Programming ToolsDiagnostic for Moxa boards only PComm Programming LibraryUtilities CP-132U Series User’s Manual Terminal Emulator Start#Program#Pcomm Lite#Terminal EmulatorRS-485 Programming Addc Automatic Data Direction ControlSolution Connection Cables Cable Wiring RS-422/485 Pinouts and Cable Wiring RS-422 InterfaceRS-485 Interface Connection Cables and Cables Wiring PinoutsRS-422/485 pinouts for CP-132UL Series CBL-M25M9x2Wire RS-485 pinouts for CP-132UL Wire RS-485 pinouts for CP-132UL SeriesRS-422 pinouts for CP-132UL Series Cable Wiring RS-422 Point-to-point RS-422 BroadcastingMultidrop 4-wire RS-485 full-duplex Impedance Matching and Termination Resistors Page Troubleshooting General TroubleshootingSoftware Causes and Solutions Technical Reference COM number of the CP-132U Series conflicts with othersWindows NT system panic blue screen System fails to find the CP-132U Series board Specifications Technical ReferencePCI Return Procedure Revision History