EasyManua.ls Logo

Vector VEC-VA Series - FTRIG (Falling Edge Detection Command ); RTRIG (Rising Edge Detection Instruction )

Vector VEC-VA Series
649 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
VA Motion Controller Programming Manual
181
10.2.4 F_TRIG (falling edge detection command )
IL programming
language
LD, FBD programming language
Function: F _TRIG instruction is used to detect the falling edge of the input . If a falling edge
is detecteDAt the input CLK , the output Q will change from FALSE to TRUE until the next scan of
this command, the Q output will remain is TRUE
LD varl
ST F_TRIG_1.CLK
CAL F_TRIG_1
LD F_TRIG_1.Q
ST var2
ST
programming
language
F_TRIG_ 1 ( CLK:=var1 )
Var2:=F_TRIG_1.Q
Note :
IL, ST
language programming needs to insert variables
varl1~var2
or use constants in
the current
POU
variable worksheet
the F_TRIG
data processing instruction type
parameter
type of data
description
CLK
BOOL
Falling edge is valid
Q
BOOL
When
CLK
has a falling
edge,
Q=
changes from
0
to
1,
until the next scan
to this instruction
10.2.5 R_TRIG (rising edge detection instruction )
IL
programming
language
LD, FBD
programming language
Function: R _TRIG instruction is used to detect the rising edge of the input . If a rising edge is
detecteDAt the input CLK , the output Q will change from FALSE to TRUE until the next scan to this
command, the Q output will remain Is TRUE .
LD var1
ST R_TRIG_1.CLK
CAL R_TRIG_1
LD R_TRIG_1.Q
ST var2

Table of Contents

Related product manuals