EasyManua.ls Logo

Omron NX701-1620 - Page 235

Omron NX701-1620
306 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Appendix A
A-47
A
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_Delete (Delete DB Record)
- Close the DB Connection MyDB1.
Check the completion of the DB_Close instruction.
DB_Close_instance.Done
OperatingEnd_Close
DB_
Close_instance.Error
Accept the trigger for closing the DB Connection.
Trigger_
Close
Operating
_Close
RS_Close_instance
OperatingEnd_Close
Set
Reset1
RS
Q1
Close the DB Connection MyDB1.
Operating_Close
DB_Close_instance
MyDB1
Execute
DBConnection
DB_Close
Done
Busy
Error
ErrorID
When the instruction is terminated due to an error, execute the error handler for the device (FaultHandler_Close).
Program the FaultHandler_Close according to the device.
Operating_Close
DB_Close_instance.Error
EN
FaultHandler_Close
FaultHandler_Close
Structured Text (ST)
Main Variables
Name
Data type
Initial value
Comment
_DBC_Status _sDBC_STATUS --- System-defined variable that shows the status of
the DB Connection Service
DB_Connect_instance
DB_Connect
---
Instance of DB_Connect instruction
MyDB1 DWORD --- Variable that is assigned to the DBConnection
output variable from DB_Connect_instance
LotNo UINT 1234 Variable to specify the lot number for
retrieving/deleting DB records
Trigger_Connect BOOL FALSE Variable used as a trigger for establishing a DB
Connection
LastTrigger_Connect BOOL FALSE Variable to retain the trigger status of the previous
execution
Operating_Connect BOOL FALSE The DB_Connect instruction is executed when this
variable is TRUE.
OperatingStart_Connect BOOL FALSE The start processing for establishing the DB
Connection is executed when this variable is
DB Connection Instructions

Table of Contents

Related product manuals