EasyManua.ls Logo

Omron NX701-1620

Omron NX701-1620
306 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
5 Other Functions
5-21
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
5
5-4 How to Prevent Losing SQL Statements
at Power Interruption
5-4-2 Procedures
When a DB_Update instruction is being executed
Create a DB Map Variable
(for resend)
Resend processing
required?
Close the DB Connection
DB_CreateMapping instruction
DB_Close instruction
Read output parameters of Busy
and SendStatus output variables
Change the output parameters of Busy and
SendStatus output variables to initial values
START
Establish a DB Connection
DB_Connect instruction
1st cycle of the
operation?
NO
YES
Resend processing required
Busy = TRUE and
SendStatus = _DBC_SEND_SENDING
Values of output
parameters of Busy and
SendStatus output
variables
Resend processing not required
Others
YES
END
NO
Re-execute the DB_Update
instruction
DB_Update instruction
Precautions for Correct Use
The value of the SendStatus output variable is overwritten when the value of the Execute
input variable is evaluated regardless of the value of the Execute input variable.
Therefore, write the user program so that the value of the SendStatus output variable is
read before evaluating the value of the Execute input variable of the DB Connection
Instruction in the first cycle of the operation.
The DB Connection Instruction is not executed if the Execute input variable is already
TRUE at the operation start. You need to change the Execute input variable to FALSE to
execute the instruction.

Table of Contents

Related product manuals