To Consort website  |  Print page

User Tools

Site Tools


r36xxrs485

Return

RS485

The Consort controllers R36xx are delivered with a digital communication port of the type RS485.

This type of digital port allows to connect up to 31 controllers on the same lines to one communication port. The interconnecting cables can have a length of up to 1000m. There exists also data converters which can place the signals on a computer network.

All measurements can easily be read by the computer or sent automatically by the device.

The aim of this page is to describe how to use this RS485 port.

Hardware connection

Cable

The RS485 port of the controllers exists of 3 terminal screws. These terminals should be interconnected with another RS485-port using a shielded Twisted Pair cable. The easiest to find and usable cable is a computer network cable, type CAT5 or better.

Wiring

The two wires of one twisted pair of the network cable should be connected to the terminal A and B of the controller. The shielding of the cable should be connected to the terminal GND of the RS485 terminals on the controller and the GND terminal at the end point.

When connecting more than 1 controller, all these should be connected in parallel on this network cable:

Converters

USB

This RS485/USB converter transforms the RS485 signals to USB and vice versa and allows to communicate via a USB interface from a computer. The converter comes with software to set it up and to use it like a virtual communications port.

We use and recommend the converter cable of FTDI: USB-RS485-WE-1800-BT. The coloured wires of this specific cable need to be connected as follows:

  • Yellow → RS485 - A
  • Orange → RS485 - B
  • Black → RS485 - GND

The other coloured wires should not be connected to the device. It is best these are insulated to avoid accidental contact with any conductor in the device.

Ethernet

This converter transforms the RS485 signals to Ethernet and vice-verso and allows to communicate via the network interface from a computer. The converter comes with software to set it up and to use it like a virtual communications port.

Our own experience learns us not to use the VCP driver from the converter's manufacturer itself. Use this instead to avoid as much problems as possible: http://new.hwg.cz/download/sw/version/hw-vsp3-single_3-1-2.exe. This free driver has less problems to use.

RS232

This converter transforms the RS485 signals to RS232 and vice versa and allows to communicate via the standard RS232-port from a computer. This converter requires the use of a true RS232 port in the computer, not derived from e.g. a USB converter, because it requires its power from one of the RS232 signal lines (DTR).

To allow half-duplex control (Master-Slave), the DIP switches from the RS485 to RS232 converter (Consort article code A2002) needs to be set with the switch nr 1 to ON and all other DIP switches to OFF. The signal direction should be controlled by the computer software (the Master) by means of the RTS line.

When only 1 controller is connected on the RS485 bus, it is also possible to use a one-direction communication without the need of setting the RTS line. Therefore DIP switch 2 should also be set to ON. It depends however on the level of the RTS line whether it is required or not.

Data Output

Master-Slave communication

A program for reading the data from the controllers can be downloaded from our website. This package allows to read and log data on its own. It is also able to read and store the data table logged by the devices themselves. More information can be found on our website: DIS-2 Installation.

When required to write your own software to read the devices, the communication commands and protocol can be downloaded from these links, click on the device of interest:

Single direction

Set-up

To receive data from a controller without the control from a master, using the one-direction communication, perform the following steps:

  1. Connect the RS485 port to the port entrance (see Hardware Connection).
  2. Choose Settings > RS485 on the controller and set the following parameters:

    • Interval: The interval of time for the sending of the data in hours:min:sec.
    • Id.no.:An identification number for the controller, all output data will be
      preceded with number.
    • Baud rate:The communication speed. This should be the same for all devices
      on the RS485 bus.

  3. Make sure the receiving device is listening to the correct COMM-port and it should use the following data communication parameters:

    • The same Baud rate as set in the device,
    • 8 data bits,
    • No parity,
    • 1 stop bit.

Data output

  • The data is sent out in ASCII format
  • Each data field is separated by a TAB characters (ascii 9) which is represented in the examples by an underscore character ('_').
  • Each line is terminated with the combination carriage return (ascii 13) and line feed (ascii 10). This is represented in the examples as 2 periods at the end of the line.
  • Each channel is sent on a separate line.
  • The first line contains the date and the time.
  • The other lines will have empty date and time fields but these are still separated by a TAB character.

Example with id.no. #001, 2 channels in use:

#001_ 31/05/2010_ 15:00:18_ 7.215_pH_ 18.2_°C_> 7.00 REL1 ..
#001_ _ _ 2.73_mS/cm_ 18.2_°C_ ..

Example without id.no.

31/05/2010_ 15:00:18_ 7.48_pH_ 28.7_°C_> 7.30 REL3 ..
_ _ 675_mV_ _ _< 720 REL2 ..

Note:

The numbers of spaces in the examples are not representative for the true data output.

r36xxrs485.txt · Last modified: 11/02/2019 07:55 by pieter