private UInt64 arc(float x, float y, float z, float r, float x1, float y1, float z1, float r1) { UInt64 cmdIndex = 0; ARCCmd arcCmd; arcCmd.cirPoint_x = x; arcCmd.cirPoint_y = y; arcCmd.cirPoint_z = z; arcCmd.cirPoint_r = r; arcCmd.toPoint_x = x1; arcCmd.toPoint_y = y1; arcCmd.toPoint_z = z1; arcCmd.toPoint_r = r1; while (true) { int ret = DobotDll.SetARCCmd(ref arcCmd, true, ref cmdIndex); if (ret == 0) { break; } } return(cmdIndex); }