Why PLC One-Shot Logic Needs a PLS Pulse
When an input remains ON, the PLC keeps executing the same rung every scan. One-shot behavior needs an edge pulse.
Why one button press can execute many times
The PLC executes the same logic every scan while an input stays ON. This rung therefore adds 10 on every scan. Both this rung and the PLS example use K10, so the comparison isolates execution count rather than changing the increment:
|----[ X0 ]----[ ADD D0 K10 D0 ]----|Starting with D0=0 and X0 following OFF → ON → ON → OFF → ON, the ordinary ADD produces D0 values 0 → 10 → 20 → 20 → 30. The PLS-gated ADD produces 0 → 10 → 10 → 10 → 20. Both learning examples assume execution on every scan and an initially OFF input.
Use a one-scan rising-edge pulse
|----[ X0 ]------[ PLS M100 ]---------|
|----[ M100 ]----[ ADD D0 K10 D0 ]----|M100 is ON for one scan only when X0 changes from OFF to ON.
Scan example
| Scan | X0 | M100 | D0 |
|---|---|---|---|
| 1 | OFF | OFF | No change |
| 2 | ON | ON | +10 |
| 3 | ON | OFF | No change |
| 4 | OFF | OFF | No change |
| 5 | ON | ON | +10 |
Typical uses
- One-step HMI/button increment
- Step-transition events
- Single-shot MOV storage
- Preventing repeated counter events
The sensor pulsed, but PLS never fired?
Trace the path: input terminal → general input filter → sampled X image → scan/PLS. If the electrical pulse never reaches the sampled input image, changing the PLS instruction alone cannot recover it.
Mitsubishi FX3U training material describes D8020 general input filter power-on default K10 (10ms). Check the exact CPU, terminal, current filter setting and any high-speed input function. K0 does not eliminate physical hardware delay.
| Time | Terminal | Assumed X image | PLS |
|---|---|---|---|
| 0ms | OFF | OFF | 0 |
| 2–7ms | ON for 5ms | OFF (illustrative miss) | 0 |
| After 7ms | OFF | OFF | 0 |
This does not mean every FX3U misses every 5ms pulse. High-speed counters, interrupt inputs and pulse-catch modes have distinct behavior. Do not modify production equipment without approved measurement and safety procedures.