Omega A2400 manual RS-485 Multidrop System, Data+

Page 20

Communication 3-4

RS-485 Multidrop System

Figure 3.1 illustrates the wiring required for multiple-module RS-485 system. Notice that every module has a direct connection to the A2400. Any number of modules may be unplugged without affecting the remaining modules. Each module must be setup with a unique address and the addresses can be in any order. All RS-485 modules must be setup for no echo to avoid bus conflicts (see Setup). Also note that the connector pins on each module are labelled with notations (B), (R), (G), and (Y). This designates the colors used on standard 4-wire telephone cable:

Label

Color

(B) GND

Black

(R) V+

Red

(G) DATA-

Green

(Y) DATA+

Yellow

This color convention is used to simplify installation. If standard 4-wire telephone cable is used, it is only necessary to match the labeled pins with the wire color to guarantee correct installation.

To minimize unwanted reflections on the transmission line, the bus should be arranged as a line going from one module to the next, starting with the A2400. ‘Tree’ or random structures of the transmission line should be avoided. For wire runs greater than 500 feet total, the end of the bus should be terminated with a 220Ω resistor connected between DATA+ and DATA-

. The A2400 has a resistor built in to terminate the start of the bus.

When using a bi-directional RS-485 system, there are unavoidable periods of time when all stations on the line are in receive mode. During this time, the communications lines are left floating and are very susceptible to noise. To prevent the generation of random characters, the lines are biased in a MARK condition as shown in Figure 2.1. The 1K resistors are used to keep the DATA+ line more positive than the DATA- line when none of the RS-485 transmitters are on. When enabled, the low impedance of an RS-485 driver easily overcomes the load presented by the resistors.

Special care must be taken with very long busses (greater than 1000 feet) to ensure error-free operation. Long busses must be terminated as de- scribed above. The use of twisted cable for the DATA+ and DATA- lines will greatly enhance signal fidelity. Use parity and checksums along with the ‘#’ form of all commands to detect transmission errors. In situations where many modules are used on a long line, voltage drops in the power leads

Image 20
Contents User’sGuide Servicing Europe Servicing North AmericaFor immediate technical or application assistance Revised 4/17/95 Omega Engineering ONE Omega DriveBOX STAMFORD, CT Phone 1-800-DAS-IEEETable of Contents Chapter Getting Started IntroductionSystem Overview Leased Lines$1RD +99999.99Default Mode Page Block Diagram Chapter Functional DescriptionFunctional Description Pinout Character Filter RS-485 TerminationA2400 Operation Page Programmable Delay Times Page Command $1RD Response *+99999.99 Chapter CommunicationsDO, OC, CC, RD, REA, RID, RLP, RS, RSP, RSU Communication RS-485 Multidrop System DATA+Page Chapter A2400 Command Set Command StructureData Structure Write ProtectionMiscellaneous Protocol Notes Response StructureCommand Checksum Long Form Responses$1WEF ?1 Syntax Error?1 BAD Checksum A2400 User Commands A2400 Command Set RT3Command Descriptions Command 01CC Response Response *01CC11 Digital Output doCommand $1DO01 Response Command #1DO01 Response *1DO014F Closed Channel CC ExtendedCommand $1DO00 Response Command #1DO00 Response *1DO004E Extended Address EA1ID Tank Farm 1CD $1ID Tank Farm#1ID Tank Farm Read Data RD Command 01OC Response Response *01OCEDOpen Channel OC Extended $1RID Tank Farm#1RID 1RID Tank Farm 11F$1RSU #1RSU$1RSP #1RSPResponse *+00100.00 Read Time Delay 1 RT1Response *1RT1+00100.00DC Read Time Delay 2 RT2 Page Page Short Prompt SP Command 01WE Response *01WE27 Error MessagesAddress Error BAD ChecksumCommand Error Parity ErrorSyntax Error Value Error$1SUbyte 1byte 2byte 3byte Chapter Setup Information/SetUp CommandCommand Syntax Byte Byte 1 Ascii Printable Characters HEX AsciiParity Baud RateCommand $1RS Response *31020102 Command $1WE Command $1RS Response *31070000Command $1WE Response Command $1SU31020000 Command $1RR Response BitByte 2 Linefeed, Parity and Baud Rate BaudNormal addressing Chapter Delay Time Programming Delay Time Programming Page Command $1T3+00050.00 Set T3 to 50 ms Response Command $1RT1 Response *+00100.00Chapter Power Supply Symptom RS-485 Module is not responding to commands Chapter TroubleshootingSymptom RS-232 Module is not responding to commands Chapter Extended Addressing Command 01WE ResponseOpen/Close Channel Commands Typical system overview Command 01OC Response Command $1RD Response +00100.00 Typical $2RD +00123.45Command 01CC Response Command 02OC ResponseStructured Addressing Extended Address SyntaxOC and CC Command Formats Implied CC CommandImplied OC Command Command ResponseExplicit Open and Close Channel Commands Command Response *01OC1D Single Command Module AddressCommand 01$1RD Response *+00100.00 Command 01CC Response 01CC11 ‘11’ is the checksum Command 02OC Response 02OC1E ‘1E’ is the checksumChapter Transparent Mode Transparent Mode FunctionsA2400 interfacing a PLC to a leased-line modem A2400 networking several RS-232 devices to a host computer A2400 interfacing a laboratory instrument with modules Transparent Mode Adding secondary control using A2400 modules Transparent Mode WARRANTY/DISCLAIMER Shop online at omega.com