Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:software:qview:qview_6:qcl_library:ir10edgtminp [2017/01/20 12:06] – [IMPLEMENTAZIONE] qem103 | en:software:qview:qview_6:qcl_library:ir10edgtminp [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== IR10EdgTmInp ====== | ||
+ | |||
+ | **I = **//Input// | ||
+ | |||
+ | **R = **//Reading functions// | ||
+ | |||
+ | The IR10EdgTmInp function __detects the rising edge of a digital input__. | ||
+ | |||
+ | In particular: | ||
+ | |||
+ | *the function sets the flag on the rising edge whenever the digital input transitions from the off state (value 0) at the active state (value 1); | ||
+ | *the function sets the flag on the falling edge whenever the digital input transitions from the active state (value 1) at the off state (value 0); | ||
+ | *flags that pertain to both sides are reset automatically by the function after a settable time (timeReset). | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **IR10EdgTmInp (Input, FronteUp, FronteDw, timeReset)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | INPUT / SYSTEM | ||
+ | | OUT | GLOBAL | ||
+ | | OUT | GLOBAL | ||
+ | | IN | CONST SYSTEM | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | In the example the " | ||
+ | |||
+ | **IR10EdgTmInp (Input, FronteUp, FronteDw, timeReset)** | ||
+ | <code QCL> | ||
+ | IF FronteUp | ||
+ | SETOUT ofUscita | ||
+ | ENDIF | ||
+ | IF FronteDw | ||
+ | RESOUT ofUscita | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | * In order to be effective, the function should be placed at a point of the application that runs on every logical round. | ||
+ | * Front capture flags remain in the State for the ' | ||