Appendix A
A-14
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_Insert (Insert DB Record)
The DB_Insert instruction inserts values of a DB Map Variable to a table of the connected DB as a
record.
DB_Insert Insert DB
Record
FB
DB_Insert_instance (Execute,
DBConnection, MapVar,
TimeOut, Done, Busy, Error,
ErrorID, SendStatus);
Note The DB_Insert_instance is an instance of DB_Insert instruction, which is declared as a variable.
Variables
Input Variables
Specify the execution condition.
DBConnection DB Connection DWORD 16#00000000 to
Specify the DB Connection established
by a DB_Connect instruction.
--- --- Specify the DB Map Variable mapped
by a DB_CreateMapping instruction.
TimeOut Timeout TIME T#0s,
T#0.05s to
--- T#0s Specify the time to detect timeout.
When T#0s is specified, timeout is not
--- TRUE when the instruction is normally
Busy Executing BOOL TRUE or
--- TRUE when the instruction is being executed.
Error Error BOOL TRUE or
--- TRUE when the instruction is terminated due to
ErrorID Error Code WORD 16#0000 to
--- Contains the error code when an error occurs.
SendStatus Send
_eDBC_SEND_STATUS Depends on
--- Outputs the progress of transmission of the SQL
DBConnection Busy
Execute
Done
Error
ErrorID
MapVar
SendStatus
TimeOut