
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
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......