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.
Accept the trigger for closing the DB Connection.
Close the DB Connection MyDB1.
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.
Structured Text (ST)
Main Variables
_DBC_Status _sDBC_STATUS --- System-defined variable that shows the status of
the DB Connection Service
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
LastTrigger_Connect BOOL FALSE Variable to retain the trigger status of the previous
Operating_Connect BOOL FALSE The DB_Connect instruction is executed when this
OperatingStart_Connect BOOL FALSE The start processing for establishing the DB
Connection is executed when this variable is
DB Connection Instructions