1.8 Simulating Logic¶
To simulate the current configuration, click the Simulate button in the toolbar, or press F5 on the keyboard. This compiles the configuration to be run as a simulation, and then shows the simulation controls window.
In the controls window, the speed of the simulation can be changed, and the logic can be stepped 1 ms, 10 ms, 0.1 s, or 1 s at a time.
Pressing Reset resets the simulation to its original state.

Figure 1.36: The simulation controls window.
While simulating, the pins of input functions can be manipulated by clicking with the mouse on different parts of the block:
- Press the icon of the block to toggle the entire function between OFF and ON-state.
- Press the OFF text to set all pins to OFF-state.
- Press the ON text to set all pins to ON-state.
- Press on a pin to toggle that pin between OFF and ON (can be used to test input two-channel errors).

Figure 1.37: The different areas in an E-stop block where the user can click during simulation.
When simulating blocks that are missing connections, the simulator will create simulation input/output blocks and connect them to the empty connectors. These blocks can be used to manipulate the input signals of a block. See Figure 1.39 and Figure 1.38.

Figure 1.39: A reset function without connections.

Figure 1.38: A reset function without connections during simulation. Clicking on the red circle in the simulation inputs toggles their value.
1.8.1 Simulating errors¶
During simulation, errors on inputs and outputs can be simulated.

Figure 1.40: Turning off and on pin 4 during simulation shows a two-channel error.

Figure 1.41: Output with feedback error during simulation.