I am trying to just spin one (each) motor slowly and individually in order to trim the current using the trimpots. I'm using coolterm and connecting ok but i'm not sure how to command one motor at a time to run
is there a way i can like say :
motor1: spin 400 steps speed: 8rps
then
motor2: spin 400 steps speed: 8rps
then
motor3: spin 400 steps speed: 8rps
... to test each motor? i'm trying with
G0 X10 and motor 1 moves
g0 z10 and motor 2 moves (shouldn't this be motor three? )
and g0 x-10 and nothing happens
i'm setting my parameters as follows which i think is correct (my motors are 400 steps per rev).
Motor settings should look like:
(hint - developers use MACOS, zero indexing)
[1ma] m1 map to axis 0 [0=X,1=Y,2=Z...]
[2ma] m2 map to axis 1 [0=X,1=Y,2=Z...]
[3ma] m3 map to axis 2 [0=X,1=Y,2=Z...]
Are you sure you sure physical motors are wired as you report?
I know of no easy way to get a particular rotational speed , such as 8rps.
If you just want to slow them down, Try
G1 X10 F800
and keep lowering F800 until you get the speed you want.
G0 moves are made at $xvm (for x axis)
G1 moves are made at "F" speed (usually specked in the Gcode ), Fspeed is the desired machining speed,
Same for G2 and G3 (arc) moves.
Note - these are big moves for a typical machine. Your motors are not connected, just spinning in air, correct?
If you really want 8rps, then do some calculations
1 rev = 62.83 (mm?) (are you sure, implies a rather large pulley?)
8 revs = 8*62.83 mm = 502.64mm
So G1 X502.64 F30158 [F is in mm/min (502.64*60)]
Should cause X motor to rotate 8 times in one second.
In one second, you won't notice tinyG jerk and third order control.
But if you issue
G1 X502.64 F3015.8
it should take 10 seconds to move 8 revolutions.
You should see tinyG ramp the motor up and ramp motor down (3rd order motion rather than on-off linear)
Hmmmm, a couple things.
First, if you are curious, you can decode the “{“r”:{},”f”:[1,0,19,78]}” to say the Gcode command sent was executed with status=0, == OK.
The "f" structure is discussed here:
I can’t get any motor to spin at a constant speed through cool terminal
Do motors move at all? You used the term 'constant'; a G1 X500 F200 command should cause the x motor to ramp up to F200 rotation speed then ramp down to zero speed after it computes that the Xaxis has moved 500mm.
I would call that movement, but not 'constant speed'.
Or do you mean 'I want the motor to start up and keep spinning until I stop it...?'
When you send the sample G Code file using CoolTerm, does anything happen?
Do you see green LEDs flicker near the motor connectors?
Do you see streaming position updates coming back via Coolterm as the G code runs?
Do you have your Axes disable by chance?
$xam, $yam and $Zam should all be = 1 [standard]
I sort of think so, based on your questions, but just checking.
Having just re-read that, I see it as assuming that the motors are connected to your machine. If you run the exercise of trimming current with the motors free spinning, you will want to rerun the procedure once the motors are under machine load.
But, free spinning experiments is a good way to get some experience with minimal downside (like driving an axis into a side rail with an incorrect command)