Reading Oldest Data From Tables - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Reading oldest data from tables

FIFR(P)
High
Basic
Process
performance
FIFR
FIFRP
(S): Head number of the devices where the data read from the table will be stored (BIN 16 bits)
(D): Head number of the table (BIN 16 bits)
Setting
Internal device
data
Bit
(S)
(D)
Processing details
• Stores the oldest data ((D)+1) input to the table designated by (D) at the device designated by (S). After execution of the
FIFR(P) instruction, the data in the data table is all compressed up by one block.
Data table
3
D
5432
D
+1
1234
D
+2
4321
D
+3
0
D
+4
0
• Provide an interlock circuit not to execute the FIFR(P) instruction when the value stored in (D) is 0.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
Error
Error details
code
4100
The FIFR(P) instruction was executed when the value of (D) was 0.
4101
The data table range has exceeded the range of the corresponding devices
at execution of the FIFR(P) instruction.
7 APPLICATION INSTRUCTIONS
500
7.7 Data Table Operation Instructions
Redundant Universal
LCPU
Command
Command
R, ZR
Word
Number of stored
data blocks
D
D
D
D
J\
Bit
Word
Data table
2
D
1234
+1
4321
+2
Stores 0.
0
+3
0
+4
0
S
5432
Q00J/
Q00/
Q01
D
FIFR
S
S
D
FIFRP
U\G
Zn
Constant
QnH
QnPH
QnPRH
Others
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents