Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 967

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

Advertisement

Ex.
When updating Output of a record with ID = 0002H to 35 using the DBUPDATE(P) instruction
[Production result table (proReport)]
ID
Product
0001H
"AAA1"
0002H
"BBB2"
0003H
"CCC3"
[Program]
DBUPDATE
D0
"proReport"
Table name
The program updates the information of ID 0002H
by using the DBUPDATE instruction.
(1) Second condition data sizeWORD type (1 word)
(2) 0 for the second condition which is not used
(3) Field name of first update condition
(4) The condition number is "=". Set K1.
(5) No logical operator setting value is used. Set K0.
(6) Set K2 for the determination value.
Output
32
35
38
·
Database
D100
D200
D300
M0
[Number of fields]
D100 0001H
[Field name]
D101 O
D107 0000H
D132 0000H
[Record size]
D200 0001H
[Setting value]
D202 K35
D500
[Conditions]
D300 0001H
D304 0000H
u
t
p
D333 0000H
u
D334 K1
t
D335 K0
D336 K2
·
WORD type (1 word)
K35 is set.
7 APPLICATION INSTRUCTIONS
7.21 Database Access Instructions
→(1)
0000H
→(2)
I
D
(3)
·
→(4)
→(5)
→(6)
7
965

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents