Appendix A 
 
A-84 
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_Shutdown (Shutdown DB Connection Service)
 
The DB_Shutdown instruction shuts down the DB Connection Service so as to prevent losing the 
Operation Log data. 
DB_Shutdown  Shutdown DB 
Connection 
Service 
FB 
DB_Shutdown_instance (Execute, 
Done, Busy, Error, ErrorID); 
Note The DB_Shutdown_instance is an instance of DB_Shutdown instruction, which is declared as a variable. 
 
Variables 
Input Variables 
Execute  Execute  BOOL  TRUE or FALSE  ---  FALSE  Specify the execution 
---  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. 
 
Related System-defined Variables 
System-defined 
Name  Data type  Valid range  Description 
_DBC_Status.Run  DB Connection 
Service Running 
BOOL  TRUE or FALSE  This variable changes to FALSE when this 
instruction is executed. 
_DBC_Status.Test  DB Connection 
Service Test Mode 
Status 
BOOL  TRUE or FALSE  This variable changes to FALSE when this 
instruction is executed. 
_DBC_Status.Shutdown  DB Connection 
Service Shutdown 
BOOL  TRUE or FALSE  This variable changes to TRUE when this 
instruction is executed. 
 
Busy 
Execute 
Done 
Error 
ErrorID