Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
408
7  APPLICATION INSTRUCTIONS
7.3  Shift Instructions
Word shift right
WSFR(P)
*1 Do not set a negative value in the number of word points (n2) to be shifted to the right.
Processing details
 • Shifts (n1) words starting from (D) (n2) words to the right. After the shift, the function transfers (n2)-word data from (S) to 
the (n2) words from ((D)+(n1))-(n2).
• QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
(S):   Start number of the word device to be stored in shift data after shift to the right (BIN 16 bits)
(D):   Start number of word device to shift to the right (BIN 16 bits)
n1:   Word data length of shift data (n2 
 n1  512) (BIN 16 bits)
n2:   Number of word points to shift to the right (n2 
 n1  512)
 (BIN 16 bits)
Setting 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
K, H
Others
Bit
Word
Bit
Word
(S)
(D)
n1
n2
(1)  Overflow (deletion data)
(2)  n2 words shift to the right (n2=3)
(3)  Coping n2 words
Basic
High
performance
Process
Redundant
Universal
Ver.
LCPU
Ver.
WSFRP
WSFR
WSFR
WSFRP
S
D
D
n1
n1
n2
n2
S
Command
Command
(3)
(1)
(2)
(D)+8
(D)+7
(D)+6
(D)+5
(D)+4
(D)+3
(D)+2
(D)+1
(D)
(S)+2
(S)+1
(S)
(D)+8
(D)+7
(D)+6
(D)+5
(D)+4
(D)+3
(D)+2
(D)+1
(D)
Number of (n2) points (n2=3)
(S) to (S)+2 before execution (n2=3)
(D)+3 to (D)+8 before execution (n2=3)
Number of (n1) points (n1=9)
Before 
execution
After 
execution