Replacing a Siemens S5 CP1430 with an S7-1500 While Preserving the Windows NT 4.0 Paper-Roll Tracking Application
Paper-roll conveyors that were originally built around a SIMATIC S5-115U/S5-135U/S5-155U PLC are still in service, and the supervisory tracking application often runs on an industrial PC (IPC) under Windows NT 4.0 Workstation. The IPC talks to the S5 through an Ethernet CP 1430 (or the TCP-enabled variant CP 1430 TCP) using the Siemens ISO-on-TCP transport, defined in RFC 1006. When the S5 is replaced with a SIMATIC S7-1500, two questions immediately surface: is the wire format identical so that the same Ethernet packets can be decoded, and can the existing tracking program (for which the source code is usually unavailable) keep running unmodified?
This reference gives an engineer-to-engineer walkthrough of the protocol, the configuration parameters, the S5 and S7-1500 program blocks, and the PC-side constraints. It consolidates the official Siemens application note "Ethernet Communication (ISO on TCP) between SIMATIC S5 and S7-1500" (Entry ID 109482475, v11) with field-proven migration practice.
1. Migration Scenario Overview
The classic topology that has to be replaced looks like this:
The protocol on the wire does not change. ISO-on-TCP (RFC 1006) is the same transport whether the partner is an S5 with a CP 1430 TCP or an S7-1500 with its integrated PROFINET interface. The migration therefore splits into three independent work packages:
-
PLC migration – replace the S5 with an S7-1500, recreate the S5 application logic, and replace the CP 1430 SEND/RECEIVE blocks (FB 244 / FB 245) with the S7-1500
TCON/TSEND/TRCVinstructions. - Wire-format migration – keep ISO-on-TCP as the transport. The byte stream seen by the IPC's CP 1613 / S7-1613 driver is identical, so the existing PC program still receives and sends the same payloads.
- IPC migration – Windows NT 4.0 is out of mainstream support. Plan a parallel path (virtualization, a modern replacement IPC, or a passive bridge) before the S5 is powered off.
2. CP 1430 Protocol Stack and ISO-on-TCP Fundamentals
The CP 1430 family sits in the S5 backplane and implements an Ethernet layer 2/3/4 stack with the Siemens-proprietary transport profile. When the firmware variant supporting TCP/IP is used, the transport profile used to talk to a PC application is ISO Transport over TCP, also called ISO-on-TCP, ISO 8073 class 4 over RFC 1006, or in S7 parlance, connection type 12 (B#16#0C).
| Layer | CP 1430 (S5) | S7-1500 PN interface | Reference |
|---|---|---|---|
| Application data | User DB / process image | User DB / process image | — |
| Send/Receive fetch | FB 244 SEND, FB 245 RECEIVE | TSEND, TRCV, TUSEND, TURCV | S5-135U/155U manual, S7-1500 programming manual |
| Transport | ISO 8073 class 4 (TPKT header) | ISO 8073 class 4 (TPKT header) | RFC 1006 |
| Network | IP | IP | RFC 791 |
| Link | Ethernet 10/100 | Ethernet 10/100/1000 | IEEE 802.3 |
| Port / TSAP | TCP 102 + Siemens TSAP | TCP 102 + Siemens TSAP | RFC 1006 |
RFC 1006 defines a thin TPKT header (4 bytes: version=3, reserved=0, 16-bit length) that wraps a standard ISO 8073 transport PDU. The first octet of the TPDU contains the credit (DT-credit) and TPDU number, and the variable part carries TPDU parameters — most importantly the calling-TSAP and called-TSAP. Those TSAPs are what the S5 COM 1430 parameter assignment screen and the S7-1500 TCON connection description must match.
PUT/GET partner, and an S7-1500 connection of type TCP will not accept a CP 1430 connection. Confirm on the COM 1430 parameter screen that the service is set to "ISO Transport (RFC 1006)" and that the TSAPs are entered in hex.Because the wire format is byte-identical, the Ethernet packets sent by an S7-1500 PROFINET interface running an ISO-on-TCP connection are indistinguishable on the wire from those sent by a CP 1430 TCP. That is the property that lets the existing PC application survive the migration.
3. Prerequisites and Risk Assessment
Before pulling cables, walk through the following preconditions. Each item is a real, observed source of late-stage project pain on paper-mill conveyor retrofits.
| Item | What to verify | Risk if skipped |
|---|---|---|
| CP 1430 firmware version | Only CP 1430 with the TCP/IP-enabled firmware supports ISO-on-TCP. Original CP 1430 (SINEC H1 only) cannot participate in this migration without a hardware swap to CP 1430 TCP. | Connection refused / no RFC 1006 TPKT on the wire. |
| COM 1430 configuration | Capture the active connection database: local TSAP, remote TSAP, remote IP, port, "active/passive" role, and the assigned SEND/RECEIVE fetch IDs. | TSAP mismatch silently breaks the link. |
| FB 244 / FB 245 parameters | Identify which data blocks (DBs) the S5 program reads and writes. These are the inputs/outputs of the migrated interface. | Data area offset wrong, tracking program reads garbage. |
| Windows NT 4.0 IPC | Microsoft ended support in 2004. Plan to re-host, virtualize, or replace the IPC in parallel with the S5 swap. Verify the Siemens SIMATIC NET PC software version on the NT 4.0 box (S7-1613, S7-1413, S7-OPC). | Hidden single point of failure during commissioning. |
| PC driver / transport DLL | Identify the exact Siemens transport: SAPI-S7, SAPI-1613, S7-DLL, OPC DA, or a third-party RFC 1006 stack. The S7-1500 side must mirror the same role (active vs passive) the driver expects. | PC application throws transport errors at start-up. |
| Network reachability | Switch port, VLAN, MAC-binding, IGMP-snooping, port-security. A managed switch silently dropping a new MAC is a common cause of "the link worked yesterday" complaints. | Intermittent timeouts only on certain roll positions. |
| Cybersecurity baseline | Many S5-CP 1430 networks have been on the same flat subnet for 20+ years. A new S7-1500 will at minimum need to coexist with whatever firewall / cell-protection zone the new architecture introduces. | Plant IT blocks the new CPU's IP during cutover. |
4. S5 Side: CP 1430 Configuration Retention
The Siemens application note 109482475 describes two viable S5 roles. In the recommended role, the S5 is the active partner and opens the ISO-on-TCP connection toward the S7-1500. This keeps the S5 application code untouched (no new FB 244 / FB 245 calls) — only the COM 1430 connection database is updated with the S7-1500's IP address and TSAP.
Typical COM 1430 connection parameters to capture and re-issue:
| Parameter | Typical value (paper-mill S5) | Note for migration |
|---|---|---|
| Connection name | e.g. TO_PC_TRACK
|
Free text, used in S5 diagnostics only. |
| Service | ISO Transport (RFC 1006) | Must NOT be "S7 function" or "PG function". |
| Active / Passive | Active (S5 opens) | Matches PC driver expectation that S5 initiates. |
| Local TSAP | e.g. TSAP=01.01 (hex) |
Two bytes, hex, dot-separated. Must remain unique on the CPU. |
| Remote TSAP | Original S5 partner's TSAP | Will be replaced by the S7-1500 TSAP after migration. |
| Remote IP | PC CP 1613 IP | Document; will be re-entered with the S7-1500 IP. |
| Port | 102 (default for ISO TSAP) | Do not change unless the PC driver explicitly uses a non-standard port. |
| Fetch type | BSEND / BRCV (byte-oriented) | Matches typical S5 block transfers of roll metadata. |
The CP 1430 firmware's SEND/RECEIVE handling blocks fetch the data to/from the data area defined by the S5 application's FB 244 / FB 245 call. The S5 STEP 5 program does not need to be modified if the S5 is kept as the active partner and the new connection database is downloaded via COM 1430 / COM 1430 TCP.
*.dat file before powering the S5 down. Reusing the exact TSAPs on the S7-1500 is the single biggest determinant of a clean cutover because the PC driver was configured against those TSAPs.5. S7-1500 Side: TCON / TSEND / TRCV Configuration
The S7-1500 uses the Open User Communication (OUC) instruction set on the integrated PROFINET interface. The three instructions of interest are TCON (establish ISO-on-TCP connection), TSEND (transmit), and TRCV (receive). For connection type ISO-on-TCP, TCON uses a connection description pointed to by the CONNECT parameter — in TIA Portal V17 and later this is configured as a structured TCON_Configured / TCON_IP_V4 tag.
Equivalent parameters between the S5 COM 1430 and the S7-1500 TCON_IP_V4 connection description:
| COM 1430 field | S7-1500 TCON_IP_V4 field | Typical value |
|---|---|---|
| Connection type | ConnectionType (B#16#0C = 12) | 12 (ISO-on-TCP) |
| Local TSAP | LocalTSAP (2 bytes, hex) | Reuse CP 1430's remote TSAP after swap, or assign a fresh pair. |
| Remote TSAP | RemoteTSAP (2 bytes, hex) | Reuse CP 1430's local TSAP after swap. |
| Remote IP | RemoteAddress (IP_V4 array, 4 bytes) | Set to the S5 CPU or to the IPC, depending on role. |
| Remote port | RemotePort (UINT) | 102 |
| Local port (passive only) | LocalPort (UINT) | 0 = dynamic allocation by firmware (recommended). |
| Active / Passive | ActiveEstablished / ActivePassive (BOOL) | One side MUST be active. Mirror the legacy role. |
Sample SCL body of the connection-setup block in TIA Portal V18 for an S7-1516-3 PN/DP, configured as the passive partner for the S5:
// FB "IsoOnTcp_S7"
#iState := 0; // state machine
CASE #iState OF
0: // wait for start
IF #bStart THEN
#iState := 10;
END_IF;
10: // establish connection
"TCON_DB".REQ := TRUE;
"TCON_DB".ID := 1; // connection ID
"TCON_DB".CONNECT := "connIsoOnTcp"; // TCON_IP_V4 tag
"TCON"(REQ := "TCON_DB".REQ,
ID := "TCON_DB".ID,
CONNECT := "TCON_DB".CONNECT,
DONE=>"TCON_DB".DONE,
BUSY=>"TCON_DB".BUSY,
ERROR=>"TCON_DB".ERR,
STATUS=>"TCON_DB".STATUS);
IF "TCON_DB".DONE THEN
"TCON_DB".REQ := FALSE;
#iState := 20;
ELSIF "TCON_DB".ERR THEN
#iState := 90; // error path
END_IF;
20: // send roll metadata
"TSEND_DB".REQ := #bSendTrig;
"TSEND_DB".ID := 1;
"TSEND_DB".LEN := UINT#32;
"TSEND_DB".DATA := "rollMeta".outArea;
"TSEND"(REQ := "TSEND_DB".REQ,
ID := "TSEND_DB".ID,
LEN := "TSEND_DB".LEN,
DATA := "TSEND_DB".DATA,
DONE=>"TSEND_DB".DONE,
BUSY=>"TSEND_DB".BUSY,
ERROR=>"TSEND_DB".ERR,
STATUS=>"TSEND_DB".STATUS);
30: // receive commands from PC
"TRCV_DB".EN_R := TRUE;
"TRCV_DB".ID := 1;
"TRCV_DB".LEN := 0; // accept any length up to ADHOC
"TRCV"(EN_R := "TRCV_DB".EN_R,
ID := "TRCV_DB".ID,
LEN := "TRCV_DB".LEN,
DATA := "TRCV_DB".DATA,
NDR =>"TRCV_DB".NDR,
BUSY =>"TRCV_DB".BUSY,
ERROR=>"TRCV_DB".ERR,
STATUS=>"TRCV_DB".STATUS,
RCVD_LEN=>"TRCV_DB".RCVD_LEN);
90: // error / watchdog
#wFault := TRUE;
#iState := 0;
END_CASE;
For the S7-1500 to behave exactly like a CP 1430, two configuration decisions are mandatory:
- Connection type 12 (B#16#0C) must be set. Connection type 11 (TCP) will not accept a CP 1430 ISO Transport partner; connection type 1 (S7 communication) will not carry the same payload layout.
- Active/passive roles must mirror the legacy direction. If the S5 was active, the S7-1500 must be passive. If the S5 was passive (the PC was active), the S7-1500 must be active.
For a phased migration where the S5 is kept initially as the active partner, the S7-1500 is configured passive, and the S5 opens the connection to the S7-1500 IP. This is the architecture in the Siemens application note 109482475.
6. Connection Parameter Mapping (TSAP, Port, IP)
The single most common cutover fault is TSAP mismatch. Below is the mapping matrix to use when copying parameters from the S5 COM 1430 database to the S7-1500 TCON_IP_V4 tag and to the PC driver configuration.
| Parameter | S5 (CP 1430 TCP) – old value | S7-1500 (TCON_IP_V4) – new value | PC driver (e.g. SAPI-S7) – new value |
|---|---|---|---|
| S5 IP | 192.168.10.5 (existing) | — (no S5 anymore) | — |
| S7-1500 IP | — | 192.168.10.5 (reuse S5's IP) or a new IP that the PC driver is reconfigured to reach | 192.168.10.5 (or new IP) |
| PC IP | 192.168.10.20 | 192.168.10.20 (unchanged) | 127.0.0.1 (local) |
| Port | 102 | 102 | 102 |
| Local TSAP (S5 side) | e.g. 01.01
|
— | — |
| Local TSAP (S7 side) | — | Use the old remote TSAP that the S5 used, e.g. 01.01 (hex) or TSAP_01.01
|
— |
| Local TSAP (PC side) | e.g. 02.02
|
— | Keep 02.02
|
| Remote TSAP (S7 side) | — | Set to PC's local TSAP, e.g. 02.02
|
— |
| Remote TSAP (PC side) | — | — | Set to S7's local TSAP, e.g. 01.01
|
TSAPs are two arbitrary bytes (0x00…0xFF) with the strong convention that the first byte is the transport selector (often the rack/slot in S5) and the second byte is the connection number. In TIA Portal, enter them as a byte array remote_tsap := B#16#01, B#16#01 or as a STRING tagged TSAP_01.01 — the firmware accepts both representations.
TSAP_01.01 = bytes 0x54 0x53 0x41 0x50 0x5F 0x30 0x31 0x2E 0x30 0x31) and some in raw hex. Verify with a Wireshark capture that the first byte of the TPDU variable part is 0x01, not 0x54 ('T'). A common migration error is to enter TSAP_01.01 as the TSAP string when the COM 1430 database carried the raw bytes 0x01 0x01.7. Windows NT 4.0 Tracking Program Considerations
The Windows NT 4.0 IPC is the fragile element of this migration. NT 4.0 Workstation reached end of support in 2004 and is no longer patched for new CPU instruction sets (no PAE/NX-aware kernel), USB stacks, or modern network drivers. A typical paper-mill tracking PC from that era uses a Siemens SIMATIC NET PC package — S7-1613, S7-1413, or the early SAPI-S7 transport DLL — coupled to a CP 1613 or CP 1413 Ethernet card.
Three survival strategies are common in the field, in order of preference:
| Strategy | What it is | Pros | Cons |
|---|---|---|---|
| A. Replace the IPC, port the program | New Windows 10/11 IPC with current SIMATIC NET PC Software, re-host the roll-tracking application, recompile or use a compatibility shim. | Removes the NT 4.0 single point of failure, eligible for current support contracts. | Source code is usually unavailable. The vendor may not exist any more. |
| B. Virtualize NT 4.0 | Run NT 4.0 in a Type-2 hypervisor (VirtualBox, VMware Workstation) on a current host. The CP 1613 is replaced by a virtual NIC bridged to the same VLAN. | Zero code change. The original transport DLLs continue to talk to the S7-1500 because the wire protocol is identical. | 32-bit NT 4.0 runs as a guest only on certain host CPUs; USB and PCI pass-through for legacy CP 1613 cards is not feasible, so a bridged virtual NIC is mandatory. |
| C. Insert a translation gateway | Add a S7-1500 or a SCALANCE device that proxies the legacy traffic to a new PC application. | Lets the S7-1500 expose a modern OPC UA / Modbus TCP endpoint to a current SCADA, while a thin S5-CP-1430-compatible bridge keeps the NT 4.0 box alive. | Adds a moving part; gateway firmware must be supported. |
For the bridge scenario, verify that the virtual NIC presented to NT 4.0 supports the SIMATIC NET transport that the vendor's program calls. The CP 1613 ISO transport DLLs in SIMATIC NET PC Software versions 6.x and 7.x have been observed to load inside a Windows 2000/XP compatibility layer under VirtualBox bridged networking, but they will not install on NT 4.0 itself once the original installation media is lost. Strategy C sidesteps that by terminating the legacy protocol at the gateway.
8. PC Driver and Application Interface Options
The PC application is typically built against one of these interfaces. Identifying the right one dictates what the S7-1500 must emulate.
| PC interface | Typical product | What the S7-1500 must do |
|---|---|---|
| Siemens SAPI-S7 / S7-DLL | SIMATIC NET PC Software < 7.x | Expose a SEND/RECEIVE-fetchable data block via ISO-on-TCP, TSAP and DB layout matching the original S5 mapping. |
| Siemens S7-1613 / S7-1413 driver | CP 1613 / CP 1413 firmware, SIMATIC NET | Same as above, with a CP 1613-compatible ISO transport. The S7-1500 must respect the original DB number(s) and offset(s) consumed by the PC. |
| OPC DA (legacy) | SIMATIC NET OPC Server on the IPC | S7-1500 must support S7 communication (connection type 1) in addition to ISO-on-TCP, because OPC DA on the IPC reads tags via S7 protocol. |
| Custom Winsock / RFC 1006 socket | Vendor's own EXE | Need access to the source or a packet capture. S7-1500 just has to talk ISO-on-TCP — the byte stream is interchangeable with the CP 1430. |
For the common case where the IPC uses a Siemens S7-1613 driver and the application reads/writes DB 100 starting at byte 0, the S7-1500 must:
- Re-create DB 100 with the same byte layout (roll ID, position, weight, scan time, etc.).
- Expose it through an ISO-on-TCP connection whose TSAPs match the CP 1430 configuration that the S7-1613 driver was originally pointed at.
- Accept BSEND/BRCV-style fetch requests that the driver issues. The S7-1500
TSEND/TRCVpair behaves identically from the wire's point of view.
9. Step-by-Step Migration Procedure
The sequence below assumes a phased cutover in which the S7-1500 is commissioned on the bench, the S5 + CP 1430 remains in production, and a single Ethernet cutover is performed at the end.
-
Capture the S5 baseline. Document the COM 1430 connection database (export to
*.dat), print the S5 program structure (which DBs are accessed by FB 244/245), and capture a Wireshark trace of one full roll-scan cycle to record the exact ISO-on-TCP payload. - Build the S7-1500 program. Translate the S5 STEP 5 logic into SCL / LAD / FBD in TIA Portal V18 (or the project-standard version). Re-create the consumed data blocks (e.g. DB 100) with the same byte layout that the PC driver expects.
-
Configure the ISO-on-TCP connection. In Devices & Networks, add a new ISO-on-TCP connection on the S7-1500 PROFINET interface. Set the Connection type to ISO-on-TCP, assign a unique Local TSAP (e.g.
01.01), and enter the Remote TSAP (the IPC's TSAP, e.g.02.02). Leave Remote address blank for the bench phase; it will be set to the IPC's IP after the cutover. -
Implement TCON / TSEND / TRCV. Use the SCL template in Section 5. Allocate a connection ID (e.g. 1) and an instance DB per instruction.
TCONgoes into the startup OB (OB100) so the connection is established on warm restart. -
Bench-test with a loopback PC. Connect the S7-1500 to a Windows engineering station running the same SIMATIC NET PC Software version that the IPC uses. Use the SIMATIC NET Connection Diagnostics tool to verify the ISO-on-TCP connection establishes, and use a small RFC 1006 client (e.g.
tsap-testfrom the Siemens example collection) to send/receive the same payload length as the original roll-scan data. -
Mirror the S5 as an active partner for the bench test. Keep the S5 + CP 1430 in the cubicle, change the COM 1430 remote IP to the bench S7-1500's IP, and confirm that the S5 opens the ISO-on-TCP connection to the S7-1500 and the roll-scan data is visible in the S7-1500
TRCVinstance DB. - Cut over the PC side. Reconfigure the IPC's CP 1613 / driver from the old S5 IP to the new S7-1500 IP. If the IPC is being replaced (Strategy A), perform the same reconfiguration on the new IPC. If the IPC is being virtualized (Strategy B), reconfigure the bridged NIC and re-install the SIMATIC NET transport in the guest.
-
Validate end-to-end. Run three full roll cycles through the conveyor and confirm the tracking application prints the correct roll ID, position, and weight. Compare the S7-1500
TRCVpayload against the Wireshark capture from step 1. - Decommission the S5 + CP 1430 only after step 8 is signed off. The CP 1430 is end-of-life; spare units should be kept in the warehouse for legacy spares in other cells.
10. Verification, Commissioning, and Troubleshooting
Commissioning checks at cutover:
| Check | Tool | Pass criterion |
|---|---|---|
S7-1500 TCON STATUS |
TIA Portal online > watch table on TCON_DB
|
STATUS = 0000H after DONE = TRUE; ERR = FALSE. |
| ISO-on-TCP TPKT visible | Wireshark capture on the S7-1500 PROFINET port with display filter tcp.port == 102 && tcp.len > 0
|
Each TPKT frame starts with byte 0x03 0x00 0x00 ?? 0x??; the first variable-part octet is the S5's TSAP byte. |
| PC driver connection status | SIMATIC NET Configuration Console > Diagnostics | Connection state = Established; error counters = 0. |
| Application health | Roll-tracking app > status / log | No transport errors during a 30-minute production run. |
| Data consistency | Compare S7-1500 TSEND payload byte-for-byte with the Wireshark capture from the legacy S5 session. |
Identical payload structure (length, field order, ASCII codes for roll ID). |
Common faults and remedies observed on paper-mill retrofits:
| Symptom | Likely cause | Fix |
|---|---|---|
TCON returns STATUS = 80C4H (timeout) or 80B5H (already connected) |
Both partners configured active (or both passive); duplicate connection ID across the project. | Mirror the S5's legacy role. Use a unique connection ID per ISO-on-TCP connection. |
| PC driver logs "connection refused" / Winsock error 10061 | Wrong remote IP, wrong port, or PC firewall (Windows XP SP2+ blocks inbound ISO-on-TCP by default). | Verify the IP, set the firewall to allow tcp/102, or temporarily disable the firewall to isolate. |
TRCV STATUS = 8088H (length error) |
PC application sends a frame longer than the configured LEN; the S7-1500 ADHOC mode was not selected. | Set TRCV to ADHOC (LEN = 0) and check RCVD_LEN in the instance DB. |
| PC application receives garbage or no data, but ISO-on-TCP connection is up | DB number or offset mismatch; PC reads from DB 100, S7-1500 sends from DB 200. | Re-create DB 100 in the S7-1500 with the original layout; do not rename or renumber. |
| Connection establishes but drops after ~30 s | Keep-alive / S7 connection keepalive on the S7-1500 does not match the PC driver setting. | Match the keepalive time in the S7-1500 PROFINET interface properties to the driver's expected interval (commonly 30 s). |
Wireshark shows TPDU with TSAP 0x54 0x53 0x41 0x50 (ASCII "TSAP") |
TSAP was entered as the ASCII string "TSAP_01.01" instead of the raw bytes 0x01 0x01. |
Re-enter the TSAP as raw bytes in the TCON_IP_V4 tag. |
| Random timeouts only at shift change | Switch port-security shutting the new MAC down after a configured period. | Pre-register the S7-1500 PROFINET MAC in the switch port config, or disable port-security on the affected ports. |
11. Frequently Asked Questions
Is the wire format from a CP 1430 TCP identical to that of an S7-1500 PROFINET interface running ISO-on-TCP?
Yes. Both sides implement ISO 8073 class 4 transport over TCP (RFC 1006) on port 102. The TPKT header, TPDU format, and the TSAP-based addressing are the same, which is why the existing PC driver continues to read and write the same payload after the migration. This is the basis of the Siemens application note 109482475.
Can the Windows NT 4.0 roll-tracking program be kept unmodified while the S5 is replaced by an S7-1500?
In most cases, yes — provided the program is a SEND/RECEIVE consumer of a known DB layout and uses the same TSAPs. The PC driver talks ISO-on-TCP, which is protocol-stable. The program itself does not need to be re-compiled. The long-term risk is the Windows NT 4.0 host, which is out of support; the program should be migrated to a virtualized NT 4.0 guest, a current Windows IPC with the same SIMATIC NET PC Software, or a translation gateway.
Which S7-1500 instructions replace the S5 FB 244 (SEND) and FB 245 (RECEIVE) used with the CP 1430?
Use TCON for connection setup, TSEND for transmission, and TRCV for reception. The connection type must be ISO-on-TCP (connection type 12, B#16#0C), and the TSAPs in the TCON_IP_V4 tag must match the values the CP 1430 used on both sides.
What TSAPs should I assign on the S7-1500?
Reuse the legacy TSAPs from the S5 COM 1430 database wherever possible. The S7-1500's local TSAP is the S5's old remote TSAP, and the S7-1500's remote TSAP is the IPC's old local TSAP. Enter them as raw bytes (e.g. 0x01 0x01) rather than as the ASCII string "TSAP_01.01"; the wrong encoding is a common source of silent connect failures.
Does the S5 have to remain in service during the S7-1500 cutover?
Not necessarily, but a phased cutover is recommended. Keep the S5 + CP 1430 active, change its COM 1430 remote IP to the new S7-1500's bench IP, and validate end-to-end on the bench. After a clean Wireshark capture and a production dry run, perform the single Ethernet cutover to the S7-1500 and decommission the S5. This minimises production downtime and gives a clear go/no-go gate before the legacy controller is powered off.