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