One shot falling OSF

Passes power for one scan when the rung turns off.

TagAfter two scans
Run0

How it works

Passes power for one scan when the rung goes from true to false, then blocks it while the rung stays false.

How the edge is caught

OSF keeps the rung's state from the last scan. It passes power only when the rung is off now and was on last scan.

Run turns on at scan 3 and off at scan 7. OSF is on only in scan 7, the first scan where Run is off and Last scan is on.12345678ScanRunLast scanONSOSFRisingFalling
ScanRunLast scanONSOSF
1OffOffOffOff
2OffOffOffOff
3OnOffOnOff
4OnOnOffOff
5OnOnOffOff
6OnOnOffOff
7OffOnOffOn
8OffOffOffOff

ONS uses the same Last scan, but passes on the scan where the rung turns on.

How it's used

Use OSF to act once when something stops or is released.

TagValue
Motor0
Stops1

Motor turned off. Stops went up by 1.

Operands

None. It works on the rung itself.

Common mistakes

  • Waiting for a pulse when the input turns onA falling edge occurs when the incoming rung changes from true to false.

Learn it in a lesson

Related