EasyManua.ls Logo

Mitsubishi MELSEC iQ-F FX5 series

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
352
7 APPLICATION INSTRUCTION
7.5 Data table operation instruction
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.
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
(SD0/SD8067)
Description
2820 The number of device points (n) from (s) exceed the device range.
3405 The value set in (n) is other than the following.
2(n)32768
In (s), a negative value is specified.
(d)
(s)
(s)+1
(s)+2
(s)+3
(s)+4
(s)+5
(s)+6
(s)+7
(s)+8
(s)+9
(s)+10
(s)+(n)
(n)
(s) = (n)
(d)
(s)
(s)+2
(s)+3
(s)+4
(s)+5
(s)+6
(s)+7
(s)+8
(s)+9
(s)+10
(s)+(n)
(s)+(n)
(s)+1
(s)-1 (s)
(d)
(s)
(s)+3
(s)+4
(s)+5
(s)+6
(s)+7
(s)+8
(s)+9
(s)+10
(s)+(n)
(s)+(n)
(s)+(n)
(s)+2
(s)-1 (s)
Pointer Pointer
Executed at the 2nd time
Pointer
Word data is
shifted.
Word data is
shifted.
Executed at
the 1st time

Table of Contents

Related product manuals