35 EDGE DETECTION FUNCTION BLOCKS
35.1 Detecting a Rising Edge
1977
35
■Operation processing
When (s) turns on, (d) turns on only for one scan.
■Operation result
1. Function block without EN/ENO
The operation processing is performed. The operation result is output from (d).
• Timing chart
2. Function block with EN/ENO
The execution conditions and operation results will be as follows.
• Timing chart
There is no operation error.
(1) (d) turns on at the rising edge of (s).
(2) (d) turns off in the next scan.
Execution condition Operation result
EN ENO (d)
TRUE (executed) TRUE Operation result output value
FALSE (not executed) FALSE Previous output value
(1) (d) turns on at the rising edge of (s) while EN is on.
(2) (d) turns off in the next scan.
(3) If EN is off, (d) holds the output value of the last scan.
OFF
ON ON
(s)
OFF OFF
ON
OFF
ON
ON
OFF
ON
ON
OFF
ON
ON
OFF
ON
ON
OFF
ON
(d)
(2)
(1)
ON ON ON ON
OFF
ON ON ON ON
(s)
OFF
OFF
ON
OFF
ON
OFF
ON ON
(d)
EN
ENO
(2)
(1)
(3)