Function
This instruction is used to resend or clear the SQL statements stored in the Spool memory for the DB Connection
specified in the DBConnection input variable.
When you select manual resend for Spool data, the SQL statements stored in the Spool memory are resent by
executing this instruction.
Precautions for Correct Use
Execution of this instruction is continued until processing is completed even if the value of Execute changes to
FALSE or the execution time exceeds the task period. The value of Done changes to TRUE when processing
is completed. Use this to confirm normal completion of processing.
When you execute this instruction to resend the Spool data, this instruction just starts the Spool data resending
processing. When the value of the Done output variable changes to TRUE, the resending processing of the
SQL statements stored in the Spool memory has not been completed. Confirm the completion of resending
processing by reading the number of Spool data using the DB_GetConnectionStatus instruction.
When the Spool function is not enabled, this instruction will be completed normally without executing the
resend or clear processing of the SQL statements stored in the Spool memory.
The Clear Spool Data operation can be executed even when the DB Connection Service is not running.
Refer to Using this Section of the NJ/NX-series Instructions Reference Manual (Cat. No. W502) for a timing
chart for Execute, Done, Busy, and Error.
This instruction cannot be used on an event task. A compiling error will occur.