Explainer
Serial position data does not prove a serial encoder interface
Short answer
No. A CP525 is a communications processor: its port proves that the link between the PLC and its partner is serial, and in these S5 positioning systems that partner is usually a separate positioning controller that owns the encoder input. Trace the encoder cable to its first receiving device, read the TTY or V.24 designation at both ends, reproduce the protocol, and only then choose the S7 replacement.

On this page
No, the serial position value in your S5 data area does not prove the linear encoders have a serial interface. The CP525 is a communications processor: its port proves that the link between the PLC and its partner device is serial, and in S5 positioning systems that partner is usually a separate positioning controller that owns the encoder input and closes the position loop locally. The value in the PLC has already been interpreted and scaled by that controller. Trace the encoder cable to its first receiving device, read the port designation (TTY or V.24) at both ends, and reproduce the protocol before you order the S7 replacement. The program comment about positioning initialization shows where the data flows, not what carries it.
What the CP525 port proves #
A communications processor and an encoder interface do different jobs. The first moves data between the PLC and another device over a serial link. The second receives the electrical signals that represent position — sine signals, square waves or a serial data stream — and turns them into a count or a position value. In this generation of S5 positioning systems, those two jobs usually sit in different devices.
So a CP525 with TTY or V.24 ports establishes exactly one fact: the PLC-side link is serial. The encoder cable does not end at the CP. The common architecture has the linear encoder feeding a positioning controller, the controller closing the loop with its own encoder input, and the CP525 exchanging commands and results with that controller over its PLC-facing port. A migration table maps CP525 to CP341 because it maps the communications function, module to module; it cannot see the partner device and was never meant to identify the encoder interface.
One corollary: even when an encoder genuinely is serial, a serial encoder interface still has to match what the receiving device supports — the same trap as why a serial-only absolute encoder may not work on your drive. The port at the receiving end is what the encoder must suit, not the port at the PLC.
Trace the signal path first #
The cable trace settles in an afternoon what no program listing can tell you. Work from drawings and physical inspection:
- Follow the encoder cable from the read head to its first terminating device, and record the nameplate and the terminal designation it lands on.
- Follow the CP525 cable to its far end; the port label there, together with the label at the CP connector, names the electrical interface of the PLC link.
- Where the drawings disagree with the wire, the wire wins; correct the drawings before the migration starts.
Do the trace with the cabinet isolated under your site's lockout procedure: the rack's power supply is fed from mains, and a current-loop link can be powered from the far end, outside the cabinet.
The expected finding is an encoder input on a separate positioning controller and the CP525 on that controller's PLC-facing port. The controller's manual then names the encoder interface — commonly 1 Vpp sine signals, TTL square waves, or an absolute serial protocol such as SSI, EnDat or BiSS for this class of linear encoder. If the trace instead ends at a module in the S5 rack, that module is the encoder input, and its datasheet owns the question. And if the trace leaves doubt about the encoder's own health, old linear encoder read head: test before rebuilding covers that check before you spend on hardware.
TTY or V.24: two different wires #
TTY on this equipment means a 20 mA current loop: data is the presence or absence of current in the pair, one side sources the loop and the other sinks it, so polarity and the active side both have to match. V.24 names the interface circuits, implemented here as the RS-232 voltage interface, where the receiver decides logic from levels beyond ±3 V. Neither label says anything about the message format; two devices can exchange valid characters and still disagree about framing and meaning.
Both ports can be confirmed with one measurement each on the running link, because an idle serial line rests in the mark state:
- TTY: a DC clamp meter on one loop conductor shows the loop current near 20 mA, continuously.
- V.24: a voltmeter from the received data line to signal ground shows the negative mark level.
| Finding at the port | What it establishes | The confirming check |
|---|---|---|
| TTY current loop | Current-carrying pair; polarity and active side matter | Loop current near its nominal value at idle |
| V.24 | Voltage circuits with a common reference | Negative mark level on the data line at idle |
| Neither matches | Lost documentation or mixed wiring | Stop and re-identify from the partner device's manual |
Read the designation printed at the connector at both ends regardless; the meter confirms the label, it does not replace it. And do not select a replacement by connector shape: the same shell can carry either electrical interface.
Where the settings hide in the S5 system #
"Initialization of positioning" is a comment on application logic: the blocks that prepare a command, trigger the exchange and evaluate the reply. The serial settings — data rate, framing, message handling — are not in that logic at all. They live in the CP525's parameter assignment, loaded into the module, which is why a search through the program for the interface finds nothing.
Work from a preserved copy of the running program. From the initialization block, follow the calls into the blocks it invokes, and note which data areas are written before a send and which are read after a receive: those are your command and result areas. Then recover the CP parameter assignment from the backup or the commissioning records; it holds the interface settings and the message definition. Check your interpretation against the machine: with the axis parked at a known location, the value in the result area should map to the displayed position through one fixed scaling, including sign and byte order.
When the records are gone, the protocol has to come off the wire while the old link still runs; identifying a CP525 TTY protocol from a capture covers that procedure.
Position age: why the loop closes in the controller #
A serial position link has an acquisition delay, and its size explains the architecture. Position age is the time between the encoder sensing a position and the PLC using the value: the controller's update cycle, the telegram transmission time and the PLC cycle, added together.
A calculated example, not a measurement, with example inputs — your real data rate and telegram length come from the parameter assignment: a link at 9600 bit/s with 11 bits per character (start, 8 data, parity, stop), a position telegram of 10 characters, a controller update cycle of 10 ms and a PLC cycle of 20 ms.
- Transmission: 10 characters × 11 bits = 110 bits; 110 bits ÷ 9600 bit/s = 11.5 ms.
- Position age: 10 ms + 11.5 ms + 20 ms = 41.5 ms.
- At an axis speed of 0.5 m/s, the axis moves 41.5 ms × 0.5 m/s ≈ 21 mm between sensing and use.
No axis closes a position loop through data that old, so the loop closes in the positioning controller and the serial link carries supervisory commands and results. That is the engineering reason the encoder does not terminate at the CP, and it sets the acceptance test for the migration: the new link's position age must stay within what the application already tolerated, so compare it with the old link rather than with an ideal.
The decision for the migration #
Case A, the usual one. The encoder cable ends at a positioning controller and the CP525 cable ends at that controller's PLC-facing port. Keep the controller. Replace the CP525 with a CP341 fitted with the interface module for the port you identified — the TTY or V.24 finding decides which module you order — and reproduce framing and telegram layout from the controller's manual and the old parameter assignment. The encoder interface stays the controller's business, documented in its manual.
Case B. The encoder cable lands on a module in the S5 rack. That module is the encoder input, its datasheet names the encoder interface, and the S7 side needs an equivalent input — the same reasoning as which absolute encoder interface works with a high-speed counter PLC. A serial communications module does not enter the encoder path at all.
Case C. The port or the protocol is still unidentified after the trace. Do not order. The port designation and the protocol are the two facts that define the replacement; a CP341 bought against a migration table alone is a guess.
The serial port is a fact you can measure at both ends; the serial encoder is an assumption that the first cable trace either confirms or kills.
Questions asked
The encoder cable has only six wires, so it must be serial, right?
No. Wire count does not identify an interface. An incremental linear encoder with 1 Vpp sine signals spends a pair per channel plus a reference channel, and an absolute serial encoder needs power plus clock and data lines, so both fit into small cables. The connector and terminal labels at the receiving device decide the question, not the number of conductors in the cable.
Can I skip the port identification and just add a TTY-to-V.24 converter on the S7 side?
Not safely. A converter translates only the electrical layer between loop current and RS-232 voltage levels; it does not reproduce message framing, and the loop's polarity and which side sources the current still have to match at both ends. Identify the port first, then add a converter only if the chosen S7 module lacks that electrical interface.
Do I need the old S5 parameter assignment to migrate the link?
It saves most of the work. The parameter assignment holds the serial settings and message handling, and the program backup shows which data areas carry commands and returned position. Without them, you reconstruct framing and telegram layout from the positioning controller's manual and from a capture of the running link, taken before the old rack is switched off.
If the port turns out to be TTY, does the positioning controller need replacing too?
No. The current-loop interface remains available as converters and as 20 mA options on communication modules, so a TTY partner does not force a controller redesign. What the S7 side must reproduce is the electrical interface and the protocol together; either one alone leaves the link dead.


