Справочник Пользователя для Mitsubishi Electronics QCPU

Скачать
Страница из 1204
7-153
FIFR(P)
1
2
3
4
6
6
7
8
7
.7 Data T
able 
Oper
ation Instruction
s
7
.7.2 Reading oldest data fr
om tables (
F
IF
R(P))
7.7.2  
Reading oldest data from tables (FIFR(P))
FIFR(P)
Function
(1) Stores the oldest data (
+1) input to the table designated by 
 at the device designated by 
.
After the execution of the FIFR instruction, the data in the table is all compressed up by one 
block.
(2) Users should attempt to avoid executing the FIFR instruction if the value stored at 
 is 0.  
[See Program Example (1)]
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and 
an error code is stored into SD0.
 • The FIFR instruction was executed when the value at 
 was 0.
(Error code: 4100)
 • The data table range exceeded the corresponding device range at execution of the FIFR 
instruction.
(Error code: 4101)
: Head number of the devices where the data read from the table will be stored (BIN 16 bits)
: Head number of the table (BIN 16 bits)
Setting 
Data
Internal Devices 
R, ZR
J
\
U
\G
Zn
Constants
Other
Bit
Word
Bit
Word
––
––
––
––
Basic
Process
High
performance
Redundant Universal
Command
Command
FIFRP
FIFR
S
S
FIFR
FIFRP
D
D
S
D
S
D
D
D
S
+1
+2
Data table
Number of stored 
data blocks
5432
1234
3
0
0
+3
4321
Stores 0.
+4
+1
+2
Data table
1234
4321
2
0
0
+3
0
5432
+4
D
D
D
D
D
D
D
D
D
D
S
D
D