Skip to Content
On this page

Siemens PPI

Use this driver for the RS-485 PPI ports of S7-200 CPU 221/222/224/224XP/224XPsi/226. The port must operate in PPI mode. Use S7 master for S7 Ethernet; a transparent TCP converter does not turn PPI into S7 Ethernet.

Compatible devices and models

Device series / model examplesConnection requirements
S7-200 CPU 221, CPU 222, CPU 224, CPU 224XP/224XPsi, CPU 226Use the CPU RS-485 PPI port or a link that transparently carries PPI. Match station and serial settings and select PPI mode on the port. S7-1200/1500 Ethernet ports do not use PPI.

Configure the CPU first

  1. Connect with STEP 7-Micro/WIN and retain the current project and system block. Open View → Component → System Block → Communication Ports. Check Port 0/1, set a unique PLC address and bus rate, then download the system block. The classic manual gives factory values of address 2 and 9.6 kbit/s; use online settings for an existing installation.

    Siemens Micro/WIN system block with PPI address and baud rate

  2. Open Communications, select the actual PC/PPI interface and COM port, and refresh to find the CPU. PC local and PLC remote addresses differ: the manual uses PC 0 and CPU 2. Release the COM port from Micro/WIN before the gateway opens it.

    Siemens Micro/WIN Communications with PC/PPI cable, COM port and CPU refresh

  3. Use an RS-485 interface/converter that transparently carries PPI frames. Wire the CPU connector according to its manual, including polarity, reference, shielding and termination; it is not RS-232. A USB/PPI cable that exposes only the PG/PC driver is not automatically a transparent COM interface.

  4. Ensure the PLC program does not change the port to Freeport or another protocol. With a serial server, configure transparent transfer and matching serial parameters. A TCP connection to the converter alone does not prove a PLC response.

The engineering screenshots are Siemens figures from the S7-200 System Manual , printed pages 10 and 212. Menus/rates depend on the CPU and software version.

Gateway channel and device

Under Development Configuration → Collection Configuration, add a SerialPort channel. The example shows COM1 / 9600 / 8 / Even / 1; replace COM1 with the converter’s port and match the system block. Initial parity may be None, so check explicitly.

PPI serial channel with 9600 baud and even parity

ChannelRequired settings
SerialActual COM port, matching baud rate and 8E1. Only one master application may own the port. DTR/RTS depend on the converter.
TCP clientRemote IP/port of the transparent serial server, rather than S7 port 102. Configure its serial side for PPI.
TCP serverLocal listener for a remote serial gateway. Match DTU identity when the connection mode requires it.

Create a device, select Siemens PPI, and associate the channel. Interval 1000 means milliseconds; account for point count and frame/response time on a slow/shared bus.

PPI device selection and associated serial channel

Plugin properties

PPI station, pack size and connection properties

Scroll down in Plugin properties to configure scheduling and data format. The figure keeps the defaults: timeout 3000 ms, frame delay 0 ms, retries 3, write/read ratio 3, write priority off, string byte reversal off, and ABCD.

Lower PPI properties: scheduling, string byte reversal and ABCD

PropertyMeaning and configuration
PLC station numberDefault 2; use the CPU remote address, not the PC local address. The gateway represents 0–255, while the classic CPU system-block range is 1–126.
Maximum pack sizeDefault 200 bytes, limiting merged continuous reads rather than variable count. Reduce for constrained CPUs/converters. Different stations, areas and blocks cannot form one continuous range.
DTU IDMatches the remote link in the applicable TCP server/DTU mode. Leave empty for direct serial; it is not the PPI station.
Heartbeat content / HexDefault TCP server DTU mode only. Empty inherits the channel; nonempty overrides it. Hex off matches UTF-8 text; on matches hexadecimal bytes.
Read/write timeoutDefault 3000 ms per protocol request. Check wiring, station and frame settings before increasing.
Pre-frame delayDefault 0 ms; adds delay before sending. Increase only when required, as it lengthens the cycle.
Retry count / duty cycle / write priorityDefaults 3, 3, off. Retries extend offline waits; duty cycle schedules reads during repeated writes; write priority cancels a read to allow writing. See collection configuration.
Data orderDefault ABCD; match PLC WORD/DWORD/REAL representation. Per-address data order may override it.
Reverse string byte/wordDefault off; swaps string bytes within words. Enable only for that actual character layout. Numeric conversion uses data order.

Variables and address editor

Monitor an approved location such as VW100 = 1234 in Micro/WIN. In the gateway use address V100, type Int16 and array length 0. Micro/WIN’s W describes width; the gateway takes width from the data type, so do not enter VW100 as the protocol address.

PPI variable mapping VW100 to V100 and Int16

Open Field editor, confirm and fill back, then save in the parent variable dialog. Address validation alone sends no PLC request.

PPI editor with area, byte offset, bit and station override

FieldRule
AreaV, DB, I, Q, M, S, SM, AI, AQ, T, C or SYS. Existence and write permissions depend on the CPU memory map.
OffsetDecimal byte offset for ordinary memory; V100 + Int16 occupies bytes 100–101. T/C use item indices rather than V-memory byte offsets.
BitBoolean .0–.7, for example M10.3. The generic input limit does not replace PPI validation. T/C reject bit suffixes and Boolean reads. Leave unset for whole numeric values.
Station overrideUnset inherits the device. Set for one variable, for example s=3;V100, on the same physical bus/rate.
DB numberDB area only: block 1, offset 100 gives DB1.100, corresponding to V100. The editor does not imply arbitrary DBs exist on an S7-200.
Data-order overridedata=ABCD/BADC/CDAB/DCBA; affects this variable only.
Encoding / string byte lengthMatch the buffer, for example V200;len=8;encoding=ASCII. Eight raw bytes, not eight characters. Select the data start if the PLC stores a string header.
BCD / variable stringUse only for a documented coded-number/string layout. See common register options for options and vsl rules.
PLC pointGateway configurationComparison
M10.3M10.3 / BooleanBit 3 of byte 10.
VW100 = 1234V100 / Int16Signed 16-bit value 1234.
VD104 declared REALV104 / FloatFour-byte IEEE 754 value.
VW100, VW102, VW104V100 / Int16 / array length 3Three words, six bytes.

Supported types: Boolean, Byte, Int16, UInt16, Int32, UInt32, Float and String. Start with read-only permission for inputs/system status. Gateway read/write permission does not grant access prohibited by the CPU.

Confirm communication

Enable the actual channel/device and compare a known value with the Micro/WIN status table using the same type and radix. Collection time must advance; change time can remain constant. In Protocol Debug → Read/Write, start with V100 / Int16 / quantity 1, then add arrays and other areas. Messages distinguishes no response from a PLC error.

  • Port-open failure: release Micro/WIN/other masters and verify COM assignment.
  • No responses: check the downloaded system block, PPI mode, station, rate, even parity, RS-485 polarity and transparent mode.
  • Only some points fail: check memory boundaries, permissions and length; reduce packing to isolate long-frame failures.
  • Wrong values with successful responses: compare raw bytes, offset, type and data order.