Skip to content

Performance level

The performance level decides how quickly a signal change travels between your PLC and the simulation in the browser, and how much computing time that costs. You set it once for the gateway and can change it while everything is running.

Everything runs on your own computer, in your browser and your own CONNECT gateway. There is no cloud service in the loop.

There are three levels:

  • Low - bundles signal updates and saves CPU. Fine for monitoring.
  • High - fast signal exchange for commissioning. The default.
  • Realtime - High, plus a simulation that steps 250 times per second regardless of the frame rate, so PLC signals are applied within a few milliseconds. It costs the most CPU.
LowHighRealtime
Signal sending in CONNECTAfter a change, waits the full publish interval before sendingSends the first change after an idle period at once; further changes are bundled until the publish interval has passedSame as High
Signal sending in the browserBundles changes on a 16 ms gridSends the first change after an idle period at once, then bundles on the 16 ms gridSends the first change after an idle period at once, then bundles on a 4 ms grid
Simulation stepThe model rate (60 Hz unless the model says otherwise)The model rate250 Hz, independent of the frame rate; steps down to 100 or 60 Hz if the model cannot hold it
Windows timer resolutionDefault of about 15.6 ms1 ms1 ms
PLCSIM Advanced cycleAt least 10 ms, even if you configured lessThe configured cycle (default 2 ms, minimum 1 ms)The configured cycle (default 2 ms, minimum 1 ms)
CPU costLowestA little moreUp to four times the simulation CPU

The timer resolution is a Windows setting of the CONNECT process. High and Realtime request 1 ms; Low releases it, so CONNECT does not keep Windows at 1 ms unnecessarily. On other operating systems it has no effect.

Measured Windows wait times for a requested 1 ms wait (500 samples on one machine, CONNECT as a tray application):

Timer settingMedian95th percentileMaximum
Default (Low)15.5 ms16.1 ms16.8 ms
1 ms resolution (High)1.0 ms2.0 ms2.8 ms

These are wait times inside CONNECT, not response times of the whole loop.

With Realtime the simulation does not wait for the next picture. A clock steps it 250 times per second, independent of the frame rate, so a PLC signal is applied within a few milliseconds instead of at the next frame. Use it when the timing of your PLC program against the model matters, for example for fast sensors or short signal pulses.

What you need:

  • A model is open and the viewer is connected to a CONNECT gateway that supports Realtime. Without a connection the simulation runs at its normal rate.
  • The browser tab controls CONNECT. In a second tab that only watches, the panel says Realtime applies in the tab that controls CONNECT.
  • A visible Chrome or Edge tab gives the best result. These browsers keep the 4 ms clock in the visible foreground.

What it costs: the simulation does up to four times the work per second. If the computer or the model cannot keep up, the viewer lowers the step rate and tells you in the Problems panel:

  • Simulation step reduced to 100 Hz. (or 60 Hz) - the step rate went down one rung. The model’s own rate is never undercut.
  • Simulation cannot hold the model rate of N Hz. - even the lowest step is too much for this model on this computer.
  • Realtime switched to frame-driven simulation at N Hz. - the pace stayed critically low for five seconds at the lowest step. Realtime then stays off until you load a model again or select the level again.
  • Realtime clock cannot maintain the 4 ms cadence - the clock runs too slowly, for example because the tab is hidden or the window is minimized and no gateway clock is available. The step rate is kept, but signal updates arrive less often.

A compatible CONNECT gateway supplies the 4 ms clock over the signal connection. This keeps the Realtime cadence when the tab is hidden or the window is minimized. If those ticks do not arrive, the viewer falls back to its own timer without interrupting the simulation. The command sim.clockStatus (for example through web_query from an AI assistant) returns the active source, connect-tick for the gateway or worker for the browser timer, together with the target and current step rate.

Rough guide values for the whole loop, from a PLC output through CONNECT and the model back to a PLC input:

  • Low - around 40 to 70 ms on average, with single values above 100 ms depending on the interface.
  • High - shorter, because waits drop out: the bundling in CONNECT and in the browser no longer delays the first change, and CONNECT’s timer no longer rounds a short wait up to about 16 ms. Expect around 25 ms on average, rarely more than about 30 ms.
  • Realtime - applies the signal in the next 4 ms step instead of the next frame. We do not publish guide values for it yet; measure your own setup.

These are guide values, not a guarantee. They apply to PLCSIM Advanced; other interfaces have their own polling or publish cycle (for example an OPC UA subscription interval, an MQTT publish interval or the cycle a Modbus or S7 interface reads at), and that cycle adds to the loop. The values also depend on the PLC cycle, your computer, the browser and the model. Measure your own setup with Response time, once at each level.

Use whichever way fits your workflow. The change takes effect immediately; you do not restart CONNECT, its interfaces or the simulation.

  • In the viewer - open the CONNECT page and click Low, High or Realtime in the Performance row. A line below the buttons describes the selected level. If the buttons are greyed out, the line below them says why, for example that no gateway is connected or that the gateway is too old to support levels.
  • As a command - run connect.performance.set with {"performance": "High"} (or "Low", "Realtime"), for example through web_execute from an AI assistant.
  • Over REST - send PUT /config/performance with {"performance":"High"} to the gateway. GET /health returns the current value. See REST and WebSocket API.

The level belongs to the gateway, not to a model. Every connected browser tab sees a change at once. It is saved and survives a restart of CONNECT.

  • Monitoring or a demo with a slow PLC cycle - Low. Lowest CPU load, and updates arrive bundled.
  • Commissioning logic and virtual commissioning - High.
  • Timing-critical PLC loops, fast sensors, short pulses - Realtime, in a visible Chrome or Edge tab on a computer with CPU to spare.

The simulation applies a PLC signal in its next step, and the steps follow the browser’s frame rate. Whether the simulation keeps running in a hidden tab is a separate switch, Keep simulating in background. If it is off, the simulation pauses when the page is hidden, at every level.

With Realtime, a compatible gateway also supplies the clock (see Clock source). Even with the switch on, browsers may slow a tab that is covered or in energy-saving mode, and a long frame (a heavy model load, a large selection) delays everything for that duration. For measurements and demos, keep the tab visible and in front.

The performance level changes how fast signals travel. It does not change how the model is simulated.

Continuous simulationDES
What the level changesHow soon a PLC signal reaches the model and how soon the model’s answer reaches the PLCThe same, for a DES model that exchanges signals with a PLC
Simulation stepLow and High: unchanged, the model rate (60 Hz unless the model says otherwise). Realtime: 250 Hz, never below the model rateUnchanged: events are processed as before
ResultsMotion and logic are calculated the same way at every level; only the reaction time to PLC signals differs (finer steps at Realtime)Event order and results are the same at Low and High
When High or Realtime mattersPLC loops and virtual commissioningOnly when a PLC is connected to the DES model and its reaction time matters

See DES simulation modes for the playback modes.