3 Programming the DB Connection Function
3-25
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
3
3-5 Programming and Transfer
3-5-4 System-defined Variables
3-5-4 System-defined Variables
You can use the following system-defined variable in the DB Connection Service.
Common Variables of NX701-@@20, NJ501-@@20, and NJ101-@@20
Data type Meaning Function
Initial
_DBC_Status _sDBC_STATUS DB Connection
Service Status
Shows the operation status of the
DB Connection Service.
Refer to 4-3-1 Operation Status of
the DB Connection Service for
details on the operation status of
the DB Connection Service.
Run BOOL Running flag TRUE when the DB Connection
Service is running in Operation
FALSE
Test BOOL Test Mode TRUE when the DB Connection
Service is running in Test Mode.
FALSE
Idle BOOL Idle TRUE when the operation status of
the DB Connection Service is Idle.
FALSE
Error BOOL Error Stop Flag TRUE when the operation status of
the DB Connection Service is
FALSE
Shutdown BOOL Shutdown TRUE when the operation status of
the DB Connection Service is
_DBC_Version ARRAY[0..1] OF
USINT
DB Connection
Service version
The DB Connection Service version is stored. *1
The integer part of the version is stored in the
element number 0.
The decimal part of the version is stored in the
_JRE_Version ARRAY[0..1] OF
USINT
JRE version The JRE version is stored. *2
The integer part of the version is stored in the
element number 0.
The decimal part of the version is stored in the
*1 Example 1) In the case of the DB connection service version 1.00, “1“ is stored in the
element number 0 and “0“ is stored in the element number 1.
Example 2) In the case of the DB connection service version 1.10, 1 is stored in the element
number 0 and “10” is stored in the element number 1.
*2 Example 1) In the case of the JRE version 1.00, “1” is stored in the element number 0 and
“0” is stored in the element number 1.
Example 2) In the case of the JRE version 1.10, “1” is stored in the element number 0 and
“10” is stored in the element number 1.