How-to
How Vijeo Citect SCADA communicates with an S7-300 PLC
Short answer
Vijeo Citect reaches an S7-300 over its native S7 driver — MPI, Profibus and TCP/IP in version 7.0 — which installs with Citect, or through a SIMATIC NET OPC server built as a PC station in the STEP 7 project and proven item by item in OPC Scout before any Citect tag points at it. On a machine with a CP 343-1, the native TCP/IP driver needs no Siemens PC software at all.
On this page
Vijeo Citect talks to an S7-300 down one of two routes, and the choice is made in the driver list, not in the cabinet. Route one is the native Siemens S7 driver, which installs with Citect itself: version 7.0 offers MPI, Profibus and TCP/IP to the S7-300, and on Ethernet the PC side needs nothing beyond a standard network card and a CP 343-1 in the rack. Route two is an OPC server — SIMATIC NET configured as a PC station, proven item by item in OPC Scout, then read through Citect's OPC client driver — and it is the route you take when your release lists no driver for your CPU. Both routes end in the same Express I/O Device Setup wizard.
Choose the route before you buy anything #
Open the Express I/O Device Setup wizard from Communications in Citect Explorer and read the driver list for your release — that list decides the route. On Vijeo Citect 7.0 the S7 driver lists MPI, Profibus and TCP/IP for the S7-300 and installs with the product, so nothing is bought for the Citect side. What the link type does decide is PC hardware and Siemens PC software:
| Link | PC hardware | PC software | PLC side |
|---|---|---|---|
| MPI or Profibus | Siemens CP 5611 PCI card | SIMATIC NET PB SoftNet-S7 with licence, even alongside the Citect driver | CPU MPI/DP port |
| Industrial Ethernet | Standard Ethernet NIC | None beyond Citect for the native S7 TCP/IP driver; SIMATIC NET PC software only for the OPC route | CP 343-1 or an Ethernet-capable CPU |
The decision: a machine that already carries a CP 343-1 goes on the native S7 driver over TCP/IP — the one combination on that table with no Siemens PC software licence to buy. MPI or Profibus to the CPU port costs the CP 5611 card and the PB SoftNet-S7 licence either way.
When the driver list has nothing for your CPU, every SCADA package of this generation still carries an OPC client — Citect 7.1 shows an external device type named OPC — so the route is an OPC server, and the server is the part you buy. Read its datasheet for two lists before paying: the protocols it supports (S7 OPC servers exist that cover only MPI, or only Ethernet) and the communication cards it supports, because an OPC server written for Siemens PLCs is not guaranteed to run with Siemens CP cards. SIMATIC NET is the Siemens product and the one this article commissions; third-party S7 OPC servers are bought against those same two lists.
Commission the SIMATIC NET PC station #
The sequence below was written against STEP 7 V5.x, SIMATIC NET PC software V6.4 (2006) and Citect V6.0; later releases move the menus but keep the same objects. If the STEP 7 side is new to you, what STEP 7 is in a PLC project covers which edition an S7-300 job needs.
- In SIMATIC Manager, create a project (the reference used the name
VIPAOPC) and insert a SIMATIC 300 Station. - In Hardware, place the Rail from RACK-300, put the CPU in slot 2 (reference: CPU 318-2, 6ES7 318-2AJ00-0AB0, V1.2), then the CP 343-1, 6GK7 343-1EX10-0EX0, V2.0, in its slot. On the CP, set IP address 192.168.0.29 and subnet mask 255.255.255.0. Save and compile.
- Set the PG/PC interface to the TCP/IP entry bound to the PC's Ethernet adapter, then download the station to the PLC.
- Insert a SIMATIC PC Station. In slot 1 place IE General and give it exactly the address of the real network card in the PC. In slot 2 place the OPC Server (SW V6.1 in the reference build). Save and compile.
- Open Configure Network, right-click the OPC Server and choose Insert New Connection to the CPU. Keep the default Local ID — the reference kept
S7 connection_1— or shorten it; a shorter Local ID shortens every OPC item name you later paste into Citect. - Save, compile, and download to the PC station with Selected Stations.
- Run Station Configurator. The configuration must come up with no Stop entries. A Stop that survives a restart of the PC is almost always the IE General address not matching the network card.
The OPC server can run on the Citect PC itself — the usual arrangement on a one-machine project — or on its own computer in the cabinet next to the PLC; when it runs separately, an industrial mini PC is the natural host for that job.
Proving bit M0.1 through OPC Scout on a CPU 318-2 at 192.168.0.29 #
The inputs #
- CPU 318-2, 6ES7 318-2AJ00-0AB0, V1.2, in slot 2, with CP 343-1, 6GK7 343-1EX10-0EX0, V2.0, at 192.168.0.29 / 255.255.255.0 — the reference build in the sequence above.
- STEP 7 V5.x, SIMATIC NET PC software V6.4, Citect V6.0 — the versions that sequence was written for.
- Connection Local ID
S7 connection_1; server ProgIDOPC.SimaticNET; OPC Scout group namedVIPAOPC. - The bit to prove: memory bit M0.1.
The rule #
Two checks decide the test before any value is read. First, the PC's address and the CP's address must land on one subnet once the mask is applied — mask each octet with a logical AND. Second, the OPC item name is assembled, not typed from memory: the connection's Local ID in square brackets, then the area letter, the data type letter, the byte and the bit.
The arithmetic #
Subnet check on the CP address, octet by octet:
192 AND 255 = 192
168 AND 255 = 168
0 AND 255 = 0
29 AND 0 = 0
The result is network 192.168.0.0, so the PC's network card and the IE General object both need an address from 192.168.0.1 to 192.168.0.254 — anything but 192.168.0.29, which the CP already holds — and the two entries must carry the same address.
Item assembly: S7:[ + S7 connection_1 + ] + M + X + 0 + .1 gives S7:[S7 connection_1]MX0.1. Decoded, M is the memory area, X a bit, 0 the byte and 1 the bit — M0.1 in PLC addressing.
The test and the decision #
Open OPC Scout, expand Local Servers and double-click OPC.SimaticNET — that ProgID is the server name you will give Citect. Create a group, browse \S7: → S7 connection_1 → objects → M → [New Definition], pick data type X, and enter byte 0, bit 1. Move the generated item across and watch its value and quality.
The item must read Good quality and follow the PLC. Good means the CPU, the Ethernet link, the PC station and the OPC server are all proven, and whatever is still broken lives on the Citect side — continue to the next section. Anything but Good quality means stop: the fault is in the connection object, the download or the addressing, and it will not be fixed inside Citect.
Point the Citect I/O device at the OPC server #
In Citect Explorer, create the project, open Communications and run Express I/O Device Setup — the same wizard where you would be setting the Modbus slave ID for a Citect I/O device on a different driver. Choose External I/O Device, then the OPC driver, and give the server as OPC.SimaticNET, exactly the ProgID OPC Scout listed under Local Servers. Confirm with your distributor what the OPC client driver needs on the licence side of your release before the tag database is built.
Each tag address is the string OPC Scout generated — copy it from the item's properties, never retype it. One wrong bracket or stray space produces a tag that never updates while its neighbours on the same device stay healthy.
Read the failure off the screen #
When the page shows the comms marker instead of values, sort the symptom before touching the PLC:
| Symptom | Fault layer | First move |
|---|---|---|
| Every tag of one I/O device in comms error | Driver, I/O device or physical link | Driver status, then ping the CP 343-1 |
| One tag dead, its neighbours healthy | Tag address or data type | Compare the tag with the OPC Scout string |
| Everything fails only after a PC restart | OPC server not started | Station Configurator — a Stop entry means the configuration did not load |
| Values read but writes do nothing | Access rights or a write-protected area | Write the same item from OPC Scout |
If OPC Scout reads and Citect does not, the fault is in the Citect I/O device or the tag; if OPC Scout fails too, Citect was never the problem. On a station that talks to several PLCs and reaches only one, work the PC-station configuration first — troubleshooting a SCADA PC station that reaches only one S7-1500 walks that case. And prove every write from OPC Scout before any Citect tag is allowed to write: a SCADA write lands in the running process, so test it where you can watch it land.
Questions asked
Does Vijeo Citect include the Siemens S7 driver, or do I buy it separately?
The S7 driver installs with Citect itself, so there is nothing extra on the Citect side for MPI, Profibus or TCP/IP to an S7-300 on a release that lists them, such as 7.0. The PC-side hardware is a separate matter: MPI and Profibus still need the CP 5611 card and a PB SoftNet-S7 licence. When no driver exists for your CPU, the OPC route is the fallback, and the OPC server is the part you buy.
Can I use PLCSIM instead of the real S7-300 for this test?
Not for the commissioning test. PLCSIM supports no external communication, so neither the Citect driver nor a SIMATIC NET connection reaches it over the network. A local bridge is possible: the S7ProSim API can read the outputs and write the inputs of the simulated CPU, and a custom program can copy those values into an OPC server. That is a development aid, not a substitute for proving the link against the physical CPU and its CP card.
Station Configurator shows Stop after the download. What do I fix first?
Compare the IP in the PC station's IE General object with the address of the actual network card. They must be identical, and both must sit on the same subnet as the CP 343-1. Correct the object, recompile, download again and restart the PC. A Stop that survives the restart is almost always that mismatch; if the entry is healthy, check that the download was made to Selected Stations.
How exactly do I write the OPC item name into the Citect tag?
Do not type it from memory. Double-click the working item in OPC Scout and copy the generated string exactly — in the reference build, S7:[S7 connection_1]MX0.1 for bit 1 of memory byte 0. The connection name in brackets, the area letter, the type letter, the byte and the bit must all match what you defined, or the tag reads nothing while other tags on the same device stay healthy.
Does the same route reach an S7-1200?
On Vijeo Citect 7.2 the S7-1200 was absent from the driver list, so the OPC server route carried that case. On S7-1200 firmware V4 and later, permit PUT/GET access in the CPU properties and keep any block you address absolutely as non-optimized, or a connection that comes up will still fail its reads. The S7-300 commissioning sequence itself does not change.