Omron NX701-1620 User Manual page 269

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

Advertisement

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

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents