OperatingStart_Close BOOL FALSE The start processing for closing the DB
Connection is executed when this variable is
Sample Programming
// - Establish a DB Connection named MyDatabase1 and map a table with a variable.
// Start the sequence when the variable Trigger_Connect changes to TRUE.
IF ( (Trigger_Connect=TRUE)
AND (LastTrigger_Connect=FALSE)
AND (_DBC_Status.Run=TRUE) ) THEN
OperatingStart_Connect := TRUE;
Operating_Connect := TRUE;
END_IF;
LastTrigger_Connect:=Trigger_Connect;
// Sequence start processing
IF (OperatingStart_Connect=TRUE) THEN
// Initialize the instances of the applicable DB Connection Instructions.
DB_Connect_instance( Execute:=FALSE );
DB_CreateMapping_Insert_instance(
Execute := FALSE,
MapVar := MapVar_Insert,
SQLType := _DBC_SQLTYPE_INSERT
);
DB_CreateMapping_Update_instance(
Execute := FALSE,
MapVar := MapVar_Update,
SQLType := _DBC_SQLTYPE_UPDATE
);
Stage := INT#1;
OperatingStart_Connect := FALSE;
END_IF;
// Establish the DB Connection named MyDatabese1