I-O Display Systems Basic I/O Product manual RS-485 Programming

Page 59

Installation 2

RS-485 Programming:

The BASIC I/O AD will work equally well when connected as RS-422 or RS-485. However special host programming considerations may be necessary when implementing an RS-485 network. Unlike RS-422 where both the transmit and Receive signals have their own differential pair of conductors, RS-485 utilizes only one differential pair. The single pair of conductors is used bidirectionally and handles both transmit and receive signals. In order for this to be possible, the transmitter for each device on this type of network must be enabled and disabled whenever a message is to be sent. The transmitter for the BASIC I/O AD is designed to handle this control automatically, the transmitter control for most popular RS-485 cards that are installed in the Host computer must be controlled by the user program. This control is not straight forward and may impact the overall system throughput with inherent delay periods. The following is a typical instruction/ response transaction between a host computer and a BASIC I/O AD using RS-485.

1)The Host computer enables its RS-485 transmitter (usually via the RTS line)

2)The Host then sends an instruction to the BASIC I/O AD in the form of an ASCII printable string.

3)Once the Host determines that the string has been completely sent, the RS-485 transmitter is disabled.

4)Every BASIC I/O AD on the network receives the instruction and begin to decode it. That particular BASIC I/O AD addressed begins to construct a response.

5)Once the carriage return is of the instruction is received, then begins to transmit a response.

6)The Host receives the response and takes the appropriate action.

2-5(Vol.2)

Image 59
Contents Page Basic I/O Product Family Page Vol.1 Table of Contents Vol Table of Contents Basic I/O Basic I/OAnalog input instruction types are Analog InputsAnalog Outputs Digital Inputs Digital Outputs Throughput Tables System Throughput7Vol.1 Communication Protocol Analog INPUTS, 12 BIT Analog OUTPUTS, 12 BIT Physical Characteristics DiagnosticsBasic I/O Models Product Test12Vol.1 Mounting Setup & Installation+5V GND Power WiringCommunicating with the Basic I/O Repeat RS-485 can only be multidropRS-485 RS-422RS-485 Programming Communication Wiring Network Bias Resistor Locations Network load V.S. Noise suppressionRS-422 Host to Basic I/O RS-422 Host to Basic I/O wiringRS-422 Basic I/O-To-BASIC I/O multidrop Basic I/O to Basic I/O RS-422 Multidrop or RepeaterRS-485 To-BASIC I/O RS-485 Host to Basic I/ORS-485 Basic I/O to Basic I/O Multidrop Basic I/O to Basic I/O RS-485 Multidrop onlyBasic I/O Connectors, Switches and Indicators Basic I/O setupBaud Rates Analog/ DigitalAddresses Protocol Handshake Types L3 Last Unit Network Type SwitchL1 Repeater L2 MultidropU1=00 H096 L3 P2 Setup via PushbuttonCommunication verification Sensor/ Actuator I/O wiring Hardware error codesError Code Other error codesAnalog Inputs 10 AC Current and Voltage Wiring11 Analog Voltage and Current input Wiring Analog outputs 13 Analog Voltage and Current Output WiringDigital Inputs 14 Digital Input WiringDigital Outputs 15 Digital Output WiringAnalog Outputs Vol.1 IndexPage Basic I/O AD Vol Table of Contents Basic I/O AD to Basic I/O AD RS-422 Product Test IntroductionCapacity Signal compatibility Protocol Compatibility Range Limits TemperatureOffsets Gain/ SlopePulse counting DelayedDigital inputs Read Pulse widthsExtended capabilities SquarewavePulse Generator BIO8AD/L SpecificationsOrdering Information Position Basic I/O AD8Vol.2 Installation InstallationPower Wiring Multidrop Designing the NetworkRS-422 RS-485 Programming Communication Wiring Network Bias resistor locations Basic I/O AD Connectors, Switches and Indicators Network Type SwitchesLast Unit RS-422 Host to Basic I/O AD Communications WiringRS-485 To-BASIC I/O AD RS-485 Host to Basic I/O ADRS-422 Basic I/O AD-To-BASIC I/O AD Basic I/O AD to Basic I/O AD RS-422RS-485 Basic I/O AD to Basic I/O AD Basic I/O AD to Basic I/O AD RS-485Basic I/O AD Module Placement Worksheet Installing the I/O modules11 AC current and voltage wiring Module Wiring Analog Inputs12 Analog Voltage, frequency and Current input Wiring 14 Analog Voltage and Current Output Wiring 15 Digital Input Wiring 16 Digital output wiring Function addresses SetupChassis Setup Offset ModeVariable Mode Baud Rates Changing Setup Parameters Via Pushbutton Communication Verification Hardware error codes Vol.2 Index Vol.2 Index