Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I am developing library based on the ModbusFB for making communication with the modbus slave with the device as master.
As below attached image
I had developed the library but i have below queries for the same.
1) How to pass data information(variables) of runtime instance of DriverFB from the defined same DriverFB to another FB inside library??
2) How to call different instances(formed in the codesys device tree) of the same DriverFB async??
3) How to write data information(variables) to the runtime instance of base DriverFB from the runtime instance of the extended DriverFB inside library??
4) How to update values in the different Input channels in the different instances(formed in the codesys device tree) of the defined same DriverFB??
5) In different IoMgrConfig Methods like IoMgrConfigGetConnector, IoMgrConfigGetFirstChild, IoMgrConfigGetNextConnector , IoMgrConfigGetNextChild etc we have an input parameter nCount. What is the significance of this?? what value do we have to pass here??
6) We have the same query regarding dwInstance.
7) How can we read all modules/slots defined/configured in a single connector??
For e.g. in parent xml we have a connector defined with count = 3, allowEmpty = True
Now we want to read all the modules/slots configured(in child) on the above parent connector. We tried to do this by using IoMgrConfigGetNextChild but it does not give the last child
Hello All,
I am developing library based on the ModbusFB for making communication with the modbus slave with the device as master.
As below attached image
I had developed the library but i have below queries for the same.
1) How to pass data information(variables) of runtime instance of DriverFB from the defined same DriverFB to another FB inside library??
2) How to call different instances(formed in the codesys device tree) of the same DriverFB async??
3) How to write data information(variables) to the runtime instance of base DriverFB from the runtime instance of the extended DriverFB inside library??
4) How to update values in the different Input channels in the different instances(formed in the codesys device tree) of the defined same DriverFB??
5) In different IoMgrConfig Methods like IoMgrConfigGetConnector, IoMgrConfigGetFirstChild, IoMgrConfigGetNextConnector , IoMgrConfigGetNextChild etc we have an input parameter nCount. What is the significance of this?? what value do we have to pass here??
6) We have the same query regarding dwInstance.
7) How can we read all modules/slots defined/configured in a single connector??
For e.g. in parent xml we have a connector defined with count = 3, allowEmpty = True
Now we want to read all the modules/slots configured(in child) on the above parent connector. We tried to do this by using IoMgrConfigGetNextChild but it does not give the last child
Last edit: smitmasibus 2021-10-10