ConnectingTwo-WireDevices
TheNIRS-485hardwareisdesignedtoworkwitheithertwoorfour-wire
devices.Ifyouareusingatwo-wiredevice,refertothedevice
documentationforspecificwiringinstructions.
Ingeneral,half-duplexnetworksuseasingletwistedpairofwiresfor
communicationinbothdirections,soyoumustconnectboththe
transmitterandthereceiverateachendofthesamepairofwires.For
example,toconnectanRS-485dataacquisitiondevicetoaportonyour
boardusinghalf-duplexcommunication,youneedasingletwistedpairof
wires.Attheboard,connecttheTXD+andRXD+signals(pins8and4
onaDB-9connector,pins5and20onaDB-25connector)togetherand
toonewire.ConnecttheotherendofthiswiretoboththeTXD+and
RXD+signalsonthedataacquisitiondevice.Usethesamemethodto
connecttheTXD–andRXD–signals(pins9and5onaDB-9connector,
pins22and7onaDB-25connector)tothesecondwire.
Forinformationaboutsettingthetransceivermodefortwo-wire
communication,refertoRS-485TransceiverControl.Formore
informationaboutduplexarchitectures,refertoSerialPortInformation.