844
25 EDGE DETECTION FUNCTION BLOCKS
25.1 Rising Edge Detector
25 EDGE DETECTION FUNCTION BLOCKS
25.1 Rising Edge Detector
R_TRIG(_E)
These functions detect the rising edge of a signal, and output a pulse signal.
â– Descriptions, types, and data types
â– Operation processing
When (s) turns ON, (d) is turned ON only for one scan.
â– Operation result
1. Function block without EN/ENO
The operation processing is executed. The operation output value is output from (d).
• Timing chart
Ladder diagram Structured text
[Without EN/ENO] [With EN/ENO] [Without EN/ENO]
R_TRIG_1(CLK:=s,Q:=d);
[With EN/ENO]
R_TRIG_E_1(EN:=EN, ENO:=ENO CLK:=s,Q:=d);
Argument Description Type Data type
EN Execution condition (TRUE: Execution, FALSE: Stop) Input variable BOOL
s Rising edge detector input Input variable BOOL
ENO Output status (TRUE: Normal, FALSE: Abnormal) Output variable BOOL
d Output Output variable BOOL
OFF
ON
ON
(s)
OFF OFF
ON
OFF
ON
ON
OFF
ON
ON
OFF
ON
ON
OFF
ON
ON
OFF
ON
(d)
On the rising
edge of (s),
(d) turns on.
At the next scan,
(d) turns off.