Appendix A
A-35
A
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
DB_Select (Retrieve DB Record)
MapVar DB Map
Variable
Structure,
Structure
array (entire
Depends on
the data type.
--- Specify the DB Map Variable mapped by a
DB_CreateMapping instruction.
Output Variables
--- 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.
RecCnt Number of
DINT 0 to 65535 --- Contains the number of records that were
retrieved to the DB Map Variable.
SelectedCnt Number of
Retrieved
DINT 0 to
2147483647
--- Total number of records retrieved according to
the retrieval conditions.
Related System-defined Variables
_EIP_EtnOnlineSta Online BOOL Status of the communications function of
the built-in EtherNet/IP port.
TRUE: Can be used.
The value of the TimeOut input variable is outside the valid range.
041D hex Too Many Instructions Executed at the
More than 32 DB Connection Instructions were executed at the same
3000 hex DB Connection Service not Started The instruction was executed when the DB Connection Service was not
3002 hex DB Connection Service Shutdown or
The instruction was executed after the DB Connection Service was shut
down or while the DB Connection Service was being shut down.
3008 hex Invalid DB Connection The value of the DBConnection input variable is invalid or the specified
DB Connection is already closed.
300A hex DB Map Variable Unregistered The variable specified in the MapVar in-out variable has not been mapped
by a DB_CreateMapping instruction.
300B hex SQL Execution Error The executed SQL statement resulted in an error in the DB.
The retrieved record contains a column whose value is NULL.
The combination of data types is not listed in the table of data type
correspondence between NJ/NX-series Controllers and database and the
data type cannot be converted.
300E hex Invalid Retrieval Conditions The Where input variable is a text string consisting of NULL characters
DB Connection Instructions