I have set up a VFD to receive Modbus commands from the PLC.
There is a tutorial doc for setting up a new RS-485 channel and object, but that doesn't seem to be where the issue comes from.
In short, I used a sysMbMRtu_FC06 function block as a Modbus function code 06 to write a single register corresponding to address 42331 (the VFD's speed input address).
This is run in a background program (MB_Task set as background program) as per the function block description.
When I download the code, it hangs up at 'Waiting for target to reboot'.
I can successfully escape the freeze by hitting the RST and then going back online.
I can open a simple program and download a ladder, no problem. The freezing is only when I add the Modbus function blocks (still stuck after about 10 mins, so something is definitely wrong with the reboot).