Пример #1
0
        protected void Connect()
        {
            try
            {
                A3200Controller = Aerotech.A3200.Controller.Connect();

                foreach (AerotechAxis a in AllAxes)
                {
                    a.Connect(this.A3200Controller);
                }

                foreach (AerotechIOController a in AllIOs)
                {
                    a.Connect(this.A3200Controller);
                }

                foreach (AerotechTool a in AllTools)
                {
                    a.Connect(this.A3200Controller);
                }

                A3200Controller.Commands.Motion.Setup.Absolute();
                A3200Controller.Commands.Motion.Setup.RampType(Aerotech.A3200.Commands.RampType.Scurve);
            }
            catch
            {
                throw new Exception("Can't connect to Aerotech A3200 Controller!\n (Service:A3200CommService)");
            }
        }
        protected void Connect()
        {
            try
            {
                A3200Controller = Aerotech.A3200.Controller.Connect();

                foreach (AerotechAxis a in AllAxes)
                {
                    a.Connect(this.A3200Controller);
                }

                foreach (AerotechIOController a in AllIOs)
                {
                    a.Connect(this.A3200Controller);
                }

                foreach (AerotechTool a in AllTools)
                {
                    a.Connect(this.A3200Controller);
                }

                A3200Controller.Commands.Motion.Setup.Absolute();
                A3200Controller.Commands.Motion.Setup.RampType(Aerotech.A3200.Commands.RampType.Scurve);
            }
            catch
            {
                throw new Exception("Can't connect to Aerotech A3200 Controller!\n (Service:A3200CommService)");
            }
        }