I’m looking at http://smoothieware.org/spindle-module and it has information on using modbus to control a VFD. However, the images on that page are broken; I have checked both Firefox and Chrome. The wayback machine has images visible for the circuits.
(I note that commercial boards are now available, though the ones I’ve found break out RE and DE separately, so presumably they should be tied to the dir pin.)