Appendix A
A-78
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_PutLog (Record Operation Log)
The DB_PutLog instruction puts a user-specified record into the Execution Log or Debug Log.
DB_PutLog Record
Operation Log
FB
DB_PutLog_instance (Execute,
LogType, LogCode, LogName,
LogMsg, Done, Busy, Error,
ErrorID);
Note The DB_PutLog_instance is an instance of DB_PutLog instruction, which is declared as a variable.
Variables
Input Variables
Execute Execute BOOL TRUE or FALSE --- FALSE Specify the
LogType Log Type _eDBC_LOGTYPE _DBC_LOGTYPE_EXECUTION(1):
Execution Log
_DBC_LOGTYPE_DEBUG(2):
0
Specify the type of
log to output
LogCode Log Code INT 0 to 9999 --- 0 Specify the code to
LogName Log Name STRING 33 bytes max. (including the final
--- '' Specify the name to
LogMsg Log Message STRING 129 bytes max. (including the final
--- '' Specify the message
--- TRUE when the instruction is normally
Busy Executing BOOL TRUE or
--- TRUE when the instruction is being executed.
Error Error BOOL TRUE or
--- TRUE when the instruction is terminated due to
ErrorID Error Code WORD 16#0000 to
--- Contains the error code when an error occurs.
ErrorID
DB_PutLog
LogType Busy
Execute
Done
Error
LogCode
LogName
LogMsg
DB_PutLog_instance