Selection guide
Which S7 interface replaces an S5 TTY link to an OEM HMI
Short answer
None, if the converter plugs into the S5 CPU port: that link runs a SINEC L1-like protocol no S7 interface offers, so an adapter swap alone cannot reconnect the HMI. When the OEM software can speak 3964R with RK512, the replacement is a CP341 with the 20 mA (TTY) interface on an S7-300 or a CP441 with the pluggable RS232 or TTY interface module on an S7-400; otherwise use a protocol gateway or change the operator-station software.
On this page
- What the TTY link carries, and what the converter cannot do
- The S7 interfaces that replace the S5 serial ports
- Match the protocol before you order the module
- Worked example: sizing the replacement data block
- The decision for each starting point
- Verify the record exchange before the old PLC comes out
- Questions asked
If the converter today plugs into the S5 CPU port, no adapter swap will reconnect this station: that link runs a SINEC L1-like protocol, and no S7 serial interface speaks it. The replacement is decided by protocol, not by the connector. When the OEM software can speak 3964R with RK512, the interface to order is a CP341 with the 20 mA (TTY) interface on an S7-300, or a CP441 with the pluggable RS232 or TTY interface module on an S7-400; the same PC and converter then stay in service. When the software speaks only the L1-like CPU-port exchange, the decision is a protocol gateway or a change of operator-station software, because a converter translates signalling and never a protocol.
What the TTY link carries, and what the converter cannot do #
Two layers decide this migration, and the converter lives on only one of them. TTY is the 20 mA current loop the older Siemens serial ports use; RS-232 is voltage-level signalling. An RS232-to-TTY converter shifts a signal between the two and passes every byte through unchanged, which puts it in the same class of electrical-layer move as migrating an HMI serial connection from RS-232 to RS-485: signalling changes, protocol never does. The protocol layer — message framing, station addressing and the data-block coordinates in each request — has to be agreed separately by the OEM software and the PLC, and no wiring change supplies that agreement.
Identify the port and the protocol before ordering anything. A cable into the CPU's integrated port means a SINEC L1-like exchange: Siemens documents compact CPUs such as the S5-90U and S5-95U as SINEC L1 slaves on that integrated port, and PC-side drivers for it include the AS511 protocol, which reaches the port over an RS-232C port and a PG cable. A cable into a CP524 or CP525 serial communications board means the protocol configured on that board; 3964R carrying RK512 requests is the usual candidate, and the board's configuration confirms it. Read the protocol name, serial settings, station address and record layout out of the OEM software's communication configuration while the S5 still runs; after power-down there is nothing left to interrogate. Converting the program, as already done, moves the data; it does not move the conversation.
The S7 interfaces that replace the S5 serial ports #
Settle the CPU platform on capacity first — how to size an S7-400 CPU against a PLC-5/40 scan time walks through that sizing for an incumbent-controller swap — then pick the serial interface that matches the protocol.
On an S7-300, the CP341 point-to-point processor is the TTY interface: the 20 mA (TTY) version, order number 6ES7341-1BH02-0AE0, keeps the existing converter and cabinet cabling in service, while the CP 341-RS version gives an RS232 port that deletes the converter and lets the PC cable straight to the module. On an S7-400, the CP441 accepts a pluggable interface module, and you select that module for RS232 or for TTY depending on whether the converter is dropped or kept.
The protocol is configured in the module's parameter assignment inside the S7 programming tool. 3964R is the transmission procedure that frames and acknowledges each telegram; RK512 is the message layer that names the data block, the start address and the length the OEM software requests. Both ends must run the same combination, at the same station address and serial settings.
Match the protocol before you order the module #
The module documentation lists the protocols each point-to-point processor supports, and the OEM vendor lists what the software can speak; the migration proceeds only where the two overlap. The table is the selection for each starting point.
| Starting point on the S5 side | Protocol in use | Replacement on the S7 side | Verdict for the same PC |
|---|---|---|---|
| Converter into the CPU port | SINEC L1-like | no S7 point-to-point module offers it | Adapter swap fails; use a protocol gateway or change the operator-station software |
| CP524 or CP525 serial board | configured on the board; confirm 3964R with RK512 | CP341 20 mA (TTY) on S7-300, or CP441 with the TTY interface module | Converter stays in service; reconfigure protocol and records at both ends |
| Same board, converter dropped | 3964R with RK512 over RS-232 | CP 341-RS on S7-300, or CP441 with the RS232 interface module | PC cables direct to the module; one device leaves the cabinet |
| OEM software locked to its one protocol | unsupported by S7 serial modules | none directly | Protocol gateway with documented support for both sides, or replace the operator-station software |
Worked example: sizing the replacement data block #
The inputs below are illustrative; the arithmetic is the check you run for every record. Suppose the OEM software reads one record of 64 words from S5 data block DB 10 starting at DW 0, once per second. The S7 replacement block must hold the same payload: 64 words × 2 bytes per word = 128 bytes, so declare the S7 replacement DB with at least 128 bytes of length.
Once the OEM software is set to RK512, each request carries the new block number, the start address and the length; check whether the driver counts length in words or in bytes, because the 128-byte block and the request agree only when both use the same unit. Repeat the arithmetic for every record the software reads, and record each mapping: old block and DW range, new block and byte range, data type, scaling. If any record cannot be expressed as an S7 block number and address the software accepts, the software needs a driver update or a gateway — a decision that belongs before the module order, not after.
The decision for each starting point #
Converter into the CPU port, the case in front of you: a one-for-one replacement does not exist. Check whether the OEM software also offers a 3964R/RK512 serial driver. If it does, order the CP341 TTY interface or the CP441 with the TTY interface module and reconfigure both ends, converter included. If it does not, no adapter helps: choose a protocol gateway with documented support for the PC-side exchange and an S7-supported protocol on the PLC side, or move the operator station to software that speaks a supported protocol.
A CP524 or CP525 on the S5: read the protocol from the board's configuration. With 3964R/RK512 confirmed, the CP341 TTY interface on the S7-300, or the CP441 with the matching interface module on the S7-400, replaces the board and the converter carries over.
The PC itself: nothing changes on the PC. It still presents its RS-232 COM port; the migration lives on the PLC side and in the software's protocol settings.
Verify the record exchange before the old PLC comes out #
Keep the machine's outputs in a safe state while the new link is first enabled, because an unmapped record can write to the wrong address. Bring up one known record: force a recognizable value into the S7 block, read it at the PC, and compare address, data type, word order and sign handling against the mapping. Then power-cycle both ends and confirm the OEM software reconnects on its own stored configuration, not on a temporary download. Check the port, pinout and signal type against connecting an HMI to a controller over a serial COM port before energizing anything, and if the link comes up but records stall, the symptom pattern matches fixing HMI PLC communication timeout over serial.
Questions asked
Can the existing RS232-to-TTY converter stay in service after the migration?
Yes, at the electrical layer only. The converter turns the PC's RS-232 voltage signals into the current loop the TTY port expects, and it never sees the protocol, so it needs no reconfiguration when the protocol changes. It stays in service when the new S7 side is itself a TTY port; it becomes surplus when the new side is an RS232 port, because the PC then cables directly to the module. It cannot help at the protocol layer: a SINEC L1-like exchange still fails with the converter in place.
Does setting a module to 3964R give the HMI access to S7 data blocks?
No. 3964R is the transmission procedure that frames each telegram and handles acknowledgement and retries; RK512 is the message format on top of it that names the data block, the start address and the length. A link running 3964R alone cannot answer a request for a specific data-block range, and OEM software set to RK512 reports a timeout instead of data. Both ends need the same combination: 3964R for the link, RK512 for the data.
How do you identify the protocol before the S5 is powered down?
Read the OEM software's communication configuration first: the driver or protocol name, the serial port settings, the station address and the data block numbers it requests. Then check the S5 side: a cable into the CPU's integrated port points to the SINEC L1-like exchange, while a CP524 or CP525 board carries its own protocol parameters you can read from its configuration. If neither document exists, capture the serial traffic with a line monitor while the link is still running, before the hardware is removed.
What bridges the link when the OEM software cannot change protocol?
A protocol gateway, not a converter. The gateway must document support for the exchange the PC speaks, for example a SINEC L1-related protocol, on one side and a protocol the S7 interface supports on the other, with the record mapping configured inside the gateway. Bench-test it together with the OEM software and the new PLC before the cutover, because the mapping, not the wiring, is where these migrations fail.
Is the S5 CPU port the same connection the programming unit uses?
On compact S5 models such as the S5-90U and S5-95U, the integrated port serves the programming unit, and Siemens documents those CPUs as SINEC L1 slaves on it. Drivers exist that reach the programming port over an RS-232C port and a PG cable using the AS511 protocol. Which exchange the OEM software actually speaks must come from its configuration or a traffic capture, because the connector cannot tell you.