Appendix A
A-54
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_ControlService (Control DB Connection Service)
The DB_ControlService instruction starts/stops the DB Connection Service or starts/finishes recording
to the Debug Log.
DB_ControlService Control DB
Connection
Service
FB
DB_ControlService_instance
(Execute, Cmd, Done, Busy,
Error, ErrorID);
Note The DB_ControlService_instance is an instance of DB_ControlService instruction, which is declared as a variable.
Variables
Input Variables
Execute Execute BOOL TRUE or FALSE --- FALSE Specify the execution
Cmd Command _eDBC_CMD _DBC_CMD_START(1):
Start the service in Operation Mode
_DBC_CMD_START_TEST(2):
Start the service in Test Mode
_DBC_CMD_STOP(3): Stop the service
_DBC_CMD_DEBUGLOG_ON(4):
Start recording to Debug Log
_DBC_CMD_DEBUGLOG_OFF(5):
Finish recording to Debug Log
0 Specify the command to
execute
Output Variables
--- 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.
Busy
Execute
Done
Error
ErrorID
Cmd
DB_ControlService_instance