Appendix A
A-74
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Sample Programming
- Resend the SQL statements stored in the Spool memory when the status of the DB Connection is Connected.
Check the completion of the instruction.
DB_Get
Connection
Status_instance.Error
DB_ControlSpool_instance.Done
DB_ControlSpool_instance.Error
Get the status of the DB Connection.
DB_GetConnectionStatus_instance
Done
Busy
Error
ErrorID
ConnectionStatus
When the instruction is normally completed, change the Resend variable to TRUE if the status of the DB Connection is Connected.
DB_GetConnectionStatus_instance.Done
_eDBC_CONNECTION_STATUS#_DBC_CONNECTION_STATUS_CONNECTED
MyStatus.Status
_eDBC_CONNECTION_STATUS#_DBC_CONNECTION_STATUS_CONNECTED
MyStatus.Status