Example #1
0
        public void motorEnable()
        {
            WriteVinceMotorMessage l_MotorEnable = new WriteVinceMotorMessage(m_ID,
                                                                              WriteVinceMotorMessage.FOUR_SEGMENT_CODE.MOTOR_CONTROL, 0x0101);

            SendMessage(l_MotorEnable);
        }
Example #2
0
        public void setMotorMode(MOTOR_MODE f_MotorMode)
        {
            WriteVinceMotorMessage l_MotorChangeMode = null;

            switch (f_MotorMode)
            {
            case MOTOR_MODE.RELATIVE_POS:
                l_MotorChangeMode = new WriteVinceMotorMessage(m_ID,
                                                               WriteVinceMotorMessage.FOUR_SEGMENT_CODE.MOTOR_CONTROL, 0x0203);
                break;

            case MOTOR_MODE.VELOCITY:
                l_MotorChangeMode = new WriteVinceMotorMessage(m_ID,
                                                               WriteVinceMotorMessage.FOUR_SEGMENT_CODE.MOTOR_CONTROL, 0x0003);
                break;
            }
            SendMessage(l_MotorChangeMode);
        }