EasyManua.ls Logo

Omron NX701-1620 - Page 269

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-81
A
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_PutLog (Record Operation Log)
Sample Programming
-Record the log code 100, log name Production Order, and log message Production Start, RecipeCode=12345678 into the Execution Log.
Check the completion of the DB_PutLog instruction.
OperatingEnd
DB_PutLog_nstance.Error
DB_PutLog_instance.Done
Accept the trigger.
Trigger
Operating
RS_instance
OperatingEnd
Set
Reset1
RS
Q1
Create the log message.
Operating
Msg := CONCAT(Production Start,RecipeCode=
,UDINT_TO_STRING(RecipeCode));
Record the log message into the Execution Log.
Operating
DB_PutLog_instance
Execute
LogType
LogCode
LogName
LogMsg
DB_PutLog
Done
Busy
Error
ErrorID
_eDBC_LOGTYPE#_DBC_LOGTYPE_EXECUTION
100
Production Order
Msg
When the instruction is normally completed, change the variable PutLog_OK to TRUE.
Operating
DB_PutLog_instance.Done
// Normal end processing
PutLog_OK := TRUE;
When the instruction is terminated due to an error, change the variable PutLog_OK to FALSE.
Operating
DB_PutLog_instance.Error
// Error handler
PutLog_OK := FALSE;
DB Connection Instructions

Table of Contents

Related product manuals