EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 975

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
7 APPLICATION INSTRUCTIONS
7.21 Database Access Instructions
973
7
Ex.
When retrieving the "Size(z)" value greater than ID = 0001H and less than ID = 00003H using the DBSELECT(P) instruction
(1) Second condition data sizeWORD type (1 word)
(2) Second condition data sizeWORD type (2 word)
(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 K4.
(7) The logical operator setting value is "AND". Set K1.
(8) Set K1 for the determination value.
(9) Field name of second search condition
(10)The condition number is "<". Set K3.
(11)No logical operator setting value is used. Set K0.
(12)Set K3 for the determination value.
(13)K40 is output in WORD type (1 word).
ID
0001H
0002H
Size(x)
80
40
·
Size(y)
100
90
Size(z)
60
40
0003H 60 110 50
Product
[Product information table (proInfo)]
"AAA1"
"BBB2"
"CCC3"
Database
DBSELECT D0 D10 D100 D300D200 M0 D500
D200 0001H →(1)
D201 0001H →(2)
D202 K20 →(3)
D203
D204
K0 →(4)
(5)
D
D206 0000H
·
D235 0000H
D236 K4 →(6)
D237 K1 →(7)
D238 K1 →(8)
D270 0000H
D271 K3 →(10)
D272 K0 →(11)
D273 K3 →(12)
D239 I
D240 D
D241 0000H
D10 p
I
n
o
D17 0000H
·
·
D42 0000H
f
r
o
D100 0001H
(9)
I
D101 S
D108 0000H
·
i
z
e
(
z
)
D132 0000H
→(13)
D300 0001H
D301 K40
The program searches and outputs the
Size(z) value of ID 0002H by using the
DBSELECT instruction.
[Program]
[Table name] [Number of fields] [Conditions]
Set conditions to search the value of
ID 0002H.
[Field name]
[Output result]
[Searched value]
1 record

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals