IMDHMIControls LibraryShop main store

How-to

Citect SCADA to S7-200 over PPI with the SIMPPI driver

SCADA and data logging Published 8 min read

Short answer

Connect Citect to an S7-200 over serial PPI by creating the cluster and all four server records, then a board and port on the Windows COM number behind the PPI adapter, then an I/O device on protocol SIMPPI at the CPU's station address. The driver reads bytes and words only: enter each Boolean as its parent byte, prove the link on a known byte before the process tags, and keep a CP5611 card on its OPC route.

On this page
  1. Pick the path: COM port or CP5611
  2. Create the cluster and every server record
  3. Add the board, the port, and the I/O device
  4. Mapping the bit V0.0 through byte VB0
  5. Prove the link on a byte and a word
  6. When the device will not come on scan
  7. Questions asked

Connect Citect to an S7-200 over serial PPI with the SIMPPI driver: build the cluster and all four server records first, put a board on the Windows COM port behind the PPI adapter, and set the I/O device to protocol SIMPPI at the CPU's station address. Handle bit tags from the start: the driver reads bytes and words, so a Boolean such as V0.0 goes in through its parent byte VB0 — the bit syntax itself is rejected with an address error. Prove the whole path on one known byte before you build the real tag set, and keep a CP5611 card on its separate OPC route. The steps were worked out on Vijeo Citect 7.2 SP4, versions from 7.20 SP4 onward are the recipe's home ground, and the installed driver help is the authority on every field name.

Pick the path: COM port or CP5611 #

The SIMPPI recipe needs the PPI link to appear to Windows as a COM port. A USB PPI or RS232 PPI adapter does exactly that: it installs a virtual COM port on the PC side and speaks PPI to the PLC. Open Device Manager, note the COM number the adapter received, and check that the Citect installation includes SIMPPI — the driver set is chosen at install time, and a protocol absent from the I/O device list means setup has to be rerun with the driver added.

A CP5611 never shows up as a COM port. It hands the PPI bus to Siemens communication software, which can expose the PLC through an OPC server; Citect then connects as an OPC client and never touches the serial line itself. Build that side first, in this order: install the Siemens software with its S7-200 support, get its OPC server reading a known V-memory value, and only then create an OPC-type I/O device in Citect. A PPI OPC driver such as the TOP Server S7-200 serial driver fills the same role where no Siemens stack is installed. Do not expect to type VB addresses into that path either — an OPC device reads whatever item names its server publishes.

The decision: an adapter that gives you a COM number takes the SIMPPI steps below; a CP5611 takes the OPC route, and mixing the two record sets produces a device that never comes on scan. Ethernet is a third road entirely, with its own protocol and records — connecting Citect SCADA to an S7-300 over Ethernet covers that path.

Create the cluster and every server record #

In Citect Project Explorer under Servers, create the records in this order and keep every one of them on the same cluster:

  1. Create the cluster. Name it Cluster000, or one project-specific name you reuse everywhere.
  2. Create the network address record. Name it localhost and set the address to 127.0.0.1 for an all-on-one-PC runtime, or to the server PC's own IP when the machine carries several.
  3. Create the alarm server (example name AlmSrv000) on Cluster000 over localhost.
  4. Create the report server with the same cluster and network address.
  5. Create the trend server the same way.
  6. Create the I/O server the same way — this record owns the PLC conversation.

Create all of them, including the ones the application does not use yet: the 7.2-era recipe expects a complete set, and a missing server record is a common reason a correct-looking project never brings its I/O server up. The network address names the computer running the servers and nothing else — changing it does not touch the PLC address, because the S7-200 is reached only through the I/O device created in the next section.

Add the board, the port, and the I/O device #

Read both ends before you type. On the PC side, confirm the adapter's COM number in Device Manager. On the PLC side, read the CPU's station address, baud rate and parity in STEP 7-Micro/WIN's communications dialog. A factory-fresh S7-200 port answers at station address 2 and 9600 baud with 8 data bits, even parity and 1 stop bit — but read the actual CPU, because a unit that has lived in a panel for years often carries a changed address or rate. The PLC side of a PPI link, including the same port settings seen from an HMI instead of SCADA, is its own subject: configuring the S7-200 HMI connection in TIA Portal covers it.

Then, in the Communications form of Project Explorer:

  1. Create the board: example name Board1, the serial board type the installed SIMPPI help names for a local COM port, address 0.
  2. Create the port under that board: example name Port1_Board1, number set to the actual Windows COM number, baud rate matched to the CPU port, 8 data bits, EVEN parity, 1 stop bit.
  3. Create the I/O device: example name S7_200, number 1, address set to the CPU's PPI station address, protocol SIMPPI, port name picked from the list rather than retyped so the reference matches exactly.
  4. Close every other program that could hold the COM port — the programming software above all — before you start the I/O server.
Record Field Setting
Board Name / address Board1 / 0
Port Name Port1_Board1
Port Number the Windows COM number of the adapter
Port Baud rate 9600 or 19200, matched to the CPU port
Port Data bits / parity / stop bits 8 / EVEN / 1
I/O device Name / number S7_200 / 1
I/O device Address the CPU's PPI station address, 2 from the factory
I/O device Protocol / port SIMPPI / Port1_Board1

Three numbers, three jobs: the board's address field (0 in the example) belongs to the board record, the station address belongs to the CPU, and the COM number belongs to Windows. They live on different forms and none substitutes for another; the most common dead-on-arrival link has one of them entered in the wrong place.

Mapping the bit V0.0 through byte VB0 #

Inputs, and where each comes from:

  • V0.0 — a Boolean in the CPU's V memory, the kind of tag this driver rejects with an address error at compile time.
  • VB0 — the parent byte. S7-200 V memory is byte-organized: the eight bits V0.0 through V0.7 live in byte VB0, the digit before the dot selects the byte, and the digit after it selects the bit inside that byte.
  • BYTE data type, device S7_200 and cluster Cluster000 — from the project records above.

The rule in words: SIMPPI accepts byte (VB) and word (VW) locations and has no bit syntax, so the variable tag is created at the parent byte from the inputs, typed BYTE, and the Boolean state is recovered by ANDing the byte value with a mask of 2 raised to the power of the bit digit.

The arithmetic, byte values shown in binary:

  • Mask: 2 to the power 0 = 1, binary 00000001.
  • Bit off and no neighbor set: 00000000 AND 00000001 = 00000000, result 0 — off.
  • Bit on: 00000001 AND 00000001 = 00000001, result 1 — on.
  • Neighbor on instead, V0.1 set: 00000010 AND 00000001 = 00000000, result 0 — still correctly off. The mask isolates one bit no matter what the other seven in the byte carry.

Result: one variable tag (example name by_VB0), type BYTE, address VB0, on device S7_200 in Cluster000. Its least significant bit is the Boolean; screens and expressions read the state by ANDing the byte tag with 1, and V0.0 is never entered anywhere.

Decision, with its threshold: keep the tag display-only and watch it against the programming software's status chart while you toggle the bit with the machine in a safe state. When the byte follows the change and the AND result flips between 0 and 1, both the mapping and the link are proven, and every remaining bit tag is built the same way — the byte digit before the dot becomes the tag address, and the mask is 2 to the digit after it. A byte that sits frozen while the status chart moves means the link, not the tag syntax, is at fault.

The byte tag from the example is the first proof: with the status chart open beside the runtime, change a value you control and confirm the Citect tag follows within a poll or two. Then add a second tag, type INT, at VW100 — but only if you know a word whose value you can predict from the process or read in the status chart. Read it as a signed integer: the top bit counts as a sign, so a word carrying 65535 displays as -1. That is two's-complement arithmetic doing its job, not a scaling fault.

If the CPU value changes and Citect does not, stop editing tags: port ownership, station address, baud agreement and driver presence are the suspects, and a frozen number on screen is not evidence of communication. Once the link runs in production, its loss becomes a normal operating event — a pulled connector, a failed adapter — and it deserves the same alarm treatment as any other device: creating a SCADA PLC communication alarm for link loss takes the alarm-side steps.

When the device will not come on scan #

Work the list top to bottom; the first items account for most dead links:

  • The COM port is owned by another program. The programming software, a terminal emulator or a second driver on the same port blocks the I/O server; close them and restart the server.
  • The serial settings disagree. Adapter, port record and CPU port must all carry the same rate, data bits, parity and stop bits; one set differently leaves the line silent.
  • The station address is wrong. The I/O device address must equal the CPU's PPI address, which is the factory value only if nobody has changed it.
  • The converter does not speak PPI. A plain RS-232 converter passes characters; the link needs a PPI adapter, an RS232 PPI or USB PPI unit.
  • The address was rejected at compile time. That is the bit-address case; return to the parent-byte mapping above.
  • SIMPPI never appears in the protocol list. The driver set was installed without it; rerun Citect setup, add the driver, and recreate the I/O device.

The failure timing sorts the cases: a compile-time address error points at tag syntax, silence from the first poll points at port ownership or serial disagreement, and a device that ran and then dropped points at the physical path — which is what the link-loss alarm from the previous section is there to catch.

Questions asked

Can a CP5611 card be configured with the SIMPPI driver instead?

No. SIMPPI drives a serial link that Windows exposes as a COM port, and a CP5611 never appears as one. The card hands the PPI bus to Siemens communication software, Citect connects as an OPC client of that software's server, and the I/O device's address field then holds an item name from the server's namespace, not a VB or VW address. Get the server reading a known value before you create the Citect side.

Why does Citect accept VB0 but reject a bit address on the same location?

The SIMPPI driver's address parser covers byte and word locations in S7-200 V memory and has no bit-level syntax. The bit still exists in the CPU; it is one of eight bits of its parent byte. Read the byte through the driver and test the individual bit with a mask, either in an expression in the project or in the PLC program, which keeps every tag address within VB and VW form.

What serial settings match an S7-200 PPI port?

A factory-fresh port runs 9600 baud, 8 data bits, even parity and 1 stop bit at station address 2. CPUs that have served in panels for years often carry a changed rate or address, so read the communications settings in the programming software and enter exactly what you find, on the port record, the I/O device record and the adapter itself. All three ends must match or the link stays silent.

Does a USB PPI cable change the configuration?

Only the COM number. A USB PPI cable installs a virtual COM port, and the board and port records use whatever number Windows assigned, which you confirm in Device Manager. If the number changes between reboots, the port record points at a device that no longer exists and the I/O server reports the device off scan until the record is corrected.

Are the report and trend server records really required?

For this recipe, yes. Create the cluster, the network address record and the alarm, report, trend and I/O server records even for a bare test project, all pointing at the same cluster and network address. The 7.2-era configuration expects the complete set, and an incomplete server list is a frequent cause of a project that compiles but never brings its I/O server up.

Keep reading

  • Troubleshooting

    Commissioning CP1L Host Link serial reads to SCADA

    CX-Programmer going online proves only the programming path, not the SCADA read. Set the CP1L serial port to Host Link, enter its unit number (0 to 31) as the driver's device address, match baud, data bits, parity and stop bits, prove the cable end to end, and free the computer port of other software. Read one known word before adding tags: a timeout means no valid reply arrived; a PLC protocol error proves the link works.

    SCADA and data logging

  • Troubleshooting

    Connect SCADA to an SLC 5/03 and MicroLogix 1500

    None of the three listed drivers will work: ControlLogix and CompactLogix are different controller families, and the MicroLogix 1100/1400 connection is Ethernet to models that have an Ethernet port. Your SLC 5/03 and MicroLogix 1500 LRP are serial-only, so connect through an OPC server with a serial DF1 or DH-485 driver, or a protocol-aware gateway. Put both controllers on one DH-485 network and bridge it once.

    SCADA and data logging

  • How-to

    Connecting Citect SCADA to a CP1W-CIF41 over FINS

    Yes: a CP1W-CIF41 serves Citect SCADA over FINS once the board holds its IP address, subnet mask and FINS node, and a Citect I/O Device runs the OMFINS FINS-over-Ethernet driver at the same IP, node and port. An NJ301 exposes no addresses, so AT-map the variables you need to CJ-compatible DM words before the driver can read them.

    SCADA and data logging