Chapter 18 Edge Detection Function Blocks; Detecting A Rising Edge - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

Motion module instructions, standard functions/ function blocks
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

18
EDGE DETECTION FUNCTION BLOCKS
18.1

Detecting a Rising Edge

R_TRIG
These function blocks detect a signal rising edge, and outputs the pulse signal.
Structured text
Instance name(CLK:=s,Q:=d);
Setting data
■Description, type, data type
Argument
Description
s (CLK)
Rising edge detection input
d (Q)
Output
Processing details
■Operation processing
When (s) turns on, (d) turns on only for one scan.
■Operation result
The operation processing is performed. The operation result is output from (d).
• Timing chart
ON
ON
(s)
OFF
ON
ON
(d)
OFF
OFF
(1)
(2)
(1) (d) turns on at the rising edge of (s).
(2) (d) turns off in the next scan.
Operation error
There is no operation error.
ON
ON
ON
ON
OFF
OFF
Type
Input variable
Output variable
ON
ON
ON
ON
OFF
OFF
18 EDGE DETECTION FUNCTION BLOCKS
Data type
BOOL
BOOL
OFF
18.1 Detecting a Rising Edge
18
195

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents