Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 413

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

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)
Pointer
(d)+1
(d)+2
(d)+3
(d)+4
(d)+5
Executed at
(n)
the 1st time
(d)+6
((d) = 0)
(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)
2820H
The number of device points (n) from (d) exceeds the device range.
3405H
The value set in (n) is other than the following.
2(n)32768
In (d), a negative value is specified.
(s)
Pointer
(d)
(d)+1  (d)
(K0)
(K1)
(s)
(d)+2
(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)
(d)+3
(d)+4
(d)+5
(d)+6
(d)+7
(d)+8
(d)+9
(d)+10
(d)+(n)-1
8 APPLICATION INSTRUCTION
8.5 Data Table Operation Instruction
8
411

Hide quick links:

Advertisement

loading