Skip to content

v0.2.0 - Timing Diagram Output

Choose a tag to compare

@tofelling tofelling released this 17 Jun 09:09

v0.2.0 - Timing Diagram Output

这个版本新增了时序图输出功能。用户不仅可以在终端看到 PLC 扫描周期日志,也可以生成图片来观察 START、STOP、MOTOR 等信号在不同扫描周期中的变化。

This release adds static timing diagram output to PLC Scan Cycle Visualizer.

What's new

  • Added timing diagram generation with matplotlib.
  • Added --plot for generating a timing diagram for one example.
  • Added --plot-all for generating timing diagrams for all MVP examples.
  • Added outputs/ images for README preview.
  • Updated README with bilingual-friendly explanations for Chinese automation students.
  • Added Chinese documentation entry: docs/README.zh-CN.md.

Current examples

  • Single button to coil
  • Start/stop motor latch
  • Emergency stop interlock

How to run

pip install -r requirements.txt
python main.py examples/02_start_stop_latch.yaml
python main.py examples/02_start_stop_latch.yaml --plot
python main.py --plot-all