Omron NX701-1620 User Manual page 234

Machine automation controller nj/nx-series database connection cpu units
Hide thumbs Also See for NX701-1620:
Table of Contents

Advertisement

Appendix A
- Delete the records other than the latest one from the DB table
Check the completion of the DB_Delete instruction.
DB_Delete_instance.Done
DB_Delete_instance.Error
Accept the trigger for deleting DB records.
Request_Delete
OperatingEnd_Delete
Create the conditions for the Where clause.
Operating_Delete
Delete records from the table Production of the DB Connection MyDB1. Timeout is not monitored for the instruction execution.
Operating_Delete
WhereCond_Delete
Execute the normal end processing.
Operating_Delete
When the instruction is terminated due to an error, execute the error handler for the device (FaultHandler_Delete).
Program the FaultHandler_Delete for the device.
Operating_Delete
A-46
RS_Delete_instance
RS
Q1
Set
Reset1
// Create the conditions for the Where clause (Delete the records other than the latest one)
WhereCond_Delete := CONCAT( '"LotNo" = $'',
DB_Delete_instance
DB_Delete
Execute
MyDB1
DBConnection
'Production'
TableName
Where
TimeOut
DB_Delete_instance.Done
DB_Delete_instance.Error
UINT_TO_STRING( LotNo ),
'$' AND "FinishTime" < TO_TIMESTAMP($'',
DtToString( MapVar_Select[0].FinishTime),
'$',$'YYYY-MM-DD-HH24:MI:SS.FF9$')'
);
Done
Busy
Error
ErrorID
RecCnt
// Normal end processing
Request_Delete := FALSE;
// Error handler
FaultHandler_Delete();
Request_Delete := FALSE;
NJ/NX-series Database Connection CPU Units User's Manual (W527)
OperatingEnd_Delete
Operating_Delete

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents