Professional Documents
Culture Documents
Principle EN
Principle EN
DBConn.sIPAddress := `192.168.1.10`;
DBConn.uiPort := 11001;
IF DBConn.xReady THEN
g_saRequest[1] := `SELECT id,iParam1,fParam2, `;
g_saRequest[2] := `sText1 FROM tTable1;
DBConn.xExecute := TRUE;
END_IF
SELECT id,iParam1,fParam2,sText1
IF DBConn.xDone THEN FROM tTable1
SELECT
x := g_saTableValues[1, 1]; id,iParam1,fParam2,sText1
DBConn.xExecute := FALSE; 1 FROM tTable1
END_IF
ODBC
2
Data...
Data...
4
1 - The control sends the SQL request to the Connector. 2 - The Connector login to the database
(e.g. “SELECT id,iParam1,fParam2,sText1 FROM tTable1“) and sends the SQL request to the database
4 - The Connector checks the number of data (to avoid an overflow in the 3 - The Connector checks the database answer
control) and sends the data and the state of the request to the control and receive the data (if there is data)