Updating The Record In The Data Base - Mitsubishi Electric MELSEC iQ-R Series Programming Manual

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

Advertisement

Updating the record in the data base

DBUPDATE(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions update all records that meet the specified condition in the specified table corresponding to the specified
identification number.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d1
s2
d2
s3
s4
s5
■Execution condition
Instruction
DBUPDATE
DBUPDATEP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Database identification number
(s2)
Start device for storing the table name of the database
table to be updated.
(s3)
Start device for storing the field name of the database to be
*1
updated.
(s4)
Start device for storing the updated data
(s5)
Start device for storing the update conditions (a maximum
of two conditions).
(d1)
Completion device (start device that turns on one scan
upon completion of instruction)
• (d1)+0: Completion signal
• (d1)+1: Error completion signal
(d2)
Completion status
• 0000: Completed successfully
• Other than 0000: Completed with an error (error code)
EN
Execution condition
ENO
Execution result
*1 The table and field names are case-sensitive.
*2 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
7 APPLICATION INSTRUCTIONS
962
7.21 Database Access Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2)
(s3)
(s4)
(s5)
(d1) (d2)
Execution condition
*1
ST
ENO:=DBUPDATE(EN,s1,s2,s3,s4,s5,d1,d2);
ENO:=DBUPDATEP(EN,s1,s2,s3,s4,s5,d1,d2);
Range
Data type
1 to 4
16-bit signed binary
Unicode string
Word
Word
Word
Bit
Word
Bit
Bit
Data type (label)
ANY16
ANYSTRING_DOUBLE
*2
ANY16
*2
ANY16
*2
ANY16
ANYBIT_ARRAY
(Number of elements: 2)
ANY16
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents