Skip to content

Pause ​

Purpose: pause the script and show a message, waiting for the operator to do something (connect a fixture, for example) before carrying on.

Pause settings

Message is the text the operator sees (optional, can include ${variable}).

JSON ​

json
{ "pause": { "message": "Connect the fixture, then press Resume" } }
{ "pause": "Connect the fixture, then press Resume" }
{ "pause": true }

While running ​

While paused, a yellow banner at the top shows the message and the current variables:

Paused

ButtonWhat it does
Resume F6Carry on
StepRun the next step, then pause again
StopStop this run

Result ​

Pause is PASS, and the Actual column shows how long it was paused (paused 25.5 s).

Pause example result

Notes ​

  • When run from the command line with --run-script there is no operator, so Pause does not pause and carries straight on (Actual shows not paused (no operator)).
  • When the operator needs to answer PASS/FAIL or enter data, use Ask.

Download the sample script ​

Sample script

Before running it, start a Slave window on 127.0.0.1:502 and click Listen, then open the script with Open JSON in Script mode and click Run. See How to use the examples.

Roach Modbus Tool by Mr.Roach