infineon4engi@twitter infineon@linkedin infineon4engineers infineon@youtube
twitter Facebook Linkedin Youtube

Banner_DigitalMotorController Banner_IMM100_Series Banner_IMC100Series Banner_IRMCSeries Banner_iMotionApplicationKit


+ Reply to Thread
Results 1 to 2 of 2

Thread: How to Reverse motor direction in mcedesigner for a demo?

  1. #1
    Beginner Beginner dwissel is on a distinguished road
    Join Date
    Mar 2020
    Posts
    19
    Points
    210

    How to Reverse motor direction in mcedesigner for a demo?

    I'm using EVAL-M1-101T driving EVAL-M1-CM610N3 and BLDC motor.
    I managed to go thru the wizard and start and even change speed of motor in MCEdesigner via Target Speed. That works great.
    Now How to set a REVERSE direction speed?
    I would think I'd be able to REVERSE the motor via a negative value entered for target speed as the value RANGE for TARGET SPEED does indeed include negative numbers.
    But so far a negative number entered on the fly stops the motor. If I stop and start the motor with a negative TARGET SPEED value, the motor defaults to the same direction and some default speed.

    Note: My MIN SPEED is set to 500. I notice that RANGE is only positive numbers from 0 to 16383.
    Is it NOT allowing me to reverse direction because the MIN SPEED is only a positive range?
    What am I missing?

  2. #2

    Infineon Employee
    Infineon Employee
    Expert
    Casey is on a distinguished road
    Join Date
    Dec 2019
    Posts
    48
    Quote Originally Posted by dwissel View Post
    I'm using EVAL-M1-101T driving EVAL-M1-CM610N3 and BLDC motor.
    I managed to go thru the wizard and start and even change speed of motor in MCEdesigner via Target Speed. That works great.
    Now How to set a REVERSE direction speed?
    I would think I'd be able to REVERSE the motor via a negative value entered for target speed as the value RANGE for TARGET SPEED does indeed include negative numbers.
    But so far a negative number entered on the fly stops the motor. If I stop and start the motor with a negative TARGET SPEED value, the motor defaults to the same direction and some default speed.

    Note: My MIN SPEED is set to 500. I notice that RANGE is only positive numbers from 0 to 16383.
    Is it NOT allowing me to reverse direction because the MIN SPEED is only a positive range?
    What am I missing?
    Changing the direction requires the speed to go down to zero before starting up in reverse direction. When motor speed is too low or motor is stopping, back EMF is too low for flux estimator and PLL to work reliably. It would lose track of speed and fail to restart the motor. Theres two ways you could approach this.
    You could change the target speed in the start sequence to change the direction during start-up: On the left side of MCEDesigner, open the start motor function and change the target speed there by putting your negative rpm.
    Another option is to create a new function in MCEDesigner by right clicking "User application function definitions" and executing this function even if the motor is already running:
    Command = 0
    Delay = 1000 ms
    TargetSpeed = -???
    Command = 1
    This sequence will restart the motor in reverse direction following the same start-up sequence that worked before in forward direction. The delay time will need to be adjusted for motor to come to a full stop.
    The views expressed here are my personal opinions, have not been reviewed or authorized by Infineon and do not necessarily represent the views of Infineon.

+ Reply to Thread

Tags for this Thread

Disclaimer

All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.


Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.


Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.