private double getSpeed2() { double speed = 0; CCMNet.CS_mnet_m204_get_current_speed(RingNoOfMNet, axisPara.SlaveIP, (U16)axisPara.AxisNo, ref speed); return(speed); }
private double getSpeed() { double speed = 0; CCMNet.CS_mnet_m204_get_current_speed(RingNoOfMNet, axisPara.SlaveIP, (U16)axisPara.AxisNo, ref speed); if (axisPara.PulsePerRole != 0) { return(speed / axisPara.PulsePerRole * axisPara.DistPerRole); } else { return(0); } }