Clearpath servomotor --> 50Nm --> suggestion
-
@arnix said in Clearpath servomotor --> 50Nm --> suggestion:
Do i need to add something to config.g file (M569 command)
Yes, you will need to add a T parameters to the M569 commands for the external drivers, which I presume are P5 P6 and P7. The Clearpath manual should say what values you need (they are step pulse width, step pulse interval, direction setup time, and direction hold time).
Then send G91 and then G1 S2 commands to test the motors individually.
-
Not to much to set up the Clearpath, once it is installed run the auto calibration as per instructions. The other thing is steps, the Clearpath has a setting for frequency and config.g M92 has steps per mm. if the frequency is to high and the steps is too low the motor shaft appears to not move, if it is the opposite the motor will turn very fast. Since you are using a reduction gear experiment before attaching the gear box. You will probably want to start with the frequency setting at its lowest. I set my frequency so the steps is around two to three hundred. then dial in M92 to get the proper travel. You don’t have this capability with a stepper motor.
-
@dc42
Hi David and thank you for replay.
P5 P6 and P7 ... step pulse width, step pulse interval, direction setup time, and direction hold time
So, basic setup should be something like this:
M569 P5 S1 ;
M569 P6 S1 ;
M569 P7 S1 ;
M569 P5 R1 T 2:2:5 ( need to be checked with manual )
... ?@Edkirk
Autocalibration:- i run the auto calibration part with 70% peak and it completed without problems. Gearbox is running as it should. At 2500 rpm i get 100 rpm / minute on gearbox. Weight test is also passed ok ( tested with 3 kg on gearbox shaft ). Now, there is an option for setup acceleration but i dont know what is some minimal or maximal value. If i set some bigger or lower value, then some defined limit value, will this be automatically corrected in MSP ? I know its basic question but motor is too expensive to test it with try / fail option :-). At the moment i have 2500 RPM ( max is 3010 RPM ) and acceleration is set to 3000...
Gear:
- OK, i will test it without gearbox, but after test i need to make auto calibration again. Should this auto tuning setup be "compatible" with my M92 / M569 manual tuning defined in duet ?
A.
-
Auto calibration is used to define how the servo works with the machine, fun to see the motor work. Other then remap outputs to the output board and calibrate steps per mm I didn’t make any other changes to Duet, other then miss wiring the motor it hard to damage the motor. Have you actually operated the motors with Duet?
-
I will test duet tomorrow. Can you share your M92 and M569 setup ?
-
My M92 and M569 are useless to your application which are machine specific and will be determined by the action of your machine. Mine is a corexy and I have not clue of what you are doing other then driving Clearpath servos with a Duet controller.
-
@Edkirk
I agree. But is there anything else accept those two command , that i need to watch for ?And, do you define M569 for each drive (p5/6/7 ) ?
A.
A.
-
HI guys !
We have finally set up the main rotary delta robot. Most of the problems ware in upper arm production and setup,but we solve it. Now it' time to wire all this. I will post picture of work in progress so someone alse can benefit from this too.Question:
I need to run auto calibration on each motor but the upper arm is now tightened to gearbox shaft. As far as i remember in the first auto calibration test, motor shaft has turn full circle few times and i can not do this now... Should i just dismantle the upper arm and make calibration without it or is there a way to set some option in calibration setup routine ?
A. -
I'm not sure what you mean by auto calibration, because RRF doesn't support that for rotary deltas. But you need to measure the upper arm angle at which each endstop triggers and put those angles into the M669 command.
-
i meant auto calibration as part of MSP software
It's related just to clearpath motor setup. -
Yes, you will need to add a T parameters to the M569 commands for the external drivers, which I presume are P5 P6 and P7. The Clearpath manual should say what values you need (they are step pulse width, step pulse interval, direction setup time, and direction hold time).
I have completed MSP auto config on all motors and they are ready for duet test. I will try with one motor just to see if this will work.
There is one thing that i dont understand...
Dont i need to set M584 command to remap motors to x,y,z, for use on external driver ? -
Yes, M584 X5 Y6 Z7
-
I still can not make any motor movements.
Just to be sure am doing this correctly, please guys, take a look at connections.... So far i have tested direct connection ( without 5V pin ) and with 5V pin. Pictures in attach...
Btw. I have connected white, blue, black and green to 5V pin. -
Sorry - your photos make no sense. I posted a photo of a working system back in January showing the Clearpath wiring plugged directly into the expansion board.
-
Hi EdKirk and thank you for reply.
Really no need to apologize. I am in learning phase with this kind of setup so any reply is more then welcome.I have tried to connect wires on the exactly same way as you did ( from left to right --> orange/blue/brown/white/yellow/ black ) but there was no movement whatsoever, so i pulled all positive wires (inputA+, inputB+, enable+, HLFB+ ) and hook them to 5V pin. I was thinking that this would help solving the "logic" part because its written in manual that 5V is some startup voltage...
Did you make some other HW changes ?
Btw. this is the setup that am using at the moment and this are the command that i use for test :; Drives
M569 P0 S0 ; Drive 0 goes backwards
M569 P1 S0 ; Drive 1 goes forwards
M569 P2 S0 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes forwards
;------------------------------
M569 P5 R0 T3:3:3:3
M569 P6 R0 T3:3:3:3
M569 P7 R0 T3:3:3:3
M584 X5 Y6 Z7 E3:4Commands:
G91
G1 S2 Y50 F600Maybe there is a problem with my config setup ?
-
If the wires are connected properly the motors will work when configured properly and given a proper command. You should be able to read VDC on the enable pins and if my memory is correct the motor will hold hard when enable is energized, can not turn by hand. I don’t know if there is a command to energize enable. I don’t think you will get voltage on step and direction because they are digital signals. You can use G Code to rotate motors but I don’t commit it to memory, you will have to look it up. dc42 has some routines posted, I last used it in his setup instructions when setting up my Delta printer. Also if frequency is set to high in Clearpath the rpm will be so slow it appears to not be moving, set at a low number. Check if motor is frozen when given a command with Duet that means you are getting enable signal and something is going on. For normal operation with Duet everything has to be properly set up and correct. I found it difficult to convert from other controllers to Duet, very steep learning curve. I couldn’t get Duet to work until I ran the configurator and followed the instructions, no short cuts.
-
I did it ! It's working.
I have retested several times adapter that i hooked up to molex connector and everything was ok.
Connections are soldered and solid.Finaly i decide to cut it and connect teknic wires directly to new inline connector.
After sending G91 / G1 S2 X50 F1000 motor start to move slowly.The only thing i can think of is that the adapter wires ware to long and/or to big ( gauge)....
Am working on this for lat 6 hours, and after i changed HW and config for X times i found that mistake is general one.. Damn, i really need start to drink Thank you all for your comments !
Maybe i will need help with fine tuning but this is another story...
-
Go into Clearpath setup and lower the frequency, the motor will speed up. I like to run steps per mm in config.g around 200.
-
P.S. congratulations!!
-
Hi guys ! I had some login problems in the morning but now it's OK.
After vacation and battery recharge i can continue to work.There are few "problems" that i found during latest testing:
1.)
If i run G91 / G1 S2 X-50 F500 on the X axis motor, i get correct positioning and hand starts to lift, but..2.)
if i run the same command on Y axis, movement speed and positioning is totally different. In fact, i have to hit emergency stop because upper hand would hit the top of the construction. Funny part is that this will happen equal if i enter Y-10 or Y-1003.)
For some unknown reason i can not start motor on Z axis. I try to switch positions on different expansion board connectors and i rechecked all, but without luck. Btw. there are 3,3V on this connector so this should work.I have two power supply's. On one i have hooked X and Y motor and Z is on separate one.
I changed this too but nothing happened.At the moment, this is my current setting:
M669 K10 U380 L900 A-10:7.3 R15 H1000 B500 ; rotary delta
M669 X150 Y150 Z150 ; rotate +X direction by 150deg
M666 X0 Y0 Z0 ; endstop adjustments
M574 X2 Y2 Z2 S0 ; END STOP SWITCHES; Drives
M569 P0 S0 ; Drive 0 goes backwards
M569 P1 S0 ; Drive 1 goes forwards
M569 P2 S0 ; Drive 2 goes forwards
M569 P3 S0 ; Drive 3 goes forwards
;------------------------------
M569 P5 R0 T3:3:3:3 ; Drive X
M569 P6 R0 T3:3:3:3 ; Drive Y
M569 P7 R0 T3:3:3:3 ; Drive Z
M584 X5 Y6 Z7 E3:4
;-------------------------------
M92 X88.889 Y88.889 Z88.889 ; Set steps per mm
M350 X16 Y16 Z16 I0 ; Configure microstepping without interpolation
;-------------------------------
M566 X2000 Y2000 Z2000 E ; Set maximum instantaneous speed changes (mm/min)
M203 X100000 Y100000 Z100000 E0 ; Set maximum speeds (mm/min)
M201 X8000 Y8000 Z8000 E0 ; Set accelerations (mm/s^2)
M906 X2100 Y2100 Z2100 E800 I70 ;Set motor currents (mA) and motor idle factor
M84 S15 ; Set idle timeout..A.