06-16-2023 11:39 AM - edited 06-16-2023 11:40 AM
Hello -- I'm very new to LabVIEW, and I'm trying to write a program that can communicate with an Alicat CODA Flow controller (manual attached - page 11 gives Modbus details).
I started with a really simple program to see if I can communicate with the controller, and I tried to write mass flow units to lb/min.
When I run the program, I get the error pictured below. I'm sure I'm missing several items to make this program work -- but is there anything I can do to successfully read and write to the controller? I attached the VI -- we use LabVIEW 2020.
Thank you in advance.
06-16-2023 11:59 AM
Without your device it's awfully hard to troubleshoot your code.
But you could use the Trace function to determine if the error is coming from the register read or register write.
That and the manual should point you in the right direction
06-16-2023 02:35 PM
Hi,
According to the manual you should use FC 16 (write multiple registers) to write to a register.
Function code 6 is force single register.
Kees