OSF (one shot falling)
The OSF instruction detects a falling edge of a Boolean variable. The OSF block sets output Q for one cycle when input CLK toggles from set to cleared (that is, a falling edge is detected at input CLK).
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
OSF

Parameter | Parameter Type | Data Type | Description |
---|---|---|---|
CLK | Input | BOOL | Checks the input for a falling edge. Any Boolean variable.
|
Q | Output | BOOL | Indicates status for Q output.
|
OSF examples
OSF function block diagram example

OSF ladder diagram example

OSF structured text example

(* ST Equivalence: OSF1 is an instance of a OSF block *) OSF1(cmd); nb_edge := ANY_TO_DINT(OSF1.Q) + nb_edge;
Results

Provide Feedback