Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 411

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

Advertisement

Processing details
• Every time the instruction is executed for the word devices (s) to (s)+(n)-1, a device "(s) + Pointer data (s)" is read to (d).
(The last data entry written by the shift write (SFWR) instruction for first-in first-out control is read to (d).) Specify any value
between 2 and 32767 for (n).
• Subtract "1" from the value of the pointer data (s).
Data for FILO control
Description
(s)
Pointer data (amount of data stored)
(s)+1
Data area
(First-in data written by shift write (SFWR) instruction)
(s)+2
(s)+3
(s)+(n)-3
(s)+(n)-2
(s)+(n)-1
Pointer
(s)
K4
(s)+1
(s)+2
(s)+3
(s)+4
Data area
(s)+5
(s)+6
(s)+(n)-2
(s)+(n)-1
Precautions
• If programed in the continuous operation type, the POP(P) instructions are executed in every operation cycle. As a result,
expected operation may not be achieved. Usually, program the POP(P) instructions in the "pulse operation type", or let
them be executed by a "pulsed command contact".
• When the current value of the pointer (s) is "0", the zero flag SM8020 turns ON and the POP(P) instructions are not
executed.
• When the current value of the pointer (s) is "1", "0" is written to (s) and the zero flag SM8020 turns ON.
Operation error
Error code
Description
(SD0/SD8067)
2820H
The device range (s)+(n)-1 exceeds the device.
3405H
(s) is larger than (n)-1.
(s) is smaller than 0.
The value set in (n) is other than the following.
2(n)32768
Pointer
(s)
K4  K3
(s)+1
(s)+2
(s)+3
(s)+4
(s)+5
No data area
(s)+6
(s)+(n)-2
(s)+(n)-1
(d)
8 APPLICATION INSTRUCTION
8.5 Data Table Operation Instruction
8
409

Hide quick links:

Advertisement

loading