![background image](http://html.mh-extra.com/html/mitsubishi-electric/melsec-iq-f-fx5/melsec-iq-f-fx5_programming-manual_239114409.webp)
8 APPLICATION INSTRUCTION
8.5 Data Table Operation Instruction
407
8
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
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)
(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
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......