PLC BASICS · SCAN

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.

PLSOne-shotScan

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

ScanX0M100D0
1OFFOFFNo change
2ONON+10
3ONOFFNo change
4OFFOFFNo change
5ONON+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.

Synthetic teaching timeline — NOT an actual equipment measurement
TimeTerminalAssumed X imagePLS
0msOFFOFF0
2–7msON for 5msOFF (illustrative miss)0
After 7msOFFOFF0

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.

Manufacturer training reference: Discovering Control

ENGINEER DISCUSSION

How would you design it in the field?

Challenge the sequence, interlocks, addressing or commissioning assumptions. Posts and replies appear only after moderation.

Server rate limit · moderated before publication

Loading engineer discussion…