Appendix A
A-86
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Sample Programming
This section gives sample programming for shutting down the DB Connection Service when the trigger
variable changes to TRUE.
Ladder Diagram
Main Variables
Instance of DB_Shutdown instruction
Trigger BOOL FALSE Variable used as a trigger for shutting down the DB Connection
Shutdown_OK BOOL FALSE This variable changes to TRUE when the DB_Shutdown instruction
Sample Programming
- Shut down the DB Connection Service.
Shut down the DB Connection Service.
When the instruction is normally completed, change the variable Shutdown_OK to TRUE.
DB_Shutdown_instance.Done
Structured Text (ST)
Main Variables
Instance of DB_Shutdown instruction
Trigger BOOL FALSE Variable used as a trigger for shutting down the DB Connection
Variable to retain the trigger status of the previous execution
Operating BOOL FALSE Shutting down the DB Connection Service is executed when this
The initialization processing is executed when this variable is TRUE.
ShutdownOK BOOL FALSE This variable changes to TRUE when the DB_Shutdown instruction