//get command counter private double getPos() { int cmdPos = new int(); double CmdPosx; CCMNet.CS_mnet_m1_get_command(RingNoOfMNet, axisPara.SlaveIP, ref cmdPos); CmdPosx = cmdPos; if (axisPara.PulsePerRole != 0) { return(CmdPosx / axisPara.PulsePerRole * axisPara.DistPerRole); } else { return(0); } }