I’m using a MKR WiFi 1010 (hereafter refereed to as ‘the board’) as a modbus TCP server for Ignition. When I run just a TCP server on the board it works fine.
The board is used in combination with a MKR RS-485 Shield.
I also want to control a modbus VFD from the board which requires a modbus client instance.
When I try to run a combined code of TCP server and an RTU client simultaneously, the TCP server still works (slower than normal) but the RTU client will not work (i.e. the VFD doesn’t move the motor).
That code is attached. The part that I expect to work but does not is “updateVFD()”.
As a question to the group, is it possible to run a TCP server and an RTU client on the same device simultaneously?
I'm going to do a project write up on how to use arduino with Ignition. I'm learning Ignition for work just now but until we have an actual connection, having real live data from the arduino to work with is proving really valuable.