Mitsubishi MELSEC iQ-F FX5 series Programming Manual page 358

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

Advertisement

Processing details
• The contents of (s) are written to "(n)-1" devices from (d)+1, and "1" is added to the number of data stored in (d). For
example, for (d)=0, the contents are written to (d)+1, and for (d)=1, to (d)+2.
(s)
(d)
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
(n)
(d)+6
(d)+7
(d)+8
(d)+9
(d)+10
(d)+(n)-1
• At the first execution, the contents of (s) are stored in (d)+1.
• When the contents of (s) are changed and then the instruction is executed again, the new contents of (s) are stored to
(d)+2. So the contents of +2 become equivalent to (s). (When the continuous operation type SFWR instruction is used, the
contents are stored in each operation cycle. Use the pulse operation type SFWRP instruction in programming.) Data is
stored from the right end in the same way, and the number of stored data is specified by the contents of the pointer (d).
Precautions
• In the case of the continuous operation type instruction (SFWR), note that data is stored (overwritten) in every scan time
(operation cycle).
Operation error
Error code
Description
(SD0/SD8067)
2820
The number of device points (n) from (d) exceeds the device range.
3405
The value set in (n) is other than the following.
2(n)32768
In (d), a negative value is specified.
7 APPLICATION INSTRUCTION
356
7.5 Data table operation instruction
(s)
(d)
Pointer
(s)
(d)+2
(d)+3
(d)+4
(d)+5
Executed at
the 1st time
(d)+6
((d) = 0)
(d)+7
(d)+8
(d)+9
(d)+10
(d)+(n)-1
Pointer
(d)+1  (d)
(K0)
(K1)
(d)+3
(d)+4
(d)+5
Executed at the 2nd time
(d)+6
(d)+7
(d)+8
(d)+9
(d)+10
(d)+(n)-1
(s)
Pointer
(d)+1  (d)
(d)
(K1)
(K2)
(s)
(s)

Advertisement

Table of Contents
loading

Table of Contents