Mitsubishi Electric FX3G SERIES Programming Manual page 653

Programmable controllers
Hide thumbs Also See for FX3G SERIES:
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
When a bit device is specified by digit specification
4 K
bits are shifted according to the data bit specification.
Command
input
FNC213
SFRP
M11
M8
1
0
1
0
M11
M8 M7
0
0
0
0
Become "0".
Related device
Device
M8022
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 Y023 are shifted rightward by the number of bits
specified by D0 when X020 turns ON.
X020
Y23
Y20
1
0
1
D0
4
Y23
Y20 Y17
0
0
0
Become "0".
K3M0
K4
M7
M4 M3
1
0
1
0
1
0
1
M4 M3
1
0
1
0
1
0
1
Name
Carry flag
Shifts the ON/OFF status of bit "n-1".
FNC213
K3Y010
SFRP
Y17
Y14 Y13
0
1
0
1
0
1
0
Y14 Y13
0
1
0
1
0
1
0
27 Data Operation 3 – FNC210 to FNC219
27.4 FNC213 – SFR / Bit Shift Right with Carry
M0
0
Carry flag
M8022
M0
0
1
→ For the carry flag use method, refer to Subsection 6.5.2.
Description
D0
END
Y10
1
0
Carry flag
M8022
Y10
1
0
1
21
22
23
24
25
26
27
28
29
30
651

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents