Virtual Simulation¶
PiPLC includes a complete virtual I/O simulation environment for testing programs without physical hardware.
Simulation Panel¶
In simulation mode, the SimulationPanel provides:
- Toggle inputs: Click to activate/deactivate inputs
- Force bits: Manual override of any I/O/B address
- Memory monitor: View values in real time
- Watch panel: Add specific variables for monitoring
Starting a Simulation¶
- Press ++f5++ to start simulation
- Use the simulation panel to toggle inputs
- Press ++f6++ to pause, ++f7++ to stop
Forcing I/O¶
To force a value during simulation:
- Right-click on a contact or coil
- Select Force ON, Force OFF, or Unforce
- Forced bits override the normal scan cycle
- A force bitmap tracks all forced addresses
Editing is disabled during simulation
While the simulation is running:
- Ladder editing is disabled
- Drag & drop is not allowed
- Delete/Backspace won't remove elements
- Right-click shows monitoring/forcing menu instead