Omron NX701-1620 User Manual page 214

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

Advertisement

Appendix A
Insert production data to the DB Connection MyDB1.
Set the timeout for instruction execution to 200 ms.
Operating_Insert
When the instruction is terminated due to an error, execute the error handler for the device (FaultHandler_Insert).
Program the FaultHandler_Insert according to the device.
Operating_Insert
- Update the records in the DB Connection MyDB1 when the variable Trigger_Update changes to TRUE.
Check the completion of the DB_Update instruction.
DB_Update_instance.Done
DB_Update_instance.Error
Accept the trigger for updating DB records.
Trigger_Update
OperatingEnd_Update
Create production data to update.
Create the conditions for Where clause.
Operating_Update
A-26
DB_Insert_instance
DB_Insert
Execute
MyDB1
DBConnection
MapVar_Insert
MapVar
T#200ms
TimeOut
DB_Insert_instance.Error
RS_Update_instance
RS
Set
Q1
Reset1
// Create production data to update.
MapVar_Update.Status := 'OK';
MapVar_Update.FinishTime := GetTime();
//
Create conditions for Where clause ("LotNo" = XXXX AND "Status" = 'Busy')
WhereCond := CONCAT(
'"LotNo" = $'',
UINT_TO_STRING( LotNo ),
'$' AND "Status" = $'Busy$''
);
Done
Busy
Error
ErrorID
SendStatus
//
Go to next step when the instruction is not completed within the specified time
IF DB_Insert_instance.ErrorID = 16#3012 THEN
RETURN;
ENDIF;
// Close the DB Connection.
Trigger_Close := TRUE;
// Error handler
FaultHandler_Insert();
NJ/NX-series Database Connection CPU Units User's Manual (W527)
OperatingEnd_Update
Operating_Update

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents