319
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.6 FNC 35 – SFTL / Bit Shift Left
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
Program example (conditional stepping of 1-bit data)
By setting X000 to X007 to ON in turn, Y000 to Y007 are activated in turn.
If the order is wrong, activation is disabled.
X000
S 0
M8046
S 1
S 7
M8000
X000
M8046
X001
X002
X000
FNC 35
SFTL
M 0 S 0 K 8 K 1
M 0
Head data
Data
input
FNC 12
MOV
K2S 0 K2Y000
END
(S 7 to S 0)
→
(Y007 to Y000)
Bit 1 of M0 is regarded as the head input, and 8-bit shift register is
constructed by S0 to S7.
Even if X000 is set to ON, Y000 is not activated.
X000
X001
X007
Y001
Y007
Y000
*1
*1 By using a state relay (S), the state under operation can be monitored
by the dynamic monitoring function of the state relay.
M8047
STL monitor is valid.