Hardware configuration
The Cortex 360’s serial port can be configured for RS-232, RS-422 or RS-485 operation.
RS-485 is used for Modbus peripherals and allows the Cortex 360 to connect directly to these Modbus devices without using an external adapter. Note that if you are already using the serial port for connection to another device or for backhaul in RS-232 mode, you may want to use a USB to RS-485 adapter to connect to one of the Cortex 360’s USB ports.
Locate the serial port mode jumpers on the main PCB.
Set the jumper on the pins corresponding to the mode you desire.
Next, select whether you want to use terminating resistors (sometimes required for long cable runs). Install the jumper at the position indicated for TX Termination and/or RX Termination. Use TX Termination only in 2 wire mode.
The following table shows the pin assignments on the Cortex 360’s rear-panel DB-9 connector.
PIN | RS-232 | RS-422 | RS-485 |
1 | TX+ | RX/TX+ | |
2 | RXD | ||
3 | TXD | ||
4 | RX+ | ||
5 | GND | GND | GND |
6 | TX- | RX/TX- | |
7 | |||
8 | |||
9 | RX- |
This connector is a male connector, which means that it is defined as a DTE (Data Terminal Equipment) device.
The Cortex unit is a DTE, which is a generator or receiver of data. In serial communications, a DTE usually connects to a DCE (Data Communications Equipment) such as a modem. The DCE usually has a female connector.
Software configuration
1- Go to the Devices drop-down menu.
2- Go to Modem & IOIOI
3- Select IOIOI and click the configuration button.
4- Enter the device name.
5- Choose the way you want to use this port. For example, if you wish to communicate with a Modbus RS-485 device, select Modbus.
6- Configure the right parameters.
7- Save the configuration
8- Exit the configuration screen.