An EtherCAT-based real-time control system design for a remote-direct-drive 2-DOF manipulator