Write values
With the tiles of the "Control" group you write values directly to the PLC, for example a setpoint or an enable bit. Setting them up in the designer requires the Administrator role. Operators and Administrators can use them.
Caution
A written value takes effect on the running machine immediately. Try controls first on the practice machine demo or on the demo line. On real plants, agree with the PLC programmer beforehand which variables may be written from outside.
The controls
| Tile | What it does | Settings under "Basic settings" |
|---|---|---|
| Switch (write) | switches a yes/no value on or off | – |
| Setpoint (write) | enter a number and write it with Set | "Min", "Max", "Step" |
| Push button (pulse) | writes the "Pulse value" when pressed. With "Auto reset", it writes the "Reset value" half a second later, like a push button that springs back. | "Pulse value", "Auto reset", "Reset value" |
| Mode / selection | selects one of several operating modes, for example 0 = manual, 1 = automatic | options with text and value, + Option |
| Slider (write) | writes as soon as you release the slider, not while you drag it | "Min", "Max", "Step" |
| Stepper (+/−) | raises or lowers the value by one step, within Min and Max | "Min", "Max", "Step" |
Set up a control
- Open the dashboard in the designer and pick a tile from the "Control" group on the left.
- Link it to a variable like any other tile, see Create a dashboard.
- Set the limits under Properties › "Basic settings".
- Switch on the protection functions you want under Properties › Data:
- Confirm before writing: Before each write, the browser asks "Really write to the PLC?". The value is only sent after you click OK.
- Show write confirmation: Afterwards, the tile shows "written" with the time, or "Error".
On real plants, always switch on "Confirm before writing".
What happens when you write
- The tile always shows the value that PlantBeat reads back from the PLC, not the one you clicked last. The new value therefore appears only with the next read cycle.
- If the tile ("Scaling") or the variable in the connection has a factor and offset, PlantBeat converts the display value you entered back through both stages and writes the raw value in the data type of the variable. If one of the factors is 0, nothing is written. You enter the values of a mode / selection in the display unit.
- If the current value lies outside Min and Max, the tile reports "Value outside the scale … – adjust Min/Max in the designer".
When nothing is written
| Situation | What you see |
|---|---|
| Your role is Viewer | a lock and "No permission to write" (for the switch, as a tooltip on the lock). The stepper shows only the value, without +/−. |
| The connection is set to Read only | The write command is rejected before it reaches the PLC. Reading, history and alarms keep running. |
| The variable is an input or output (%I, %Q) | The designer reports "Inputs and outputs are read-only. This widget cannot write here." Memory bits (%M) can be written. |
| The PLC rejects the write, for example because of write protection or the data type | With "Show write confirmation", the tile shows "Error". |
If PlantBeat should never write to a PLC, tick Read only in its connection, see Connection wizard.
Operate values of a line (Federation)
On the master of a PlantBeat Federation, you can also link controls to values of a line. The designer then adds "Writes on the line …; the line decides whether it may be operated." A value is only written if the line allows operation from the master and access protection is switched on. Otherwise, the tile shows the reason, for example "The line only allows viewing."
Practice safely
- Practice machine
demo: Link a setpoint toDB1›Sollwert_Drehzahland set 1500. The speed follows after a short time. A switch onLaeuftstops the machine. - Demo line: In the dashboard "Demo-Linie – Übersicht" (overview), you set the cycle time with "Taktzeit einstellen" (set cycle time). In the station dashboards, the "Störung auslösen" (trigger fault) button triggers a fault. This way you see right away how alarms come about, see History and confirming.