355
CHAPTER 4 DEVICES
4
4.2 Internal User Devices
4.2.6 Edge relay (V)
4.2.6 Edge relay (V)
The edge relay (V) is a device in which the on/off information of contacts from the beginning of the ladder block is
memorized. The device can be used only as contacts (cannot be used as coils).
(1) Applications of the edge relay
The edge relay can be utilized to detect the leading edge (off to on) in programs configured using
index modification
.
*1 The on/off information for X0Z1 is stored in the V0Z1 edge relay.
For example, the on/off information of X0 is stored in V0, and that of X1 is stored in V1.
(2) Precautions
The edge relay of the same number cannot be used more than one time in a program.
X0 X1 X10 V1
Stores on/off information of
X0, X1, and X10.
Returns to FOR instruction.
SM400
X0Z1
V0Z1
SM400
*1
*1
MOV K0 Z1
FOR K10
M0Z1
INC Z1
NEXT
Clears index register (Z1).
Specifies the number of repeats (10 times).
Turns on M0Z1 1 scan,
followed by rise of X0Z1.
Increments index
register (Z1). (+1)
[Ladder example]
[Timing chart]
When Z1=0
When Z1=1
X0
M0
V0
X1
M1
V1
OFF
OFF
OFF
OFF
OFF
OFF
ON
ON
ON
ON
ON
ON
1 scan
1 scan
Turns on for 1 scan by rise of X1.