Distributed control for SCARA robot using CAN BUS