changed fd - handle in canopen and motor funtions