First connection
You set up new connections in the connection wizard in three steps: Connection, Variables and Selected variables. Only a name and the address of the PLC are required. To add a connection, you need the Administrator role.
Tip
No PLC at hand? Enter demo as the address. You get a simulated machine with changing values such as speed, part counter and temperatures, and you can try everything, including writing. The practice machine does not need a license. You get a whole line with ready-made dashboards with the demo line.
Open the wizard
In the navigation, open "Connections" and click New connection. If there is no connection yet, the start page also takes you there: the "Getting started" card has the button 1. Add PLC connection.
The window "New PLC connection — step 1 of 3" opens.
Step 1: Connection
- Under "Manufacturer", Siemens S7 is selected for S7 PLCs. For a Beckhoff PLC, see Beckhoff TwinCAT 3.
- Name: any name you like, for example "Machine 1".
- IP address: the address of the CPU, for example
192.0.2.10. A host name (the name of the CPU in the network) also works. - CPU type: for example S7-1500, S7-1200, S7-300 or LOGO! 0BA8.
- Mode: "Symbolic" for S7-1200 and S7-1500. "Legacy" only for older PLCs without names (S7-300, S7-400 and LOGO! 0BA8), where you add the variables with addresses.
- Interval (ms): how often PlantBeat reads. The default is 1000 ms.
- Password (optional): only for a secured S7-1500 with a CPU password.
- Read only: Set this checkmark if PlantBeat should never write to this PLC. Controls and record fetches with a done signal are then blocked.
Rarely used settings are under Advanced (optional): port, acquisition type ("Polling (interval)" or "On change") and latitude and longitude for the map.
Click Test connection. If it works, "Connection successful" appears. If the PLC does not respond, PlantBeat names the reason, for example "No connection to … Check ping, protection level/password and port …". What to check then is described in Prepare the PLC (TIA Portal).
Note
With a secured S7-1500, the "PLC certificate" window opens on the first test. Check the certificate and confirm it. Only then does PlantBeat send the CPU password.
Click Next › to go to the next step.
Step 2: Variables
PlantBeat now reads the symbols of the PLC and shows them as a tree: data blocks, inputs, outputs and memory bits.
- With Search variable … you find values quickly, for example "Speed".
- The switch HMI-visible variables only hides values that are not released for HMI in the TIA Portal. Selected values stay visible.
- Tick the values that you want to see and record.
Selected variables are recorded with the default settings. You can change this in step 3.
In "Legacy" mode, there is no tree. There, you add each variable as its own row with Add tag: memory area (data block, input, output or memory bit), offset and type, for a data block also name and DB number, for Bool also the bit, for text the length. Inputs and outputs are read-only.
Step 3: Selected variables
On the left is the list of selected values, on the right the settings of the value you clicked:
- Name, Unit, Scaling: The display name appears in widgets, history and export. It does not change the recording. Scaling calculates raw value × factor + offset.
- Statistics: whether and how the value is recorded.
If a value is still missing, go back to step 2 with Back or via the step bar.
Save
Click Save & continue. The connection is saved, and from now on PlantBeat reads the selected values live and records them. Without selected variables, the button only saves the connection.
On the "Connections" page, you see the state of each connection. With Edit, you open a connection in the wizard again, directly at the selected variables and without reading the PLC again.
Note
Without a license, PlantBeat runs in trial mode: with a real PLC, it records for 10 minutes, and a notice bar at the top of the page shows the remaining time. The practice machine and the demo line do not count. Learn more in Activate the license.
If it does not work
| What you see | What helps |
|---|---|
| Connection stays "Disconnected" | Check the IP address with ping, check the access level and password of the CPU, open port 102 in the firewall |
| No variables when reading | Check CPU type and mode: S7-1200 and S7-1500 in "Symbolic" mode, S7-300, S7-400 and LOGO! 0BA8 in "Legacy" mode. Learn more in Prepare the PLC (TIA Portal) |
| "Nach 5 Reconnect-Versuchen gestoppt" (stopped after 5 reconnect attempts) | The PLC was unreachable for a longer time. PlantBeat then tries again by itself every minute and continues recording as soon as it responds. If the message stays: check the IP address, network and port 102 |
| Values "frozen" | Usually the trial has expired (watch the notice bar at the top). Activate the license or check the connection status on the "Connections" page |