Appendix A
A-3
A
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
A-1-2 Variables Used in the DB Connection Instructions
This section describes the details of the variables used in the DB Connection Instructions.
Common Input and Output Variables Used in the DB Connection Instructions
DBConnection
DBConnection DB Connection DWORD DB Connection output from a DB_Connect instruction.
The instructions are executed for a specified DB Connection.
Meaning Data type Description
ServiceStatus DB Connection
_sDBC_SERVICE_STATUS Structure to show the status of the DB
Status Service Status _eDBC_STATUS Enumeration data type to show the
service status
_DBC_STATUS_IDLE(0): Idle
_DBC_STATUS_RUNNING(1):
Running in Operation Mode
_DBC_STATUS_TEST(2):
DebugLog Debug Log Flag BOOL TRUE while the Debug Log is recorded.
FALSE while recording to the Debug Log
OperatingTime Operating Time TIME Time elapsed since the service was
ExecCnt Number of Normal
Executions
DINT Total number of times in all connections
when an SQL statement was normally
FailedCnt Number of Error
DINT Total number of times in all connections
when an SQL statement execution failed.
SpoolDataCnt Number of Spool
DINT Number of SQL statements stored in the
Spool memory in all connections.
Meaning Data type Description
ConnectionStatus DB Connection
Structure to show the status of a DB Connection.
Status Connection Status _eDBC_CONNECTION
_STATUS
Enumeration data type to show the status of a
DB Connection
_DBC_CONNECTION_STATUS_CLOSED(0):
Closed
_DBC_CONNECTION_STATUS_CONNECTED(1):
Connected
_DBC_CONNECTION_STATUS_DISCONNECTED(2):
Disconnected (Disconnected due to a network
failure while the DB is connected.)
Total time when the DB is connected.
DisconnectedTime Disconnected
TIME Total time when the DB is disconnected due to
DINT Number of times when an SQL statement was
executed normally in the DB Connection.
A-1 DB Connection Instructions and Variables
A-1-2 Variables Used in the DB Connection Instructions