Home     Interfacing     Software     About     Sitemap   
 EN   NL   

Siemens PLC cables

Programming cables for Siemens PLCs

Most PLCs manufactured by Siemens are not equipped with a normal RS232 port. On the S5 PLC series, a TTY 20 mA current loop interface is used. The S7 series on the other hand use a PPI or MPI interface. A simple programming cable between a PC and a Siemens PLC is therefore not possible. Some electronics is necessary to perform the necessary signal conversion. Some peripherals like the OP display can however be connected directly with a serial port.

Pin assignment for the Siemens S5 DB15 connector

On Siemens S5 PLC systems and peripherals, a DB15 connector is used for serial communications. This connector is present on CPUs, communication processors and operator panels, and in all cases the used pins and functionality slightly differ. The picture and table below show the general pin assignment of the Siemens S5 DB15 connector.

Siemens S5 PLC DB15 connector
Siemens S5 DB15 connector pin assignment
PinNameCPUsComm. ProcessorsHMI Panels
1n/c
2TTY – Receive data –YesYesYes
3RS232 – Receive dataNoYesYes
4RS232 – Transmit dataNoYesYes
5RS232 – Clear to sendNoYesYes
6TTY – Transmit data +YesYesYes
7TTY – Transmit data –YesYesYes
8n/c
9TTY – Receive data +YesYesYes
10RS232 – Request to sendNoYesYes
1120 mA current sourceYessome modelssome models
12Signal groundYesYesYes
1320 mA current sourceYessome modelssome models
14+5.2 Volt power suplplyYessome modelssome models
15Signal groundYesYesYes
Siemens DB15 pin assignment for various devices
Based on limited available data, errors may be present

Although the pin assignment on the various DB15 connectors on Siemens S5 devices is consistent, the availability of specific signals varies a lot. The TTY 20 mA current loop input and output are available on all devices, but the current source to power this communication is only found on the CPUs and a few of the other devices. RS232 signals on the other hand are not available directly on the CPU programming port, but most communication processors and operator panels provide them.

Siemens has solved the problem of different capabilities of the DB15 connectors on various equipment at the programmer side, by adding an active (powered) TTY 20 mA current loop interface in their programming devices. For PLC programming with a normal PC, the passive (unpowered) 6ES5-734-1BD20 RS232 to TTY adapter cable is used. Because this is a passive cable, it must be powered by the +5 Volt power source on pin 14 on the DB15 connector. As this power source is not available on all devices with a DB15 connector, success rate with the 6ES5-734-1BD20 cable may vary.

Electronics layout for a Siemens S5 RS232 to TTY converter

If you need high quality communications between the RS232 port on a PC and a Siemens S5 PLC or another device from the S5 series, I advice you to buy the original 6ES5-734-1BD20 converter cable. It is solid, and guaranteed to work. The price of this cable is however high, and availability is getting worse because the S5 PLC series is no longer manufactured by Siemens. Therefore I offer on this site an electronics layout you can use to create your own RS232 to TTY converter. This information is provided for educational purposes only. No guarantee is given that the solution will work in your specific situation, and no responsibility is taken for any loss or damage resulting from the creation of a converter based on this information.

On the S5 series CPUs from Siemens, a DB15 connector is present to connect a programming cable to. This connector does not provide normal RS232 pins. Instead, isolated 20 mA current loop TTY inputs and outputs are used for the communication. This gives a galvanic isolation between the PLC and the connected computer. Although the signal levels on this TTY interface are different from the RS232 standard, the bit sequences are the same. The electronics between the TTY port on the PLC and the RS232 port on the computer does therefore only have to convert the signal levels. There is no protocol conversion taking place.

The easiest way to convert RS232 signal levels to 20 mA current loop levels is by first converting the RS232 level to TTL, then use an opto-coupler for the current transformation. Many opto couplers work in the 20 mA range which make this solution feasible without much extra electronics. The conversion from RS232 to TTL levels can be done with a converter from the Maxim MAX232 chip family.

Although the MAX232 converter chip is the cheapest and most used in the Maxim family, I prefer to use the MAX233. This chip has the advantage that the internal DC/DC converters don’t need external capacitors, further simplifying the design.

The electronics need power to operate. Three different solutions come to mind. In the first approach, the power from the RS232 handshaking lines is used and converted to the appropriate levels. In the second approach, the 5 Volt power on the DB15 connector on the PLC is used. The third possibility is to use an external power supply.

All power supply sources have their pro’s and con’s. Many modern RS232 ports are not capable to generate enough power for external electronics. The 5 Volt power source on the DB15 is only available on the S5 CPUs, but not on peripherals like for example the communication processors CP526 and CP527, or some OP display series equipped with a TTY port. Furthermore, by using this +5 power supply, there is no galvanic isolation anymore between the PLC and PC. To keep the connection isolated, an DC/DC converter must be used, making the design more difficult.

The most versatile solution would be to use an external power source. For this design, I will use a layout where the RS232 port and an external power source can both be used. If you want to, you can replace the external power source by a DC/DC converter, powered by pin 14 on the DB15 connector.

Even more cables…

The Siemens operator terminals can be programmed using a normal serial cable. The following cable can be used to program the OP series of operator displays.

Programming cable for OPxx display series
Programming cable for OPxx display series
80% of the final exam will be based on the one lecture you missed about the one book you didn't read.
THIRD LAW OF APPLIED TERROR
  Aug. 2021
   Copyright © 1997-2021 Lammert Bies, All rights reserved