Appendix A
A-28
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
Structured Text (ST)
Main Variables
_DBC_Status _sDBC_STATUS --- System-defined variable that shows the status
of the DB Connection Service
Instance of DB_Connect instruction
MyDB1 DWORD --- This variable is assigned to the
DBConnection output variable from
Trigger_Connect BOOL FALSE Variable used as a trigger for establishing a
LastTrigger_Connect BOOL FALSE Variable to retain the trigger status of the
Operating_Connect BOOL FALSE The DB_Connect instruction is executed
when this variable is TRUE.
OperatingStart_Connect BOOL FALSE The start processing for establishing the DB
Connection is executed when this variable is
DB_CreateMapping_Insert_instance
Instance of DB_CreateMapping instruction
MapVar_Insert PRODUCTION_INSE
RT
--- This variable is assigned to the MapVar input
variable to
DB_CreateMapping_Insert_instance.
Instance of DB_Insert instruction
Production information: Product name
Production information: Lot number
Trigger_Insert BOOL FALSE Variable used as a trigger for inserting DB
LastTrigger_Insert BOOL FALSE Variable to retain the trigger status of the
Operating_Insert BOOL FALSE The DB_Insert instruction is executed when
OperatingStart_Insert BOOL FALSE The start processing for inserting DB records
is executed when this variable is TRUE.
DB_CreateMapping_Update_instance
Instance of DB_CreateMapping instruction
MapVar_Update PRODUCTION_UPD
ATE
--- This variable is assigned to the MapVar input
variable to
DB_CreateMapping_Update_instance.
Instance of DB_Update instruction
WhereCond STRING[256] --- This variable is assigned to the Where input
variable to
DB_CreateMapping_Update_instance.
Trigger_Update BOOL FALSE Variable used as a trigger for updating DB
LastTrigger_Update BOOL FALSE Variable to retain the trigger status of the
Operating_Update BOOL FALSE The DB_Update instruction is executed when
OperatingStart_Update BOOL FALSE The start processing for updating DB records
is executed when this variable is TRUE.