Example 1: Direct ConnectionΒΆ

This example shows how to realize data transmission between two RCOM Communication Modules using a direct serial connection in operation mode RCOM+. The transmission speed of the connection in this example is set to 9600 Baud/s (odd parity).

The set up of the AC500 PLCs will be described as well as the projecting of the master and slave devices.

The corresponding projects can be found in the examples folder:

  • RCOM Master: AC500_RCOM_DIRECT_MASTER_PM5xx_Vyy.pro
  • RCOM Slave: AC500_RCOM_DIRECT_SLAVE_PM5xx_Vyy.pro

The basic hardware setup consists of two AC500 PLCs, each using

  • 1 processor module
  • 1 terminal base with at least one communication module slot
  • 1 communication module CM574-RCOM.
../_images/d7b9524ae38c05530a33139000eba54e

To connect the communication modules, a serial cable with the following pin assignment is required (cross cable):

../_images/6149e9fae38c00150a33139000eba54e

In addition to that, a cable is recommended that connects the CONSOLE port to a PC with a terminal emulation software to view protocol information or error messages.

../_images/7d0359b1e38bff690a33139000eba54e