Справочник Пользователя для Mitsubishi Electronics MELSEC -Q/L

Скачать
Страница из 1086
502
7  APPLICATION INSTRUCTIONS
7.7  Data Table Operation Instructions
Reading newest data from data tables
FPOP(P)
Processing details
 • Stores the newest data input to the table designated by (D) at the device designated by (S). After the execution of the 
FPOP instruction, the device storing the data read by the FPOP instruction is reset to 0.
 • Perform interlock to avoid executing the FPOP instruction when the value stored at (D) is 0. (Program example)
Operation error
 • In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
(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 
data
Internal device
R, ZR
J\
U\G
Zn
Constant
Others
Bit
Word
Bit
Word
(S)
(D)
Error 
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH
QnPRH QnU
LCPU
4100
The FPOP instruction was executed when the value of (D) was 0.
4101
The data table range exceeded the range of the corresponding device at the 
execution of the FPOP instruction.
Basic
Process
High
performance
Redundant Universal
LCPU
Command
Command
FPOPP
FPOP
S
S
FPOP
FPOPP
D
D
+1
+2
Data table
Number of stored 
data blocks
1234
5432
7
  -1000
0
+7
  -4321
+1
+2
Data table
1234
5432
6
  -1000
0
+7
0
  -4321
Stores 0.
D
D
D
D
D
D
D
D
S