Deleting 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

Deleting the record in the data base

DBDELETE(P)
RnPCPU
RnCPU RnENCPU
(Process)
These instructions delete the record that meets the specified condition in the specified table in the database corresponding to
the specified identification number.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d1
s2
d2
s3
■Execution condition
Instruction
DBDELETE
DBDELETEP
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s1)
Database identification number
(s2)
Start device for storing the table name of the database to
be deleted.
(s3)
Start device for storing the deletion 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 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
976
7.21 Database Access Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(s2) (s3)
(d1) (d2)
Execution condition
*1
ST
ENO:=DBDELETE(EN,s1,s2,s3,d1,d2);
ENO:=DBDELETEP(EN,s1,s2,s3,d1,d2);
Range
Data type
1 to 4
16-bit signed binary
Unicode string
Word
Bit
Word
Bit
Bit
Data type (label)
ANY16
ANYSTRING_DOUBLE
*2
ANY16
ANYBIT_ARRAY
(Number of elements: 2)
ANY16
BOOL
BOOL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents