Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
10 Applied Instructions (Rotation and Shift Operation)
10.8 WSFL / Word Shift Left
217
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied Instructions
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
Function and operation explanation
1. 16-bit operation (WSFL, WSFLP)
For "n1" word devices starting from the device specified by , "n2" words are shifted leftward (1) and 2)
shown below).
After shift, "n2" words starting from the device specified by are shifted to "n2" words starting from the
device specified by .
Cautions
1) Note that "n2" words are shifted every time the drive input turns ON from OFF in WSFLP instruction, but
that "n2" words are shifted in each operation cycle in WSFL instruction.
2) Some restrictions to applicable devices
S1:The FX
3S, FX3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S2:The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S3:The FX
3U and FX3UC PLCs only are applicable.
Error
If the transfer source specified by is equivalent to the shifted device specified by , an operation error
occurs (error code: K6710).
WSFL
EN
s
n1
ENO
d
n2
Word data length
Number of words
Command input
Stored data
Shift data
+2
1)
+1
3) Copy
2)
+8 +7 +6
d d d
+5 +4 +3
d d d
+2 +1
d d d
+2 +1 +8 +7 +6 +5 +4 +3
d d dd d d d d d
s s s
Before
execution
After
execution
n2 (in the case of "n2 = 3")
n1 (in the case of "n1 = 9")
Overflow
(data to be deleted)
"n2" words are shifted
leftward (n2 = 3).
+2 to before shift (n2 = 3).
s s
+5 to before shift (n2 = 3).
d d