Beispiel #1
0
 public void LoadAndSetFushiData()
 {
     if (!this.axisSet.IgnoreX && this.apSet.UsePartX)
     {
         string code = GetPartCode(apSet.PartXNo);
         apSet.PartXData = _232Helper.SendMsg3(code, 9);
         card.SetLogPos(axisSet.AxisX, apSet.ReadFushiData(apSet.PartXData, (int)(card.GetLogPos(axisSet.AxisX) * 1000)));
     }
     if (!this.axisSet.IgnoreY && this.apSet.UsePartY)
     {
         string code = GetPartCode(apSet.PartYNo);
         apSet.PartYData = _232Helper.SendMsg3(code, 9);
         card.SetLogPos(axisSet.AxisY, apSet.ReadFushiData(apSet.PartYData, (int)(card.GetLogPos(axisSet.AxisY) * 1000)));
     }
     if (!this.axisSet.IgnoreW && this.apSet.UsePartW)
     {
         string code = GetPartCode(apSet.PartWNo);
         apSet.PartWData = _232Helper.SendMsg3(code, 9);
         card.SetLogPos(axisSet.AxisW, apSet.ReadFushiData(apSet.PartWData, (int)(card.GetLogPos(axisSet.AxisW) * 1000)));
     }
     if (!this.axisSet.IgnoreB && this.apSet.UsePartB)
     {
         string code = GetPartCode(apSet.PartBNo);
         apSet.PartBData = _232Helper.SendMsg3(code, 9);
         card.SetLogPos(axisSet.AxisB, apSet.ReadFushiData(apSet.PartBData, (int)(card.GetLogPos(axisSet.AxisB) * 1000)));
     }
     if (!this.axisSet.IgnoreC && this.apSet.UsePartC)
     {
         string code = GetPartCode(apSet.PartCNo);
         apSet.PartCData = _232Helper.SendMsg3(code, 9);
         card.SetLogPos(axisSet.AxisC, apSet.ReadFushiData(apSet.PartCData, (int)(card.GetLogPos(axisSet.AxisC) * 1000)));
     }
 }