S7-300, S7-400 and LOGO! by address
Older PLCs do not provide the names of their variables. PlantBeat reads them in "Legacy" mode by address. This applies to:
- S7-300
- S7-400
- LOGO! 0BA8
You do not connect S7-1200 and S7-1500 this way. You always connect them symbolically, see S7-1200 and S7-1500 symbolic.
Note
In "Legacy" mode, the connection is never encrypted and has no certificate. The PLC should therefore be in an isolated plant network.
Create the connection
In the connection wizard, choose the manufacturer Siemens S7 and enter a name and IP address.
Choose the CPU type: S7-300, S7-400 or LOGO! 0BA8.
Mode: "Legacy".
Enter Rack and Slot:
CPU Rack Slot S7-300 0 2 S7-400 as in the hardware configuration as in the hardware configuration LOGO! 0BA8 does not matter does not matter A wrong slot means: no connection.
Test connection, then Next ›.
Create variables by address
In step 2, the area is called "Create tags manually (byte offsets)". With Add tag you create one row per variable:
| Field | Meaning |
|---|---|
| Memory area | Data block, Input (I), Output (Q) or Bit memory (M) |
| Name | any name, must be unique within the connection. Only for the Data block memory area. |
| DB | number of the data block, from 1. Only for the Data block memory area. |
| Offset | byte address, from 0 |
| Type | Bool, Byte, Word, DWord, Int, DInt, Real or String |
| Bit | only for Bool, 0 to 7 |
| Length | only for String |
Example: a Real value in data block 10 starting at byte 4 is memory area Data block, DB 10, offset 4, type Real.
A few rules:
- Inputs and outputs are read only.
- For inputs, outputs and bit memory, only Bool, Byte, Int, Word, DInt, DWord and Real are allowed.
- If two rows have the same address, the wizard reports them as "Duplicate tags".
- Remove row deletes a row.
Without any rows, only the connection is saved. In step 3 you set name, unit, scaling and statistics as for any connection, see Select values.
Practice without a PLC
The practice machine (address demo) also answers addresses. This lets you practice "Legacy" mode without hardware:
In the connection wizard, choose the manufacturer Siemens S7, IP address
demo, CPU type S7-300 and mode "Legacy".In step 2, create rows with Add tag, for example:
Memory area Offset Bit Type Value of the practice machine Input (I) 0 0 Bool Emergency stop circuit closed Input (I) 0 1 Bool Safety door closed (open for 10 seconds every 2 minutes) Input (I) 64 – Int Pressure as raw analog value Output (Q) 0 0 Bool Main motor activated Output (Q) 0 1 Bool Heater activated Bit memory (M) 0 0 Bool Manual mode, writable Bit memory (M) 10 – Int Auxiliary setpoint, writable Bit memory (M) 20 – DInt Piece counter Go to step 3 with Next › and save with Save & continue.
"Legacy" mode does not work with the address demo-linie. The demo line needs symbolic access.
What does not work in "Legacy" mode
- No symbol tree and no search by name. You find the addresses in the PLC program.
- No encryption and no CPU password.
- A LOGO! has no diagnostic buffer.