03-26-2025 08:50 AM
Hi everyone,
I'm currently using the standard/sample Modbus TCP Master VI to send holding register values to a PLC. At the moment, I need to manually press the "Set Holding Registers" button each time I want to transfer data to the PLC.
I’m trying to modify the VI to automate this process and eliminate the need for manual interaction. However, I haven’t had any success so far.
Has anyone implemented this kind of automation or could provide guidance on how to achieve it?
The Modbus Master Sample VI is attached.
Thanks in advance!
Serdar Akin
Solved! Go to Solution.
03-26-2025 09:01 AM - edited 03-26-2025 09:02 AM
Hi Serdar,
This would be the way to change that example VI.
The better way for automation could be to convert the whole VI into a simple state machine of "connect", "set registers", "disconnect"… (I guess you want to include this VI inside a main control routine/VI, don't you!?)
03-27-2025 07:16 AM
Hi Gerd,
Thank you for your quick response.
Your 1st solution was a" spot-on solution" for me and worked out well.
Thank you for your support and effort.
Best regards,
Serdar