LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Modbus function codes

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?

0 Kudos
Message 1 of 2
(1,602 Views)

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

0 Kudos
Message 2 of 2
(1,574 Views)