7 APPLICATION INSTRUCTIONS
7.21 Database Access Instructions
955
7
Processing details
• These instructions release the connection between the database identification number specified by (s) and the
corresponding database.
• 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 DBCLOSE(P) instruction.
• If the DBCLOSE(P) instruction is executed before DBCOMMIT(P) or DBROLBAK(P) while the transaction is run by the
DBTRANS(P) instruction, the transaction is determined in the status at the execution of the DBCLOSE(P) instruction.
• SM753 (File being accessed) turns on while the DBCLOSE(P) instruction is executed.
*1
While SM753 is on, the
DBCLOSE(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
DBCLOSE(P) instruction cannot be executed while SM1498 (CPU module database start-up flag) is off.
*1
If executed, no
processing is performed.
*1 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))
Precautions
In the following cases, the error completion signal in (d1)+1 is turned on and an error code is stored as the completion status
in the device (d2).
• The DBCLOSE(P) instruction is executed during execution of the database access instruction.
• The identification number specified by (s) is an already disconnected database.
• An identification number outside the setting range is specified by (s).
Operation error
For the error code stored in the completion status of the operand, refer to the following.
Page 986 Error codes related to database access instructions
Error code
(SD0)
Description
2820H
The area specified by (d1) exceeds the applicable range of the device/label used.
OFF
OFF
ON
ON
Program
DBCLOSE(P) instruction
Completion device (d1)
Completion device (d1)+1
END processing
END processing
END processing
Closing
the database
Error completion
Summary of Contents for MELSEC iQ-R Series
Page 1: ...MELSEC iQ R Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 24: ...22 INDEX 2092 INSTRUCTION INDEX 2093 REVISIONS 2104 WARRANTY 2105 TRADEMARKS 2106 ...
Page 34: ...32 MEMO ...
Page 35: ...33 PART 1 PART 1 OVERVIEW This part consists of the following chapter 1 OVERVIEW ...
Page 68: ...66 1 OVERVIEW 1 5 Precautions on Programming MEMO ...
Page 1448: ...1446 14 REDUNDANT SYSTEM INSTRUCTIONS 14 2 Disabling Enabling System Switching MEMO ...
Page 1972: ...1970 33 TIME DATA TYPE FUNCTIONS 33 4 Division MEMO ...
Page 2067: ...APPX Appendix 5 PID Control Program Examples 2065 A 252 Set PID control data for loop 2 ...
Page 2109: ......