One shot falling OSF
Passes power for one scan when the rung turns off.
Global.RunXIC
OSF
| Tag | After two scans |
|---|---|
| Run | 0 |
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.
| Scan | Run | Last scan | ONS | OSF |
|---|---|---|---|---|
| 1 | Off | Off | Off | Off |
| 2 | Off | Off | Off | Off |
| 3 | On | Off | On | Off |
| 4 | On | On | Off | Off |
| 5 | On | On | Off | Off |
| 6 | On | On | Off | Off |
| 7 | Off | On | Off | On |
| 8 | Off | Off | Off | Off |
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.
Global.MotorXIC
OSF
ADD
AGlobal.Stops1B1DestGlobal.Stops1
| Tag | Value |
|---|---|
| Motor | 0 |
| Stops | 1 |
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
- Edge detection with a one-shotBeginner · 20 min