Ignoring limit switches as requested, then the
relays are wired to the G540 correctly.
The motor loads controlled by the relays are not
wired correctly. You show each motor powered
between the relay switched Hot lead of the mains
and the safety Ground for the mains. While you
may indeed have a connection to safety Ground
from each motor, the power to the motor must
be between the relay switched Hot and the
Neutral of the mains.
Also, as you said, a power switch and a fuse or
circuit breaker is needed in the Hot side of the
connection to the mains.
Regards,
Steve Stallings
PMDX.COM - Products for CNC and motion control applications