Replies: 2 comments 1 reply
-
Please read the documentation and/or examples, there are several hooks available. |
Beta Was this translation helpful? Give feedback.
-
I've been reading the docs all day and I still don't know how to accomplish what I need. When a server received a write command 6/16 from a client, I want to have some options to reject it if, I don't want it writeable, or to make sure the values is within a certain range. I'm playing with the CustomDataBlock, the the setValues handles all writes, not just the ones from a client. IOW, getting values from an instrument and using setValues is how I fill my registers for the client.
So, is there a way for me to do:
Right now, Kura Wires -Modbus asset publish mb values to a internal broker. The container subscribes to it then when a valid mqtt message comes in, the values are used to fill the modbus server's registers. This all works great. Now I need to do the reverse, and publish data back when a register is written with an allowed value. PymodbusTcp has what I'm talking about and that's why I'm trying to figure it out for pyModbus.
|
Beta Was this translation helpful? Give feedback.
-
Are there any types of hooks/callback or custom handler that gets called during a register read or write?
I need some custom code to perform certain actions, especially during a write for a HR.
Beta Was this translation helpful? Give feedback.
All reactions