1 - To this effect, I used directly the function block FB_DBOdbcConnectionAdd For that here are the settings I completed: sNetID:=, eDBType:= eDBType_ODBC_PostgreSQL, eDBValueType:=eDBValue_Double, sDBDriver:='', //sDBServer:= '127.0.0.1', sDBServer:= 'localhost', sDBDatabase:= 'Name_DataBase', nDBPort:=5432, //sDBProtocol:=, sDBUserId:= 'postgres', sDBPassword:='passCreated', sDBScheme:='public', //sDBSequence:=, //sDBClientDll:=, sDBTable:=’tbl_Name’, bExecute:=TRUE, tTimeout:=T#20S) 2 - Then I run the FB_DBConnectionOpen function to verify that a connection been added to the database. I wish I could access Postgresql database from TwinCAT software developed by Beckhoff. I installed Postgresql database on my laptop for development. I would first like to greet you and to thank those who answer my questions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |