21 DEVICES
21.3 User Device
337
21
Edge relay (V)
The edge relay is a device that memorizes operation results (on/off information) from the head of the ladder block, allowing its
use only by the EGP/EGF instruction. This device is executed for various objectives such as the rising (off and on) detection
in the structured programs by the index modification.
*1 Edge relay V0Z1 memorizes on/off information of X0Z1.
Step relay (S)
This device is used when specifying SFC program steps. This device is also used when specifying step No. through such
methods as verifying (monitor, current value changes) SFC programs with SFC control instructions or the engineering tool.
( MELSEC iQ-R Programming Manual (Program Design))
(1) When X1 is rising, this device is turned on for one scan duration.
SM400
X0Z1
V0Z1
SM400
*1 *1
MOV K0 Z1
FOR K10
M0Z1
INC Z1
NEXT
Return to the FOR instruction.
Clear the index register (Z1).
Specify the number of repeats
(10 times).
Turn on M0Z1 for 1 scan by the
rise of X0Z1.
Increment (+1) of the index
register (Z1)
X0
M0
V0
X1
M1
V1
OFF
OFF
OFF
OFF
OFF
OFF
ON
ON
ON
ON
ON
ON
(1)
Z1 = 0
Z1 = 1
1 scan
1 scan