08-22-2021 11:00 AM
I have a Modbus RTU device that uses special function codes, but am not sure how to implement this using the standard Modbus library. Is it possible to set up custom Modbus frames?
08-22-2021 12:02 PM
By custom function codes, do you mean functions outside of 03, 06, etc. the standard MODBUS function set? Or are you having trouble within a particular function like reading a register value?
It may seem daunting but it is actually not particularly difficult to use the low level VISA functions to implement MODBUS calls. I did this for a project recently because I had a very limited number of functions I needed to use and I did not want to require other developers get the MODBUS toolkit. See attached example