Appendix A
A-75
A
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_ControlSpool (Resend/Clear Spool Data)
When the instruction is terminated due to an error, execute the error handler for the device (FaultHandler_GetConnectionStatus).
Program the FaultHandler_GetConnectionStatus according to the device.
DB_GetConnection
Status_instance.Error
// Error handler
FaultHandler_Get
ConnectionStatus();
MyDB1
_eDBC_SPOOL_CMD#_DBC_SPOOL_RESEND
When the instruction is terminated due to an error, change the variable ControlSpool_OK to FALSE.
DB_ControlSpool_instance.Error
// Error handler
ControlSpool_OK := FALSE
When the instruction is normally completed, change the variable ControlSpool_OK to TRUE.
DB_ControlSpool_instance.Done
// Error handler
ControlSpool_OK :=
TRUE
DB Connection Instructions