KEYENCE Visual KV Series User Manual
Page 354

8.2 Details
3-330
8
Chapter 8 Programming Examples
Timing diagram
Ladder diagram
Executes SET when all input relays 0000 to 0003 are ON.
Detects presence/absence of chewing gum packs at DOWN edge of 0000.
Outputs 1-s one-shot pulse from output relay 0500 when 1000 is OFF.
Coding
➮ Refer to p. 3-80.
Applications of SFT instruction
■ Alternating circuit
Every time input relay No. 0000 turns ON, 0500 turns alternately ON and OFF.
Timing diagram
Ladder diagram
Coding
➮ Refer to p. 3-82.
0000
1s
0001
0002
0003
0500
0000
1000
SE T
KEEP
1001
RES
0000
1001
DIFD
1001
0500
0500
#00010
T001
T001
0001 0002 0003
1000
Excecutes SET when
all input relays 0000 to
0003 are ON.
Detects presence/absence
of chewing gum packs at
DOWN edge of 0000.
Outputs 1-s one-shot pulse
from output relay 0500
when 1000 is OFF.
0000
0500
1000
1000
D
SFT
0000
2003
1000
CLK
RES
0500
1000
Line No.
Instruction
Operand
Line No.
Instruction
Operand
0000
LD
0000
0007
DIFD
1001
0001
AND
0001
0008
LD
1001
0002
AND
0002
0009
ANB
1000
0003
AND
0003
0010
OR
0500
0004
LD
1001
0011
ANB
T001
0005
KEEP
1000
0012
OUT
0500
0006
LD
0000
0013
TMR
001 #00010
Line No. Instruction
Operand
0000
LDB
1000
0001
LD
0000
0002
LD
2003
0003
SFT
1000 1000
0004
LD
1000
0005
OUT
0500
KVNKA Chap 08.p65
08.3.11, 0:12 PM
330