How thiagobeats/machinesimulation works
MachineSimulation is a browser-only training simulator for industrial HMIs. The principal workflow is an operator opening a machine simulation, interacting with its HMI, and seeing locally emulated machine behavior and persisted state; the README says no commands reach a PLC. It also documents a separate image-based parcours for a non-web HMI. The tree and README differ on several simulator paths, so nodes use paths present in the tree; unsampled connections are omitted or marked unverified.
Main entry points: b300-duo Machine HMIs · protocolo.js HMI protocol · TcHmiFramework.js TwinCAT framework · sim.js Browser bridge
Components 16
Machine interfaces
- Machine HMIs
b300-duo - Tablet frame
b300-duo
Simulation runtime
- Browser bridge
b300-duo/sim/sim.js - HMI protocol
b300-duo/sim/protocolo.js - Symbol schemas
b300-duo/sim/esquema.js - Symbol state
b300-duo/sim/estado.js - Machine logic
maquinas/b300-duo/logica.js - Scenario values
b300-duo/sim/valores.js
HMI platform
- TwinCAT framework
b300-duo/framework/TcHmiFramework.js - HMI controls
b300-duo/Beckhoff.TwinCAT.HMI.Controls - System containers
b300-duo/framework/Controls/System - HMI navigation
b300-duo/Beckhoff.TwinCAT.HMI.BaseTemplate/TcHmiNavigation/TcHmiNavigation.js
Screen parcours
- Screen map
maquinas/ls-b18-corteva/planta.js - Vector renderer
web/vetorial.js - Captured screens
ls-b18-corteva/programa.js
Other components
- Trainee
Connections 14
- Trainee → Machine HMIs: opens
README.md - Machine HMIs → Tablet frame: shown in
README.md - Machine HMIs → Browser bridge: loads simulator
- Browser bridge → HMI protocol: installs protocol
- HMI protocol → Symbol state: reads and writes
README.md - HMI protocol → Symbol schemas: uses types
README.md - HMI protocol → Machine logic: runs scan
README.md - Machine logic → Scenario values: uses scenario
- Machine HMIs → TwinCAT framework: renders with
README.md - TwinCAT framework → HMI controls: renders controls
- TwinCAT framework → System containers: hosts views
- Trainee → Screen map: selects screen
- Screen map → Vector renderer: describes drawing
- Vector renderer → Captured screens: renders screens