private double getENC2() { int feedBackPos = new I32(); CCMNet.CS_mnet_m204_get_position(RingNoOfMNet, axisPara.SlaveIP, (U16)axisPara.AxisNo, ref feedBackPos); return(feedBackPos); }
private double getENC() { int feedBackPos = new I32(); double d_feedBackPos; CCMNet.CS_mnet_m204_get_position(RingNoOfMNet, axisPara.SlaveIP, (U16)axisPara.AxisNo, ref feedBackPos); d_feedBackPos = feedBackPos; if (axisPara.PulsePerRole != 0) { return(d_feedBackPos / axisPara.PulsePerRole * axisPara.DistPerRole); } else { return(0); } }