Siemens S7
Overview
Section titled “Overview”Talks to Siemens S7-300/400/1200/1500 over S7comm with absolute addresses. PLCSIM Advanced can be reached over this route too.
Set up and parameters
Section titled “Set up and parameters”| Parameter | Example |
|---|---|
| IP address | 192.168.1.50 |
| Rack / Slot | 0 / 1 |
| Connection timeout | 10000 ms (default) |
| Symbol table | C:\Projects\Line1\Tags.sdf (optional) |
Addresses are absolute, DB-style: DB1.DBX0.0 for a bit, DB1.DBW2 for a word, DB1.DBD4 for a real. Values are read big-endian, once per update cycle.
With a symbol table set — a TIA Portal .sdf export on the gateway PC — Browse lists its symbols with address, type and a direction derived from the area (I/E is written by the viewer; Q/A, M and data blocks are read), so signals can be selected instead of typed. Without it, signals are entered manually.
On the PLC side, the CPU must allow PUT/GET communication access, as required by any third-party S7 client. The addressed data blocks must have optimized block access disabled. S7 communication cannot address optimized blocks by absolute offset.
Create or import signals
Section titled “Create or import signals”- Manually. Enter absolute addresses:
DB1.DBX0.0(bit),DB1.DBW2(word),DB1.DBD4(real). The dialog prefills the direction from the area letter. - Browse. Only with a symbol table. Set a TIA Portal
.sdfexport on the gateway PC in the interface settings; Browse then lists its symbols with address, type and a direction derived from the area. The controller itself is not browsed. Without a symbol table, enter signals by hand or import a tag table. - File import. Import tag table… in the ⋮ menu of the S7 card imports a Siemens tag export in the browser and pushes it to the gateway. This is the usual path for controllers with hundreds of tags.
- From the model. When the model already has its PLC signals, Addresses → Fill from controller… in the signal-mapping section of the CONNECT panel previews matches by exact name against what Browse finds in the symbol table and then writes the addresses. Addresses → Import address table… takes a CSV or TSV with
name;address[;dataType[;topic]]rows. New signals take direction and type from the same-named model signal; signals that already exist keep their configured type. See Configuring interfaces.
How direction, data types and write access are decided is explained in Common concepts and Configuring interfaces.
See also
Section titled “See also”- Common concepts — text signals, direction, write access, tracking signals
- Configuring interfaces — adding signals, direction and write access
- All supported interfaces
- Troubleshooting — connection and signal problems