Here is a recent post of mine that shows one way of hooking up the G540 to the PLC input of a VFD, it shows a Huanyang, but most have the option of sink or source input direct, without the need for the relay.
http://www.cnczone.com/forums/spindl...equipment.html
Al.