Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 974

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Ex.
When retrieving "Size(z)" with ID = 0001H using the DBSELECT(P) instruction
[Product information table (proInfo)]
ID
0001H
0002H
[Program]
DBSELECT
The program searches and outputs the
Size(z) value of ID 0001H by using the
DBSELECT instruction.
(1) Second condition data sizeWORD type (1 word)
(2) 0 for the second condition which is not used
(3) Maximum output size  20 words
(4) Maximum number of outputs  Default (0)
(5) Field name of first search condition
(6) The condition number is "=". Set K1.
(7) No logical operator setting value is used. Set K0.
(8) Set K1 for the determination value.
(9) K60 is output in WORD type (1 word).
7 APPLICATION INSTRUCTIONS
972
7.21 Database Access Instructions
Product
Size(x)
"AAA1"
80
"BBB2"
40
D0
D10
D100
D200
[Table name]
D10 p
r
o
I
n
f
o
D17 0000H
·
D42 0000H
Size(y)
100
90
·
Database
D300
M0
D500
[Number of fields]
D100
0001H
[Field name]
D101 S
i
z
e
(
z
)
D108 0000H
·
D132 0000H
Size(z)
60
40
[Output result]
D300
0001H
[Searched value]
D301
K60
Set conditions to search the value of
[Conditions]
ID 0001H.
D200 0001H
D201 0000H
D202 K20
D203
K0
D204
I
D
D206 0000H
·
D235 0000H
D236 K1
D237 K0
D238 K20
1 record
→(9)
→(1)
→(2)
→(3)
→(4)
(5)
→(6)
→(7)
→(8)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents