Sft: shift, Example, Description – KEYENCE Visual KV Series User Manual
Page 106

2.4 Instruction Details
3-82
2
Chapter 2 Instructions
SFT: Shift
Sets a shift register.
Example
Coding
Timing diagram
Description
•
First relay No. 1000 turns ON (OFF) when the data input relay is ON (OFF) at the
rising edge of the clock pulse.
•
Clock pulse
A)
shifts the ON status of input relay 0001 to relay 1000, and shifts
the status of other relays in sequence as shown in
A
) on the right.
•
When the data input is OFF as for clock pulse
E)
, OFF status is shifted to relay
1000.
•
When the RESET input relay turns ON, all the relays (from the first one to the last
one) turn OFF.
•
Several SFT instructions can be used in a program.
Note: No SFT operand relay No. can be duplicated in a program.
SFT
nnnn
mmmm
D
CLK
RES
O R
9
ORL
3
FUN
0001
0002
0003
1002
0500
SFT
D
1000
CLK
1002
RES
Line No.
Instruction
Operand
0000
LD
0001
0001
LD
0002
0002
LD
0003
0003
SFT
1000 1002
0004
LD
1002
0005
OUT
0500
0500
1002
1001
1000
0002
OFF
ON
0001
0003
OFF
ON
OFF
ON
ON
ON
ON
ON
ON
1002
1001
1000
0001
0 OFF
1 ON
0
0
1
1
A)
ON
ON
ON
ON
1002
1001
1000
0001
0
1
1
1
B)
1002
1001
1000
0001
1
1
1
1
C)
1002
1001
1000
0001
1
1
1
1
D)
1002
1001
1000
0001
1
1
0
0
E)
1002
1001
1000
0001
1
0
0
1
F)
1002
1001
1000
0001
0
0
1
1
G)
A
B
C
D
E
F
G
RESET input
Data input
First relay No.
Clock
Last relay No.
RESET input
Data input
Clock
:
SFT
Relay shift
operation
Lost
Lost
Lost
Lost
Lost
Lost
Lost
KVNKA Chap 02_4aP.p65
08.3.11, 11:58 AM
82