Skip to content

Virtual PLC (Structured Text)

Commercial

Included in the public demo Compare editions

The virtual PLC runs a Structured Text (ST) program directly in the browser. Write the program in the PLC editor, then click Deploy and Run. Once per simulation tick, it reads the twin’s PLC signals, runs your logic and writes the outputs. You need no separate build or installation. The browser compiles the program when you deploy it.

Use it to test control logic against the twin before the real controller exists, to try out a sequence quickly, or to teach PLC programming on a running machine. For simple sequences without code, use logic steps instead.

The PLC editor in the Laser Welding Assembly Station: an ST program for the curling check of station 4 is running, the watch list below the code shows the cycle counter and the probe signals, and the probe block in the 3D view is lowered

  1. Switch to the Planner workspace and click the PLC Editor button in the tool bar on the left.
  2. If the model already has PLC programs, the editor opens the first one. Otherwise the model gets a node PLC with a PLC Program component and a short template program.
  3. Edit the program. Syntax errors are marked while you type.
  4. Click Deploy to compile and load the program. Compile errors and unknown signals appear as markers in the code.
  5. Click Run. The status changes to running and the watch list shows live values.

The editor stays open when you change workspaces, and the PLC keeps running while you watch the plant. Only the Viewer workspace hides the editor.

ControlWhat it does
DeployCompiles the program and loads it with fresh timers, counters and memory
Run / StopStarts cyclic scanning, or stops it. Stop keeps all values, so Run continues where it stopped
StepRuns exactly one scan, useful while the simulation is paused
ResetResets timers, counters and memory to their start values
Statusstopped, running or error. Hover the status to read the error message. The scan time in ms is shown next to it
Insert signalOpens a signal browser and inserts the chosen signal into the program (see below)
Export / ImportSaves the program as a .st file, or loads one
Program listIn a model with several programs: every program in scan order with its state and scan time. Pick one to edit it

The watch list below the code shows the current values of all signals the program uses and the outputs of its timers and counters, such as tDwell.Q or cycles.CV. Hover a name in the code to see its type, value and signal.

A program reaches the twin through a VAR_EXTERNAL block. By default the variable name is the signal name:

VAR_EXTERNAL
SensorInFeed : BOOL; (* reads the signal SensorInFeed *)
ConveyorStart : BOOL; (* writes the signal ConveyorStart *)
END_VAR

To use a short name in the program, or a signal whose name is not a valid ST name (for example FG01_P_Camera.bReady), add the signal name as a comment:

VAR_EXTERNAL
ProbeDown : BOOL; (* @signal: FG04_Y_AxisZ_WorkPos *)
END_VAR

Insert signal writes these lines for you. Search for a signal and select it. The editor adds a declaration with a short name and the @signal comment, then inserts the name at the cursor. The browser lists signals from the model and a connected realvirtual CONNECT interface. Each entry shows direction, type and address.

The Insert signal browser filtered to FG04_Y_AxisZ: the four signals of the station 4 probe with their direction, type and TIA address

When you deploy:

  • A signal the program only reads but that does not exist gets a warning and reads FALSE or 0. Usually the name has a typo.
  • A signal the program writes but that does not exist is created under PLC/<name>.

This program for the Laser Welding Assembly Station moves the probe of the curling check down and up and switches the yellow tower light on after five cycles:

PROGRAM Main
VAR_EXTERNAL
ProbeDown : BOOL; (* @signal: FG04_Y_AxisZ_WorkPos *)
ProbeUp : BOOL; (* @signal: FG04_Y_AxisZ_HomePos *)
ProbeIsDown : BOOL; (* @signal: FG04_Y_AxisZ_InWork *)
ProbeIsUp : BOOL; (* @signal: FG04_Y_AxisZ_InHome *)
TowerGreen : BOOL; (* @signal: SignalTower_Green *)
TowerYellow : BOOL; (* @signal: SignalTower_Yellow *)
END_VAR
VAR
seq : INT;
tDwell : TON;
cycles : CTU;
END_VAR
CASE seq OF
0: ProbeUp := FALSE;
ProbeDown := TRUE;
IF ProbeIsDown THEN seq := 1; END_IF;
1: tDwell(IN := TRUE, PT := T#1s);
IF tDwell.Q THEN tDwell(IN := FALSE); seq := 2; END_IF;
2: ProbeDown := FALSE;
ProbeUp := TRUE;
IF ProbeIsUp THEN seq := 3; END_IF;
3: tDwell(IN := TRUE, PT := T#2s);
IF tDwell.Q THEN tDwell(IN := FALSE); seq := 0; END_IF;
END_CASE;
cycles(CU := seq = 3, R := FALSE, PV := 5);
TowerGreen := TRUE;
TowerYellow := cycles.Q;
END_PROGRAM

The welding station’s own program Station04 drives these outputs too. To try the example there, pick Station04 in the program list and Stop it first, then deploy and run your program.

The virtual PLC runs independently of a model’s logic steps. If both write the same outputs, they conflict. You must resolve this in the model yourself.

A model can carry several PLC programs, with one PLC Program component per node. Like blocks in a real PLC, these can represent individual machine units. All programs scan in the same tick, one after another, as set by their Order field. An output written by two programs is reported as a conflict.

The Laser Welding Assembly Station is controlled this way: eleven programs under the node PLC_Programs — operating modes, transport, the two lifts, the buffer, the entry and the five stations.

A program can read the model’s control mode through the read-only system variable RV_SimulationMode:

VAR_EXTERNAL
RV_SimulationMode : BOOL; (* TRUE = Simulation, FALSE = a real PLC owns the outputs *)
END_VAR

ST programs keep scanning in both modes. To stop writing when a real controller takes over, you check RV_SimulationMode in the program and write nothing while it is FALSE. When the model switches to PLC, running programs that use this variable get a one-time reset of their outputs to their start values. The welding station’s programs all work like this.

A program without this check keeps writing in PLC mode and works against the real controller. Stop it before you connect one.

For logic steps, you set Active on each logic root: Always, Connected, Disconnected or Never. Only roots set to Disconnected stop in PLC mode. Editor-created containers run Always. When a root stops, the outputs it owns return to their start values.

Who writes the model outputs Three writers feed the model outputs: logic steps, ST PLC programs and the real PLC through CONNECT. Only logic roots with Active set to Disconnected stop in PLC mode; their outputs return to start values. ST PLC programs scan in both modes. A check of RV_SimulationMode must stop output writes in PLC mode; running programs using that variable receive a one-time output reset when PLC mode starts. An ST program without the check competes with the real PLC. The real PLC takes over on its first model output write, and the saved mode returns when the connection ends. Who writes the model outputs Logic steps per logic root Active setting Active = Disconnected → stops in PLC mode owned outputs → start values Always / Connected / Disconnected / Never Editor-created containers: Always ST PLC programs scan in both modes checks RV_SimulationMode → stops writing in PLC mode; one-time reset on entry IF NOT RV_SimulationMode ... no check → competing writer Stop before you connect a real PLC Real PLC through CONNECT PLC mode = taken over first model output write Model outputs (drives, cylinders, lamps…)
You control which writers reach the model outputs through the logic root's Active setting and the ST program's RV_SimulationMode check. The saved mode returns when the real PLC connection ends.

The PLC supports a practical subset of IEC 61131-3 Structured Text. Keywords are not case-sensitive; comments are written (* … *) (they cannot be nested) or // …. Everything outside the subset is reported as an error with line and column when you deploy. The compiler never runs something other than what you wrote.

Beyond the program itself you can call built-in functions, write your own FUNCTION and FUNCTION_BLOCK in a PLC Library, and command axes with PLCopen motion blocks.

AreaWhat you can useExample
ProgramOne PROGRAM … END_PROGRAM per PLC Program component, with VAR, VAR CONSTANT and VAR_EXTERNAL blocksPROGRAM Main … END_PROGRAM
Your own functions and function blocksFUNCTION and FUNCTION_BLOCK with VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT and VAR, kept in a PLC Library and usable in every program of the model. See Function Blocks & LibrariesFUNCTION_BLOCK Gate … END_FUNCTION_BLOCK
VariablesOne name per line; types BOOL, INT, DINT, REAL, TIME or a function block (standard, your own, or a PLCopen MC_ block)speed : REAL;
Start valuesA value after :=. It must be a fixed value: numbers, constants and + - * / MOD of themcount : INT := 5; wait : TIME := T#2s;
ConstantsVAR CONSTANT with a value. Constants cannot be changed. Use them in calculations, as CASE labels and as FOR limitsMAXP : INT := 10;
Function block start inputsStart values for the inputs of a timer or countertDelay : TON := (PT := T#2s);
Numbers and times123, 1.5, 1.5E2, 16#FF, TRUE, FALSE, T#2s, T#500ms, T#1m30sT#1m30s
Assignment:=. A smaller type fits into a larger one (INT, DINT, REAL)d := i;
DecisionsIF / ELSIF / ELSE; CASE on INT / DINT with single values, lists, constants and ELSECASE s OF 1, 2: x := 1; ELSE x := 0; END_CASE
LoopsFOR … BY, WHILE, REPEAT … UNTILFOR i := 1 TO 10 DO … END_FOR
Leaving earlyEXIT leaves the innermost loop. RETURN ends the scan; outputs are still writtenIF done THEN EXIT; END_IF;
Function block callsInputs with :=, outputs with =>, all by nametDelay(IN := a, PT := T#1s, Q => ready);
FunctionsBuilt-in functions such as ABS, MIN, MAX, LIMIT, SEL, MUX, SQRT, SIN, EXPT, TRUNC and the conversions <S>_TO_<T>, by position or all by name. See ST Functionsy := LIMIT(0.0, x, 100.0);
Reading blocksInputs and outputs of a block instancetDelay.Q, cnt.CV
Calculation+ - * /, MOD, minus sign. Integer division cuts off the decimalsr := 7 / 2; gives 3 for INT
Comparison= <> < <= > >=IF level >= 80 THEN
Order of operationsStrongest first: brackets, function call, NOT and minus sign, * / MOD, + -, < > <= >=, = <>, AND, XOR, OR (IEC). NOT and the minus sign bind stronger than * and comparisons; for powers use EXPTok := x = a < b; means x = (a < b)
Logic and bitsAND OR XOR NOT: logical on BOOL, bitwise on INT / DINTmask := flags AND 16#00FF;
ShiftingSHL, SHR, ROL, ROR with value and number of bitsx := SHL(1, 3);
System variablesRV_SimulationMode and RV_FirstScan, read-onlyIF RV_FirstScan THEN … END_IF;

The compiler reports each of these as an error instead of running something unexpected.

Not supportedInstead
Strings and text (STRING, 'abc')Use numbers or signals
Arrays (ARRAY[0..3] OF INT)One variable per element, or a CASE
Structures, enumerations, TYPESeparate variables; constants with CASE for named states
Other data types such as WORD, DWORD, BYTE, LINT, UINT, LREAL, DATEINT or DINT with bit operations
More than one PROGRAM in one program textOne PLC Program component per PROGRAM
Standard functions not listed in ST Functions (such as string, date or MOVE functions)Write the calculation with IF and arithmetic
Recursion (a function or block that calls itself, directly or through others)Use a loop
MC_ blocks inside your own FUNCTION_BLOCKDeclare them in the PROGRAM
CASE ranges (1..5:)A list (1, 2, 3:) or IF x >= 1 AND x <= 5
Several names in one declaration (a, b : INT;)One declaration per variable
VAR_INPUT, VAR_OUTPUT, VAR_IN_OUT in a PROGRAM; VAR_GLOBAL, RETAIN, PERSISTENT, AT %IX0.0VAR_EXTERNAL for signals; inputs and outputs belong in a FUNCTION_BLOCK. Nothing survives a cold start
Typed or based numbers (INT#5, 2#1010, 8#17)16# hex or decimal
Function block calls without names (t(TRUE, T#1s)); functions may be called by positiont(IN := TRUE, PT := T#1s)
Setting a block input directly (t.PT := T#1s;)Pass it in the call
Start values that depend on variables, or on a VAR_EXTERNALSet the value under IF RV_FirstScan THEN
**, TIME * number, MOD on REAL, CONTINUE, GOTOEXPT for powers; otherwise rewrite with *, IF
Mixing BOOL and INT in AND, OR, XOR, NOTCompare first: (n <> 0) AND b
Converting a larger type into a smaller one by assignment (DINT to INT, REAL to INT)Convert explicitly: REAL_TO_INT, DINT_TO_INT or TRUNC
Overflow wrap-around of INT / DINTNot performed, see below
Nested comments ((* a (* b *) *))Close the outer comment first, or use // line comments
  • Calculations do not wrap around. 32767 + 1 in an INT variable gives 32768, not -32768. Numbers and start values are not range-checked either, so x : INT := 40000; is accepted. Keep your values in range.
  • Bit operations use the real width. AND, OR, XOR, NOT, SHL, SHR, ROL and ROR work on 16 bits for INT and 32 bits for DINT. The width comes from the values you combine, not from the variable that receives the result.
  • Shifting. SHR shifts in zeros. Shifting by the full width or more gives 0. ROL and ROR rotate by the number of bits modulo the width. A negative number of bits stops the PLC with the status error, like a division by zero.
  • Division. A zero divisor stops the PLC with error. In a start value or constant it is a compile error.
BlockInputs → outputsWhat it does
TONIN, PT → Q, ETOn-delay: Q turns on after IN has been on for PT
TOFIN, PT → Q, ETOff-delay: Q turns off PT after IN turns off
TPIN, PT → Q, ETPulse of length PT on a rising edge of IN
CTUCU, R, PV → Q, CVCounts up on each rising edge of CU; Q when CV ≥ PV
CTDCD, LD, PV → Q, CVCounts down from PV; Q when CV ≤ 0
CTUDCU, CD, R, LD, PV → QU, QD, CVUp/down counter
R_TRIG / F_TRIGCLK → QQ for one scan on a rising / falling edge
RS / SRS, R1 → Q1 / S1, R → Q1Reset-dominant / set-dominant flip-flop

Timers run on simulation time: when you pause the simulation, timers pause too.

Besides these standard blocks you can write your own function blocks (Function Blocks & Libraries) and use the PLCopen motion blocks MC_Power, MC_MoveAbsolute, MC_MoveLinearAbsolute and others to move axes and Cartesian groups with jerk-limited profiles (PLCopen Motion). Programs with MC_ blocks need continuous simulation; they are not DES-suitable.

The PLC scans once per simulation tick (60 times per second). Each scan reads all inputs at once, runs the program from top to bottom, then writes all outputs together. This works like the process image of a real PLC. Outputs act on the drives in the same tick.

What you doStartVariablesTimers and countersRV_FirstScan
DeployColdBack to their start valuesNew, with their start inputsTRUE in the first scan
Reset, or resetting the simulationColdBack to their start valuesBack to their start inputsTRUE in the first scan afterwards
Run after an errorColdBack to their start valuesNewTRUE in the first scan
Stop, then RunWarmKeep their valuesKeep their statestays FALSE

A variable without a start value begins with FALSE or 0. RV_FirstScan is TRUE in exactly one scan after every cold start, so you can run set-up code once:

PROGRAM Main
VAR_EXTERNAL
RV_FirstScan : BOOL;
PartPresent : BOOL; (* @signal: SensorInFeed *)
Conveyor : BOOL; (* @signal: ConveyorStart *)
BatchFull : BOOL; (* @signal: SignalTower_Yellow *)
END_VAR
VAR CONSTANT
BATCH : INT := 10; (* parts per batch *)
END_VAR
VAR
starts : INT := 0; (* counts cold starts *)
parts : INT := 0;
hold : TON := (PT := T#2s); (* start value for the input PT *)
edge : R_TRIG;
END_VAR
IF RV_FirstScan THEN starts := starts + 1; END_IF;
edge(CLK := PartPresent);
IF edge.Q THEN parts := parts + 1; END_IF;
hold(IN := parts >= BATCH); (* PT keeps its start value of 2 s *)
BatchFull := hold.Q;
Conveyor := NOT BatchFull;
END_PROGRAM

RV_FirstScan is not a signal. Declare it in VAR_EXTERNAL like RV_SimulationMode; writing to it stops the deploy with an error. The watch list shows the start inputs of timers and counters as well, for example hold.PT.

Resetting the simulation resets every program’s timers, counters and memory. It also restores outputs to their start values: the values they had when the model was loaded.

If a scan runs too long (more than 200 ms, for example an endless loop), uses too much memory or hits an error such as a division by zero, the PLC stops with the status error. Fix the program and click Run again; the PLC restarts with fresh values.

In discrete-event simulation (DES), write logic that waits for a signal or a timer and then settles: another scan with unchanged inputs leaves the same state.

Continuous simulationDES (event-driven)
When a program scansOnce per simulation tickOn start, when a signal it reads changes, at a timer deadline, and again at the same time after its own change
Built-in and your own functionsSupportedSupported, same results (ST Functions)
Standard and your own function blocksSupportedSupported if their state settles (Function Blocks & Libraries)
PLCopen MC_ blocksSupportedNot supported: rule D5, the program goes into error (PLCopen Motion)
DES check (D1–D5)Not applicableD1, D2 and D5 make a program not DES-ready; D3 and D4 are hints
Experiment batchesNot applicableRefuse a model with a program that is not DES-ready

In event-driven DES, your program scans when it starts, after a cold reset, when a signal it reads changes, or when one of its timers reaches a deadline. A write-only signal does not wake it. If a scan changes its memory, a function block’s state or an output it reads, it scans again at the same simulated time. Other programs that read a changed output also wake. Programs run in their configured order, once per round, until the state is stable.

The limit is 64 rounds at one time. If the state keeps changing, the affected programs enter error and Problems reports des-settle-overflow. The scan watchdog still limits time spent inside a single scan. RV_FirstScan is true only in the first scan after a cold start, not at every event.

Signal writes reach each program in order. Here, batch means a setMany write is seen as its end state: all values in that write arrive together, and only the last value for each signal is visible. Separate writes can cause separate scans, even at the same simulated time.

The examples below are program fragments. Put the declarations in your program’s variable blocks and the statements in its scan body.

Change a counter on an edge or a step change. A level condition can remain true for several scans at the same time.

Bad: counts every scan while a part remains at the sensor.

IF PartPresent THEN cnt := cnt + 1; END_IF;

Good: counts each arriving part once.

VAR_EXTERNAL
PartPresent : BOOL;
ResetBatch : BOOL;
END_VAR
VAR
edge : R_TRIG;
parts : CTU;
cnt : INT;
END_VAR
edge(CLK := PartPresent);
parts(CU := edge.Q, R := ResetBatch, PV := 10);
cnt := parts.CV;

A timer’s Q is also a level. Use R_TRIG on it, or reset the same timer with IN := FALSE on every path through the counting branch. A step guard also protects a counter when every path after the increment leaves that step. You can use RV_FirstScan for one-time initialization. A stable self-hold such as motor := start OR (motor AND NOT stop) is allowed.

Use TON, TOF or TP for elapsed simulation time. Scans per second are no measure of time in DES.

Bad: assumes 120 scans mean two seconds.

IF Enabled AND waitScans < 120 THEN
waitScans := waitScans + 1;
END_IF;
Ready := waitScans >= 120;

Good: waits two simulated seconds.

VAR_EXTERNAL
Enabled : BOOL;
Ready : BOOL;
END_VAR
VAR
delay : TON;
END_VAR
delay(IN := Enabled, PT := T#2s);
Ready := delay.Q;

A sensor cannot change while a scan waits inside a loop. Use a step chain that returns control and resumes when the input changes. Loops for calculations are fine when their own body advances the exit condition.

Bad: waits for the conveyor sensor inside one scan.

WHILE NOT SensorAtStop DO
Conveyor := TRUE;
END_WHILE;

Good: holds the conveyor on until the sensor arrives.

VAR_EXTERNAL
SensorAtStop : BOOL;
Conveyor : BOOL;
END_VAR
VAR
step : INT := 10;
END_VAR
CASE step OF
10: Conveyor := TRUE;
IF SensorAtStop THEN
Conveyor := FALSE;
step := 20;
END_IF;
20: Conveyor := FALSE;
END_CASE;

For a level-controlled actuator, keep the command active until its feedback confirms the movement. Advancing to the next step does not guarantee that simulated time passes.

Bad: clears the command in the next scan, which can occur at the same time.

CASE step OF
10: Extend := TRUE; step := 20;
20: Extend := FALSE;
IF IsExtended THEN step := 30; END_IF;
END_CASE;

Good: keeps the command active until the cylinder reaches its end position.

VAR_EXTERNAL
Extend : BOOL;
IsExtended : BOOL;
END_VAR
VAR
step : INT := 10;
END_VAR
CASE step OF
10: Extend := TRUE;
IF IsExtended THEN
Extend := FALSE;
step := 30;
END_IF;
30: Extend := FALSE;
END_CASE;

Use a second timer for an intermediate deadline

Section titled “Use a second timer for an intermediate deadline”

ET updates only when its timer is evaluated at an event. Reading ET does not schedule a scan at the threshold you compare it with.

Bad: expects a one-second event from a five-second timer.

dwell(IN := Running, PT := T#5s);
Warning := dwell.ET >= T#1s;

Good: gives each deadline its own timer.

VAR_EXTERNAL
Running : BOOL;
Warning : BOOL;
Done : BOOL;
END_VAR
VAR
warningDelay : TON;
dwell : TON;
END_VAR
warningDelay(IN := Running, PT := T#1s);
dwell(IN := Running, PT := T#5s);
Warning := warningDelay.Q;
Done := dwell.Q;

Wait for a signal instead of polling with short timers

Section titled “Wait for a signal instead of polling with short timers”

A repeating 20 ms timer creates about 50 timer events per simulated second. Wait directly for a signal level when you need no actual delay.

Bad: repeatedly checks readiness through a timer loop.

CASE step OF
10: poll(IN := TRUE, PT := T#20ms);
IF poll.Q THEN
poll(IN := FALSE);
step := 20;
END_IF;
20: IF StationReady THEN step := 30; ELSE step := 10; END_IF;
END_CASE;

Good: resumes when the readiness signal changes.

VAR_EXTERNAL
StationReady : BOOL;
END_VAR
VAR
step : INT := 10;
END_VAR
CASE step OF
10: IF StationReady THEN step := 30; END_IF;
END_CASE;

The editor marks findings as information, separately from compile errors. Every message starts with DES: . D1, D2 and D5 give the program a not DES-ready badge in the status and program list. When you start DES, Problems reports PLC program cannot run on events, naming the program and line. Interactive DES start reports this error without a hard stop; experiment batches refuse the run. D3 and D4 are hints and do not block a run. A program with D5 does not run in DES: it goes into error at its first scan.

The message text below follows the DES: prefix. Placeholders identify your variable, timer or loop; n is the timer preset in milliseconds.

RuleMessage
D1 — state changes on every scan'<v>' changes on every scan without an edge, timer or step change — never settles in DES. Use R_TRIG, CTU or a timer.
D2 — waiting inside a scan<WHILE|REPEAT> loop condition never changes inside the loop — it waits within one scan and never ends in DES. Use a step chain instead.
D3 — elapsed-time read'<inst>.ET' is only current at event times in DES — compare against a second timer instead.
D4 — short timer pollingtimer '<inst>' (PT <n> ms) restarts in a step chain without an input condition — costs about <round(1000/n)> events per second in DES. Wait for a signal level instead.
D5 — motion blockFB '<inst>' (<type>) requires continuous simulation: PLC motion needs fixed-step integration and is unsuitable for DES.

D4 checks TON and TP timers with a constant preset below 100 ms, including a preset from the declaration. It looks for IN := TRUE in a CASE step without an additional condition that reads a signal your program does not write, and only reports it when the step chain comes back to that step without a step that waits for a signal. A one-time delay, for example a valve switching time, is not reported.

If you have checked that a flagged statement settles, add (* @des: allow *) on the same line as the assignment or the opening WHILE/REPEAT keyword. It suppresses D1 or D2 for that statement only. It does not suppress D3/D4/D5, change execution or remove the runtime limits. The checker cannot prove that several programs together settle; a step cycle or conflicting programs can still reach the round limit.

Step chains can pass through several steps without advancing time. An output set in one scan and cleared in the next can therefore form a zero-time pulse. Signal subscribers can see separate writes; a consumer that only checks the level during a movement tick can miss the pulse. Hold level commands until feedback, and use a timer when a pulse needs a duration.

Between events, timer ET values can stay unchanged and there is no fixed scan rate. Use simulation time, timer outputs and plant feedback to judge progress. Continuous/Live operation keeps cyclic scanning.

Each program is stored in the model, on its PLC Program component. Changes are saved with the model and can be undone. If you cannot write to a project, such as the public demo, use Export to save a .st file. Use Import to load it again later.

A program whose Active field is set starts automatically when the model loads, in every workspace. With Active off, the program only loads into the editor; click Deploy and Run to start it. Programs run in an isolated sandbox inside the browser and can only read and write signals.