Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 409

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions transfer (read) (s)+1, which was sequentially written by the SFWR instruction, to (d), and shift the word
data of (n)-1 points starting from (s)+1 upward by 1 word. Then, these instructions decrease the number of data points
stored in (s) by 1.
(d)
Pointer
(s)
(s) = (n)
(s)+1
(s)+2
(s)+3
(s)+4
(s)+5
(n)
Executed at
(s)+6
the 1st time
(s)+7
(s)+8
(s)+9
(s)+10
(s)+(n)
• The data of (s)+1 is transferred (read) to (d). Accompanied by this transfer, the contents of the pointer (s) decrease, and the
data is shifted upward by 1 word. (When the continuous operation type SFRD instruction is used, the contents are stored in
turn in each operation cycle. Use the pulse operation type SFRDP instruction in programming.)
Precautions
• The contents of (s)+(n) do not change by reading.
• When the continuous operation type (SFRD) instruction is used, data is read in turn in each scan time (operation cycle), but
the contents of (s)+(n) do not change.
• When 0 is set in the pointer (s), no processing is executed and the contents of (d) do not change.
Operation error
Error code
Description
(SD0/SD8067)
2820H
The number of device points (n) from (s) exceed the device range.
3405H
The value set in (n) is other than the following.
2(n)32768
In (s), a negative value is specified.
(d)
Pointer
(s)
(s)-1  (s)
(s)+2
(s)+1
(s)+3
(s)+4
(s)+5
(s)+6
Executed at the 2nd time
(s)+7
(s)+8
(s)+9
(s)+10
Word data is
(s)+(n)
shifted.
(s)+(n)
(d)
Pointer
(s)
(s)-1 → (s)
(s)+3
(s)+2
(s)+4
(s)+5
(s)+6
(s)+7
(s)+8
(s)+9
(s)+10
(s)+(n)
Word data is
(s)+(n)
shifted.
(s)+(n)
8 APPLICATION INSTRUCTION
8.5 Data Table Operation Instruction
8
407

Hide quick links:

Advertisement

loading