I would like to create my own I2C libraries with help of https://forge.codesys.com/drv/io-drivers/doc/I2C/?version=1
However, I need to use it in Runtime without adding devices into a device tree in Codesys Development System which means i need to dynamically add I2C devices with IEC code.
Is it possible to just instantiate the library FBs and use it in Runtime?
in the forum examples,
there is an example you just add I2C master and
use the fb's to access the I2C device in your code.
I think this is what you need to archive this.
Thanks Mr. Edwin.
It seems the example project direct access to I2C_Master address without using I2C library FB.
What if i add I2C_Master and instantiate I2C library FB and use it? (no connection between I2C_Master and I2C device library FB) Nothing happen?
Log in to post a comment.