Skip to content

v0.3.0 - TON Timer Teaching Example

Choose a tag to compare

@tofelling tofelling released this 17 Jun 09:44

v0.3.0 - TON Timer Teaching Example

这个版本新增了 TON 延时定时器教学示例。用户可以看到 IN=True 后,Q 不会立刻变为 True,而是需要连续扫描周期累计 ET。当 ET 达到 PT 后,Q=True;当 IN=False 时,定时器复位。

This release adds a basic TON on-delay timer teaching example to PLC Scan Cycle Visualizer.

What's new

  • Added examples/04_ton_timer.yaml.
  • Added fixed teaching logic for ton_timer.
  • Added scan cycle logs for TON timer behavior.
  • Added timing diagram output for IN, Q, and ET.
  • Updated --plot-all to generate four timing diagrams.
  • Updated README with TON Timer Preview.
  • Updated Chinese documentation for TON timer learning.

Current examples

  • Single button to coil
  • Start/stop motor latch
  • Emergency stop interlock
  • TON on-delay timer

How to run

pip install -r requirements.txt
python main.py examples/04_ton_timer.yaml
python main.py examples/04_ton_timer.yaml --plot
python main.py --plot-all