๐ŸŽ›๏ธ PLC Scan Cycle Visualizer

Sprint 1 companion โ€” Bolton Ch. 1 & 4 ยท PLC-FastTrack home

Controls

Scenarios:

Timing diagram

Physical input PLC input image (sampled at scan boundaries) PLC output Scan boundary

What happened?

Pulse / scan ratio
โ€”
Physical pulse duration
โ€”
PLC saw input as high for
โ€”

Try these

  1. Slow scan, short pulse โ€” set scan = 100 ms, pulse = 10 ms, then drag the pulse start. Watch it flip between caught and missed depending on alignment with a scan boundary.
  2. Fast scan, same pulse โ€” drop scan to 5 ms with the same 10 ms pulse. Now it's always caught.
  3. Latching rescue โ€” turn on the latch with a slow scan and a shifted pulse. Even if the pulse is short, the output stays on after the input drops.
  4. Worst case โ€” the maximum delay between input change and output change is roughly two scan times: one to sample, one to update.