Prepare the PLC (TIA Portal)
These steps are only needed for a real PLC. You make these settings in the TIA Portal once. With the practice machine demo or the demo line, you need none of this.
Can the PLC be reached?
PlantBeat can only talk to a PLC that the computer or the box can reach in the network. On Windows, you check this with a ping:
In Windows, click Search, type
cmdand open the Command Prompt.Type
ping, a space and the IP address of the PLC, then press Enter:ping 192.0.2.10If you get reply lines with "time=…", the PLC can be reached. If it says "Request timed out", something in the network is not right yet: cable, address range or the routing between the networks. If in doubt, ask your IT.
You can find the IP address of the PLC in the TIA Portal in the properties of the CPU, or you ask whoever set up the plant. PlantBeat talks to the PLC over port 102. A firewall in between must let this port through.
Is PlantBeat allowed to read? The access level
In the TIA Portal, you set the access level under CPU properties → Protection & Security. What PlantBeat needs depends on the CPU:
| CPU | Setting |
|---|---|
| S7-1200 and S7-1500 without TLS | The access level must allow access without a password, for example "Full access (no protection)". PlantBeat cannot send a password to these CPUs. If the access level requires a password, no connection is established. |
| Secured S7-1500 (firmware V2.9 or later) | The CPU may have a password. You enter it in PlantBeat for the connection. PlantBeat sets up the encrypted connection (TLS) by itself, there is no switch for it. |
Tip
Optimized blocks are not a problem. PlantBeat reads symbolically, that is, by the names of the variables, just like an operator panel (HMI). You do not have to switch anything to "not optimized" and you do not need to know any addresses.
Which variables PlantBeat sees
When you select values, PlantBeat shows the symbol tree of the CPU. As of version 1.11, the switch "HMI-visible variables only" hides values that are not marked "Visible in HMI engineering" or not "Accessible from HMI/OPC UA/Web API" in the TIA Portal, for example internals of technology objects. If a value should appear in PlantBeat, set these checkmarks on the variable in the block.
Secured S7-1500: the CPU certificate
As of version 1.11, PlantBeat checks the certificate of the CPU on a secured S7-1500 before it sends the CPU password. You confirm the certificate once on the first connection, in the "PLC certificate" window. If the certificate changes later, recording stops until you confirm the new certificate.
"Legacy" mode: only for S7-300, S7-400 and LOGO! 0BA8
You always connect S7-1200 and S7-1500 symbolically. For this, you do not change anything in the communication settings in the TIA Portal, and you do not switch off optimized access on any block.
You only need "Legacy" mode for older PLCs that do not provide names: S7-300, S7-400 and LOGO! 0BA8. You then add the variables in PlantBeat with addresses, that is, memory area, DB number and offset. How to do that is described in S7-300, S7-400 and LOGO! via addresses.
In "Legacy" mode, PlantBeat also asks for rack and slot. A wrong slot means: no connection. Common values are:
| 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 |