651
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
27 Data Operation 3 – FNC210 to FNC219
27.5 FNC214 – SFL / Bit Shift Left with Carry
21
FNC160-FNC169
Real Time Clock
Control
22
FNC170-FNC179
External Device
23
FNC180
Alternate
Instructions
24
FNC181-FNC189
Others
25
FNC190-FNC199
Block Data
Operation
26
FNC200-FNC209
Character String
Control
27
FNC210-FNC219
Data
Operation 3
28
FNC220-FNC249
Data
Comparison
29
FNC250-FNC269
Data Table
Operation
30
FNC270-FNC276
Ex-Device
When a bit device is specified by digit specification
4K bits are shifted according to the data of bit specification.
Related device
→ For the carry flag use method, refer to Subsection 6.5.2.
Error
An operation error is caused in the following cases; The error flag M8067 turns ON, and the error code is stored in
D8067.
• When a negative value is set to “n” (error code: K6706)
Program example
In the program example shown below, the contents of Y010 to Y017 are shifted leftward by the number of bits
specified by D0 when X020 turns ON.
Device Name Description
M8022 Carry flag Shifts the ON/OFF status of bit “n”.
FNC214
SFL
K2M10 K3
Command
input
0 0 1 1 0 0 1 1
1 0 0 1 1 0 0 01
M17 M14M13 M10
M17 M14M13 M10M12
Carry flag
M8022
Become “0”.
X020
FNC214
SFLP
K2Y10 D0
END
0 0 1 1 0 0 1 1
1 0 0 1 1 0 0 01
Y17 Y14 Y13 Y10
Y17 Y14 Y13 Y10Y12
3
D0
Carry flag
M8022
Become “0”.