Ejemplo n.º 1
0
        /// <summary>
        /// Demonstrates very basic automatic homing routine generation and execution
        /// </summary>
        static void RunHomingRoutineExample()
        {
            var axis = _Controller.GetAxis(0, "X");

            axis.CPU = 2000;

            axis.HomingParams.SourceType             = HOMING_ROUTINE_SOURCE_TYPE.AUTO;
            axis.HomingParams.HomeFastVel            = 1000;
            axis.HomingParams.HomeSlowVel            = 100;
            axis.HomingParams.HomeLimitBit           = 16;
            axis.HomingParams.HomeLimitState         = true;
            axis.HomingParams.RepeatHomeAtSlowerRate = true;
            axis.HomingParams.SequencePriority       = 1;
            axis.StartDoHome();
            // axis.DoHome();
        }