Appendix A
A-58
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Start recording to the Debug Log.
_eDBC_CMD#_DBC_CMD_DEBUGLOG_ON
Finish recording to the Debug Log.
_eDBC_CMD#_DBC_CMD_DEBUGLOG_
OFF
Command to start/finish recording to the Debug Log.
DB_ControlService_instance
When the instruction is normally completed, change the variable ControlService_OK to TRUE.
DB_ControlService_instance.Done
// Normal end processing
ControlService_OK := TRUE;
When the instruction is terminated due to an error, change the variable ControlService_OK to FALSE.
DB_ControlService_instance.Error
// Error handler
ControlService_OK := FALSE;
Structured Text (ST)
Main Variables
DB_ControlService_instance
Instance of DB_ControlService instruction
Variable used as a trigger for controlling the Debug Log
LastTrigger BOOL FALSE Variable to retain the trigger status of the previous
Operating BOOL FALSE The DB_ControlService instruction is executed when
OperatingStart BOOL FALSE The initialization processing is executed when this
MyCmd _eDBC_CMD --- This variable is assigned to the Cmd input variable to
DB_ControlService_instance.