The citect SCADA is using DBF files to store some data.
Is it possible to use ignition to read the DBF files.
There is a python module that can read the file. It works by importing the module and call it in the script.
https://dbfread.readthedocs.io/en/latest/
Not sure whether there's an ignition device module that can be used to read the file directly.
pturmel
2
Not a device driver, a database driver:
2 Likes
I see. It is not considered as a device but a db.
Citect has another file called cdk, it looks like no way to reas this file except from using cicode.
I found the following solution works well.
- Using pycharm or vscode to write and test the script.
- using dbf module.
dbf · PyPI
- write and test script to read/write dbf module.
- using python 3 to call the script from ignition, the script does not work if directly calling from ignition.
https://support.inductiveautomation.com/hc/en-us/articles/360056397252-Python-In-Ignition
refer to the other post for a bit more details about the issue if using ignition directly to call the dbf module.
You can still call the dbf read function from ignition directly.
Only the write function is not working well, at least to me.