en:software:qview:qview_6:qcl_library:oa10settmout

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:oa10settmout [2017/01/23 15:04] – created qem103en:software:qview:qview_6:qcl_library:oa10settmout [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== OA10SetTmOut ======
 +
 +**O = **//Out//
 +
 +**A = **//Action//
 +
 +The OA10SetTmOut function __enable digital output for a set time as an argument.__\\
 +The activation takes place through a input (or a flag) when is 1 set out and keeps it set as long as the input (or the flag) itself goes to 0. At this point the activation time begins to decrease until 0, and when this happens the output is reset.
 +
 +===== IMPLEMENTATION =====
 +
 +**OA10SetTmOut (out01, var01, timeSet)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  OUT  |  OUTPUT  |  output  |  F  |Output setup|
 +|  IN  |  INPUT GLOBAL  |  var01  |  F  |Input (or flag) that enable the comparison|
 +|  IN  |  CONST SYSTEM  |  timeSet  |  L  |Output activation time (msec)|
 +
 +=== Example ===
 +
 +In this example the 'out01' output is activate for at least 1 sec when the 'Input01' input is enable.
 +
 +<code QCL>
 +timeSet = 1000 ;Sets the time to 1 sec
 +</code>
 +
 +**OA10SetTmOut (out01, Input01, timeSet)**
 +
 +=== Operation notes ====
 +
 +  * The function should be placed at a point of the application that runs on every round makes sense in order to be effective.