Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Toshio.K on December 08, 2021, 05:34:57 AM

Title: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 08, 2021, 05:34:57 AM
Hello.

To change the direction of rotation of the motor, in the case of Mach3, I checked Reversed.
What should I do with Mach4?
Title: Re: How to change the direction of rotation of the motor?
Post by: Steve Stallings on December 08, 2021, 10:36:34 AM
You will find the "reverse" check box near the bottom of the Configure Control, Motors tab. In the list at the right side, you must highlight (not just check the box) for the motor that you wish to configure.
Title: Re: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 08, 2021, 05:12:11 PM
Is it the red frame in the photo?
Should I click the arrow to flip it to a red arrow?
Title: Re: How to change the direction of rotation of the motor?
Post by: Steve Stallings on December 08, 2021, 06:55:03 PM
The method that I offered should not require any configuration changes for your SmoothStepper.

The SmoothStepper provides additional places to configure all its pins and this often confuses people when both the Mach Configure Control and the SmoothStepper configuration offer duplicate ways to do things. You will need to know which pin is your direction signal if you plan to alter it in the SmoothStepper configuration, but that should also work.
Title: Re: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 08, 2021, 11:05:03 PM
I think your method is better.
I attached a photo.
What should I do if I know the check in the red frame?
Please tell me in detail.
Title: Re: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 08, 2021, 11:07:49 PM
Check in the red frame.
Then I clicked on the motor.
It looks like the picture.
Is that all right?
Title: Re: How to change the direction of rotation of the motor?
Post by: Steve Stallings on December 09, 2021, 09:51:21 AM
It looks like you got the right settings. Remember to click on "Apply" to store the setting.

Your motor velocity plot looks strange because your acceleration is very low with respect to your maximum velocity. The motor cannot get to the requested maximum velocity during the simulated test interval.

A normal plot will look like a ramp up, a flat "cruise" zone followed by a ramp back down to zero.

Title: Re: How to change the direction of rotation of the motor?
Post by: joeaverage on December 09, 2021, 06:38:33 PM
Hi,
another way to swap the direction of a stepper, without any programming, is to swap the polarity of one (just one) winding of the stepper.

Craig
Title: Re: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 10, 2021, 12:34:18 AM
Hello.
It looks like the picture.
Is this okay?
Title: Re: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 10, 2021, 02:47:59 AM
Hello Craig.
I use the circuit in the photo to change the rotation of the spindle motor.
I use it to cut screws.
The inside of the blue frame is the circuit that changes the direction of rotation.
Title: Re: How to change the direction of rotation of the motor?
Post by: Steve Stallings on December 10, 2021, 09:25:06 AM
Your new Velocity plot image shows the kind of pattern that is typical for a system.

You may still need to adjust the Velocity and Acceleration to match the capabilities of your machine.
Title: Re: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 10, 2021, 11:58:13 PM
I'm not sure how to adjust it, so I'll try it while trying it out.
Title: Re: How to change the direction of rotation of the motor?
Post by: joeaverage on December 11, 2021, 02:36:59 AM
Hi,

Quote
I'm not sure how to adjust it, so I'll try it while trying it out.

The basic idea is to experiment until you find the best settings for your machine.

Most people concentrate on getting their machine to go as fast as possible in the expectation that the toolpath will run fastest.
That is often not in fact the case. With a complicated toolpath with many direction changes high acceleration is the answer.

When a toolpath changes direction, lets say a right angle corner, then the machine must decelerate to a near standstill in one direction
and then accelerate off in the new direction. The higher the acceleration capability the better and faster the machine can follow the programmed
toolpath. Its more about how quickly you can get up to speed than how fast the eventual speed is.

To find the best settings:
1) Set the velocity to be low to moderate based on your experience/guess.
2) Gradually increase the acceleration (while leaving velocity alone) until the machine starts to lose steps or stall.
3) Back off the acceleration until the machine accelerates and decelerates without losing steps, typically 20% lower than absolute max
and the onset of stalling.
4) Now gradually increase speed until the machine loses steps/stalls
5) Back off the velocity until the machine is stable and loses no steps.

Note that if you decrease the acceleration you may be able to increase the velocity, but given my earlier comment, don't take it too far,
high acceleration is best for good toolpath following.

Craig
Title: Re: How to change the direction of rotation of the motor?
Post by: Toshio.K on December 16, 2021, 02:49:38 AM
Hello everyone.
Succeeded in reverse rotation of the 3-axis servo motor (step / dir).
This is my first time with Mach4.
I was very happy.

However, the manual pulse generator does not work well now.
I looked here and imitated it.
https://www.warp9td.com/index.php/faq/faq-pendants-and-mpgs#MultiWirePendantInMachFour
× 10 and × 100 go too far.

If you know the cause, please tell me the solution.