Exemplo n.º 1
0
        public void goToPos(URCoordinates goC, bool waitDone = false)
        {
            if (!serverOn)
            {
                Console.WriteLine("尚未連線"); return;
            }

            StreamWriter txt;

            txt = new StreamWriter("Pos//GoTo.pos", false);
            txt.WriteLine("position");

            txt.WriteLine(goC.ToPos());
            txt.Flush();
            txt.Close();

            ReadingFile = "Pos//GoTo.pos";
            cmd         = mode.moveByFile;
            if (waitDone)
            {
                while (cmd == mode.stop)
                {
                    ;
                }
            }
        }
Exemplo n.º 2
0
 public URCoordinates(URCoordinates input)
 {
     X  = input.X;
     Y  = input.Y;
     Z  = input.Z;
     Rx = input.Rx;
     Ry = input.Ry;
     Rz = input.Rz;
 }