-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Binding devices attributes via modbus #281
Comments
Hello, We have an example of how to create a modbus device here. The |
Hi Dominic,
Here is my code |
Hello @KacperKlys. I've taken your example and got it to work in https://github.com/DominicOram/LewisExample. The main issue was that you need to manually assign the interface to the device so that it has a reference. This may make sense as something the framework does for you, I'll have a think about adding it. I also fixed a couple of minor typos in your device, it should all now work fine. Please let me know how you get on. Out of curiosity what is the device that you are emulating? We should probably come up with a shared set of common devices. |
Hi @DominicOram , I have created first version of my device's simulator ChillerSimulator. I would be grateful for any comments or tips. I still have some questions. I thought that the idea of this framework is to have seperated layer of device and layer of ccommunication so we can create different types of interfaces for the particular device without changes in the code of device. In this case, the communication layer is associated with the device. Is there any way to rewrite this code to seperate those layers? Answering your question, this is chiller for control system of lasers, this device will be connected via modbus and then controlled by EPICS. |
Hi guys,
In the documentation file it is written that:
So my question is what does support binding mechanism in case of modbus.
In the example on github, there is only interface layer with
ModbusBasicDataBank
which initializes addresses and values.How I can get data from simulated device via modbus?
The text was updated successfully, but these errors were encountered: