Fnc 36 - Wsfr / Word Shift Right - Mitsubishi Electric FX3G SERIES Programming Manual

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
11.7
FNC 36 – WSFR / Word Shift Right
Outline
This instruction shifts word devices with "n1" data length rightward by "n2" words.
1. Instruction format
FNC 36
P
WSFR
2. Set data
Operand Type
S
D
n1
n2
*1.
Do not set a negative value to the number of words to be shifted rightward.
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
n1
n2
: This function is supported only in FX
Explanation of function and operation
1. 16-bit operation (WSFR and WSFRP)
For "n1" word devices starting from
After shift, "n2" words starting from
Command
input
FNC 36
WSFRP
Before
execution
[3] Copy
After
execution
S
Mnemonic
16-bit Instruction
WSFR
9 steps
WSFRP
Head device number to be stored to the shift data after rightward shift
Head word device number storing data to be shifted rightward
Word data length of the shift data n2 ≤ n1 ≤ 512
Number of words to be shifted rightward n2 ≤ n1 ≤ 512
Digit Specification
/FX
3U
3UC
, "n2" words are shifted rightward ([1] and [2] shown below).
D
are shifted to "n2" words starting from [
S
S
D
n1
n2 (in the case of "n2=3")
S
+2
S
+1
S
D
+8
D
+7
D
+6
+8
+7
+6
D
D
D
S
+2 to
before shift (n2=3)
11 Rotation and Shift Operation – FNC 30 to FNC 39
11.7 FNC 36 – WSFR / Word Shift Right
Operation Condition
32-bit Instruction
Continuous
Operation
Pulse (Single)
Operation
Description
*1
Word Devices
Special
System User
Unit
V
Z Modify K H
PLCs.
n2
n1 (in the case of "n1=9")
D
+5
D
+4
D
+3
D
[2]
"n2" bits are
shifted rightward
(n2=3).
D
+5
D
+4
D
+3
D
D
D
+8 to
+3 before shift (n2=3)
Mnemonic
Operation Condition
Data Type
16-bit binary
16-bit binary
16-bit binary
16-bit binary
Others
Con-
Real
Charac-
Index
stant
Number
ter String
E
" "
+n1-n2] ([3] shown below).
D
+2
+1
D
D
[1]
Overflow (data to
be deleted)
+2
D
+1
D
11
12
13
14
15
Pointer
P
16
17
18
19
20
307

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3uc series

Table of Contents