Moxa Technologies RS-485 Programming, Automatic Data Direction Control Mode Recommended

Page 60

RS-485 Programming

If you intend to do RS-485 communication with Industio CI-134 Series, please follow the RS-485 programming guide below and also refer to the chapter, “Connection Cable and Cable Wir ing”, for more RS-485 operation details.

The Industio CI-134 Series supports only 2-wir e half-duplex RS-485 communication. Data+/- pins are served for both data transmitting and receiving,

depending on the mode selected: either Automatic Data Direction Control or By RTS mode.

Automatic Data Direction Control Mode (Recommended)

Automatic Data Dir ection Contr ol scheme is the best solutions for RS-485 applications. The mode switch for the port should be set to ON position, to be able to use Automatic Data Direction Control Mode.

Under this mode, no extra code is required to control the data transferring (data transmitting and receiving), which is automatically managed with the intelligent hardware mechanism. That is, RS-485 pr ogr amming in this mode is just as simple as RS-232/RS-422 pr ogr amming.

By RTS Mode (For back-compatibility)

If the mode switch for the port is set to OFF position, By RTS Mode is used. The port is ready for transmitting data if RTS signal is asser ted and ready for receiving data if RTS signal is not asser ted.

RTS scheme is a traditional way and suitable for most system, including Windows NT, Windows 95/98 and DOS, or even UNIX, that permits RTS control from application programs. This mode should be compatible with most of the already- made RS-485 applications.

How to transmit and receive data for Windows NT, 95/98 & DOS

We recommend you to configure Industio CI-134 Series ports as follows in order to acquire precise timing control in RS-485 2-wire transmission.

4-10Industio CI-134 Series User’s Manual

Image 60
Contents Industio CI-134 Series User’s Manual Mar 1st EditionIndustio CI-134 Series User’s Manual Copyright NoticeTrademarks DisclaimerMoxa Internet Services Hardware Installation Software InstallationConnection Cable and Cable Wiring TroubleshootingTable of Contents Connection Cable and Cable Wiring TroubleshootingTechnical Reference Industio The Industrial Multiport Async Solution IntroductionOverview Automatic Data Direction Control for RS-485 Termination Resistors Ready for RS-422/RS-485Surge/Isolation Protection Asic Design, Compact SizeQuick Installation IntroductionOperating System Support Moxa Serial Comm ToolsFeatures Broad ApplicationsCheck List SCO Xenix QNXInstallation Guide Hardware Installation First Thing to Do Interface SettingsQuick Hardware Installation 0x1C0How to Do Quick Hardware Installation Hardware Installation with IO-IRQ Utility IO-IRQ Utility and Hardware Configuration 6Industio CI-134 Series User’s Manual Port Index AddressSpeed Nor mal Speed Spectr um High Speed Spectr um Press F10 to save the configuration and exit the utility 10Industio CI-134 Series User’s Manual Software Installation Windows NTInstalling Driver Software Installation 4Industio CI-134 Series User’s Manual Port Number Rx Fifo TriggerTx Fifo Size 6Industio CI-134 Series User’s Manual Configuring Board and Port 8Industio CI-134 Series User’s Manual Updating Driver Removing DriverWindows 95/98 Software Installation 12Industio CI-134 Series User’s Manual Rx Fifo Trigger 14Industio CI-134 Series User’s Manual Updating Driver 16Industio CI-134 Series User’s Manual DOS Driver Setup Software Installation 20Industio CI-134 Series User’s Manual Por t number TxD buf size RxD buf size F5 Gr oup edit 22Industio CI-134 Series User’s Manual Loading Driver Unloading DriverWindows Software Installation Configuring Driver Baud Rate Settings 28Industio CI-134 Series User’s Manual PComm Installation Serial Programming ToolsWindows NT and Windows 95/98 Diagnostic for Moxa boards only PComm Programming LibraryUtilities Industio CI-134 Series User’s Manual Terminal Emulator Installing API-232 DOS API-232 LibraryData Scope 6Industio CI-134 Series User’s Manual Serial Programming Tools Diagnose Windows Comm API Library Win16 UtilityExisting Applications Automatic Data Direction Control Mode Recommended By RTS Mode For back-compatibilityRS-485 Programming Solution 12Industio CI-134 Series User’s Manual Connection Cable and Cable Wiring RS-422 Cable WiringCI-134 RS-422 Point-to-point RS-422 Broadcasting RS-485 Cable Wiring Impedance Matching and Termination Resistors DB-37 Connector Pin Outs For RS-422 ModeFor RS-485 Mode 6Industio CI-134 Series User’s Manual Troubleshooting General TroubleshootingHardware causes and solutions Software Causes and Solutions Io-ir q Remove the jumper on position JP1 Windows NT system panic blue scr een DOS Specifications Technical ReferenceUart TI550C PC I/O Port Address Map IO/ Addr ess DeviceProblem Report Form Return Procedure