Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 980

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

Advertisement

Processing details
• These instructions delete the record that meets the condition specified by (s3) in the table specified by (s2) in the database
corresponding to the identification number specified by (s1).
• Specify the deletion conditions in (s3). A maximum of two deletion conditions can be specified.
• If this instruction is executed by an interrupt program during execution of another instruction, no processing is performed.
• When the DBSELECT(P) instruction deletes a table recipeA record which matches the conditions in which the condition is
field 1=2, the following occurs.
Table recipeA (before deletion)
Field 1
WORD
1
2
3
Table recipeA (after deletion)
Field 1
WORD
1
3
• Upon successful completion, the completion signal in the completion device (d1)+0 is turned on and 0 is stored as the
completion status in the device (d2).
• The following figure shows the operation of the completion device at completion of the DBDELETE(P) instruction.
Program
DBDELETE(P) instruction
Completion device (d1)
Completion device (d1)+1
• SM753 (File being accessed) turns on while the DBDELETE(P) instruction is executed.
DBDELETE(P) instruction cannot be executed. If executed, no processing is performed. However, the instruction has been
completed with an error while the database access instruction is being executed.
• When "To Use or Not to Use the Built-in Database Access" is set to "Use" in the module parameter of the CPU module, the
DBDELETE(P) instruction cannot be executed while SM1498 (CPU module database start-up flag) is off.
processing is performed.
*2 For the firmware versions supporting SM753 and SM1498, refer to the list of special relay areas. ( MELSEC iQ-R CPU Module
User's Manual (Application))
7 APPLICATION INSTRUCTIONS
978
7.21 Database Access Instructions
Field 2
Field 3
WSTRING
INT
(16 characters maximum)
ProductA
100
ProductB
200
ProductC
300
Field 2
Field 3
WSTRING
INT
(16 characters maximum)
ProductA
100
ProductC
300
END processing
OFF
OFF
Deleting data
from the database
END processing
END processing
ON
ON
Error completion
*2
While SM753 is on, the
*2
If executed, no

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents