A-Motor settings

Post Reply
Pixopax
Posts: 122
Joined: Tue Feb 02, 2016 4:16 pm

A-Motor settings

Post by Pixopax »

I finally made my machine move :mrgreen:
And now I test it, but the A-Motor seems to run way too slow.

My settings are:

8 Microsteps
0,9 degree
160.000 mm travel per rev

If I press "Test A" it runs forever

Any ideas? I could not find the motor settings, just a screenshot in the manual.
Are there any official motor settings?


Update: I updated the TinG-Firmware, now all motors run in reverse... Updating the Firmware is not good right?
Pixopax
Posts: 122
Joined: Tue Feb 02, 2016 4:16 pm

Re: A-Motor settings

Post by Pixopax »

I fixed it, replaced the firmware, and replaced the motor settings, I was confused by the .0000
Travel per rev for Motor A is 160, not 160.000

The software seems to be incompatible to the newest tinyg-Firmware.

But now it runs fine :-)
Off go to the calibration part.
mrandt
Posts: 407
Joined: Mon Apr 27, 2015 10:56 am
Location: Stuttgart, Germany

Re: A-Motor settings

Post by mrandt »

Hi Louis,

glad to hear that it is working for you again.

One hint for you and others: If just the motor direction is wrong (but everything else works), you may invert it by sending the following commands to TinyG:

$1po=0
$2po=0
$3po=0
$4po=0

or

$1po=1
$2po=1
$3po=1
$4po=1

repectively.

$1 is motor for X, $2 for Y, $3 for Z and $4 for A.

Regards
Malte

I did have that problem on A-axis after experimenting with firmware.

Regards
Malte
Pixopax
Posts: 122
Joined: Tue Feb 02, 2016 4:16 pm

Re: A-Motor settings

Post by Pixopax »

There ist still something wrong with A,
could you give me the settings for the A-Motor?

If I enter a "g0 A1" then it shows me 288.00 on the A-Axis.

Also, a needle test starts running A forever.
Also, if I jog A with F9, it steps one time, the second time I hit F9 it runs forever, ending with a timeout error.

For Motor 4 I have:;

8 Microsteps
0.9 degree
160 mm travel per rev.
JuKu
Site Admin
Posts: 1110
Joined: Thu Feb 14, 2013 3:06 pm
Location: Tampere, Finland
Contact:

Re: A-Motor settings

Post by JuKu »

There are two groups of settings affecting this. TinyG has motors settings. Then, motors are mapped to axis (axee?). We use motor 4 to drive the A axis. My settings:

[4ma] m4 map to axis 3 [0=X,1=Y,2=Z...]
[4sa] m4 step angle 0.900 deg
[4tr] m4 travel per revolution 160.0000 mm
[4mi] m4 microsteps 8 [1,2,4,8]
[4po] m4 polarity 0 [0=normal,1=reverse]
[4pm] m4 power management 2 [0=disabled,1=always on,2=in cycle,3=when moving]

[aam] a axis mode 1 [standard]
[avm] a velocity maximum 120000 deg/min
[afr] a feedrate maximum 120000 deg/min
[atn] a travel minimum 400.000 deg
[atm] a travel maximum 400.000 deg
[ajm] a jerk maximum 1000 deg/min^3 * 1 million
[ajh] a jerk homing 5000 deg/min^3 * 1 million
[ajd] a junction deviation 0.0100 deg (larger is faster)
[ara] a radius value 1.0000 deg
[asn] a switch min 0 [0=off,1=homing,2=limit,3=limit+homing]
[asx] a switch max 0 [0=off,1=homing,2=limit,3=limit+homing]
[asv] a search velocity 6000 deg/min
[alv] a latch velocity 1000 deg/min
[alb] a latch backoff 5.000 deg
[azb] a zero backoff 2.000 deg

Not all settings are relevant in this application. From the command window, to change a setting you use, for example:
$aam=1

Btw, the aam setting should be 1.

> Also, a needle test starts running A forever.
> Also, if I jog A with F9, it steps one time, the second time I hit F9 it runs forever, ending with a timeout error.

If this continues after you think the settings are correct, I'd like to see the startup messages, the response to $$ command (which dumps all settings to log window in human readable format) and the log for this.

FYI: The downloads page has a link to a snapshot of my settings. That can be used for reference for any TinyG related settings issue. http://www.liteplacer.com/Downloads/Goodsettings.txt
JuKu
Site Admin
Posts: 1110
Joined: Thu Feb 14, 2013 3:06 pm
Location: Tampere, Finland
Contact:

Re: A-Motor settings

Post by JuKu »

> Update: I updated the TinG-Firmware, now all motors run in reverse... Updating the Firmware is not good right?

I'm not aware of any incompatibilities with the newest TinyG firmware, but I haven't tested it (it is on my todo list). The officially supported firmware is 438.02, which the board came with. If you need a copy, let me know.

> Travel per rev for Motor A is 160, not 160.000

This should work; I'll have a look.
Pixopax
Posts: 122
Joined: Tue Feb 02, 2016 4:16 pm

Re: A-Motor settings

Post by Pixopax »

Juha helped me:

$aam=1

was the solution. Now it works :D
Post Reply