Function
This instruction is used to close the DB Connection specified in the DBConnection input variable.
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.
ï‚– 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.
ï‚– When the DB Connection Service was started in Test Mode, this instruction is completed normally without
connecting to the DB actually.
ï‚– An error occurs for this instruction in the following cases. Error will be TRUE.
ï‚– When the instruction was executed when the DB Connection Service was not running
ï‚– When the instruction was executed while the initialization processing of the DB Connection Service
was in progress
ï‚– When the instruction was executed while the DB Connection Service was stopped due to an error
ï‚– When the instruction was executed after the DB Connection Service was shut down or while the DB
Connection Service was being shut down
ï‚– When the value of the DBConnection input variable is invalid or the specified DB Connection is
already closed
ï‚– When more than 32 DB Connection Instructions were executed at the same time
Sample Programming
Refer to the sample programming that is provided for the DB_Update instruction.