Beispiel #1
0
        internal string StartSpindle()
        {
            string returnMes = "";

            if (IsSpiCon)
            {
                //need to account for Protocal Scheme and Max Speeds
                returnMes = returnMes + SpindleMotor.move(command);
            }
            else
            {
                returnMes = returnMes + "Lateral motor is not connected";
            }
            return(returnMes);
        }
Beispiel #2
0
        internal bool VerDir; // vertical motor direction


        //not completely happy with this constructor
        public MotorController(Controller controller)
        {
            //creation of communication protocals
            modbus = new Modbus();
            UDPCom = new UDPCom();

            Controller = controller;

            //creating the verticle motor, it communicates over USB RS424
            verticalMotor = new VerticalMotor();

            //creating the transverse motor, it communicatates over UDP or Modbus
            transverseMotor = new TransverseMotor(this);

            //creating the Lateral motor, it communicatates over UDP or Modbus
            lateralMotor = new LateralMotor(this);

            //creating the spindle motor, it communicatates over Modbus
            spindleMotor = new SpindleMotor(this);

            UpdateParameters();
        }