PDA

View Full Version : Setting ADTECH servos with Eding CNC software steps/AppUnit



D-man
17-03-2015, 06:44 PM
I'm having trouble calculating the right steps/AppUnit for the servo motors im using...

Can anyone demonstrate how to calculate the correct settings so the motors move the correct distance ?

my setup consists of the following:

· ADTECH servos - http://www.adtechen.com/products/ACH-09075BC%28750W%29-Middle-Inertia-Servo-Motor.html

(http://www.adtechen.com/products/ACH-09075BC%28750W%29-Middle-Inertia-Servo-Motor.html)

· 3.2:1 belt reduction - CNCRouterparts pro rack and pinion drive - http://www.cncrouterparts.com/pro-rack-and-pinion-drive-nema-34-p-226.html

(http://www.cncrouterparts.com/pro-rack-and-pinion-drive-nema-34-p-226.html)

· 35 Tooth Pinion and MOD1 Rack

any help would be very much appreciated

JAZZCNC
17-03-2015, 07:46 PM
Bloody hell Derick do you realise with 35T and 3.2:1 you have 34mm pitch and with 2000Rpm motors you'll be getting in excess of 68M/min rapids.!!! . . . Tread careful mate the bloody gantry will flying off the end in blink of eye. . .Lol

Ok well you have 2500 count Encoders which will be quadrature so x4 gives 10,000 pulse per rev.
Then workout your Pitch which is 35 x Pi = 109.599mm per rev / 3.2(ratio)=34.361mm per rev

Now Calculation is 10,000 / 34.361 = 291.026 pulses per mm.

Hope you have a nice fast motion control card because you'll need nearly 300Khz to get full RPM from those motors.

D-man
17-03-2015, 07:55 PM
Yeah I will have to tame the beast pal. Nearly had one misshap when messing about with the speeds on the X with one motor disengaged and not slaved, I ramped the speed up a little and I capped myself!!

So if I enter that information I should get the correct movement when I enter movement in the MDI? For example: X100 F300 I should get 100mm travel at a feed rate of 300 correct?

JAZZCNC
17-03-2015, 08:05 PM
So if I enter that information I should get the correct movement when I enter movement in the MDI? For example: X100 F300 I should get 100mm travel at a feed rate of 300 correct?

Yep should work.! . . . But don't hold me to it. . Lol

D-man
17-03-2015, 08:10 PM
Champion I will give it a bash pal cheers

D-man
17-03-2015, 10:54 PM
Dean, I will be able to turn those rapids down tho correct?

JAZZCNC
18-03-2015, 12:18 AM
Dean, I will be able to turn those rapids down tho correct?

Yes just set velocity to what you feel happy with.!! . . Thou ideally you would have calculated the ratio better to make full use of the motors potential and give better resolution rather than wasting motors potential. To be honest with 6:1 ratio you'd have got away with 3000rpm 400w motors.

JAZZCNC
18-03-2015, 12:29 AM
Actually I've just thought and I think EdingCNC is limited to 125Khz frequency. In which case you won't get the full 2000rpm from those motors with 2500ppr encoders. You'll only get 750rpm unless you use electronic gearing using the drives, if they have that feature.

For the full 2000Rpm you'll need a frequency of 333khz.

D-man
18-03-2015, 02:26 AM
I think your right yeah I saw that in the settings... So will that affect the calculations?

Web Goblin
18-03-2015, 08:39 AM
What cpu card are you using and how are you handling positioning feedback from the servos?

D-man
18-03-2015, 08:46 AM
The board I'm using is this one http://www.edingcnc.com/products.php?productid=55

to be honest I'm not sure about the positioning I just know that there are two wires going into the inputs... At the moment I thought the encoder handled that

Web Goblin
18-03-2015, 09:18 AM
I take it that the encoder is connected to the servo amp then and that you are giving the amp step and direction pulses from the cpu card and the amp is handling the positioning control? I was just wondering because i didnt think that the eding cpu card took encoder inputs. I have the cpu 5b card for my next machine if I ever get it finished!

D-man
18-03-2015, 09:20 AM
I think so. I'm new to servos and was told to put what wires I have into the inputs :/ I will get some pics when I get into the unit this morn

D-man
18-03-2015, 10:17 AM
OK with those settings Dean i enter X100 F300 in the MDI and it moves 150.5mm so something is still off lol

JAZZCNC
18-03-2015, 02:38 PM
Ok well first the Servo drives are dealing with the encoders closing the loop at the drives and all your doing is sending it Step & Dir signals(pulses).

I did make a mistake when I said you'd get +68 M/min because I forgot about the ratio so RPM would be 625rpm at the pinion giving Max Velocity of 34.5 x 625 = 21.5M/min Rapids. . . BUT that would be with full 2000 rpm from motors which you won't get if 125Khz frequency. You'll only get 750(rpm) /3.2(ratio) = 234(rpm) x 34.5(pitch)=8085mm/min.
So really your wasting plenty of the motors potential and machine rapid speeds.

Why those figure didn't work I think can only be because your ratio is not what you think it is.?

D-man
20-03-2015, 08:58 AM
Thanks Dean I've managed to get the machine moving exactly 100mm, i'm over the moon! However the software would not disengage the motors when I tured the motors off so I'm having a little trouble with that at the moment. Oh the joys of CNC (Completely - No - Clue) lol

Web Goblin
20-03-2015, 09:45 AM
What do you mean when you turn the motors off? I didnt think that the software let go of the motors unless it had a failure or an emergency stop then you have to rehome the machine. I think that as soon as you press reset to start the machine the software has control.
You can check the amp enable output on the I/O screen to see the state of the I/O control.

D-man
20-03-2015, 10:07 AM
What I mean is, if I press the 'off button' it asks would I like to turn the motors off. If I click yes nothing happens and the motors are still energised

Web Goblin
20-03-2015, 10:53 AM
Is the enable drives output still on?

D-man
20-03-2015, 10:56 AM
When I put a tick in the box and save it.... It doesn't actually save it and the box is unchecked still

Web Goblin
20-03-2015, 11:14 AM
Oddly odd. If I get a chance I will check mine tonight and see what happens but I have a different cpu card from you. Might be best to email Bert and see what he says.

D-man
20-03-2015, 11:16 AM
I will do that thanks. I had pondered on reinstalling the software so it was fresh incase something had happened in the download. Suppose it couldn't hurt

Web Goblin
20-03-2015, 11:23 AM
Like you say it woudnt hurt. Just make sure that the install drivers bit completes after the program install. I think it does need all its own stuff to work correctly. You could also try inverting the amp enable output just to see what happens.

Web Goblin
20-03-2015, 04:22 PM
Just tried mine and it does turn off the drives and also the tick in the I/O screen for enable goes off. I am using V4.01 of the software.
Probably best to email Bert and see what he says.

D-man
20-03-2015, 04:23 PM
Ah I'm using 4.02. Wonder if I should use that version for now

Web Goblin
20-03-2015, 04:38 PM
It would be worth a try even if its just to see what happens. One thing I did notice was that after turning the drives off the button wont turn them back on. You have to press reset but that might be built into the software.

D-man
20-03-2015, 04:39 PM
Yeah same on this version too

Web Goblin
20-03-2015, 04:40 PM
Have a go with V4.01. You don't have to uninstall the version you have.

D-man
20-03-2015, 04:42 PM
Yeah I will pal,just finishing off some method statements for my company, worst job ever!

D-man
21-03-2015, 01:39 PM
OK, version 4.01 still acts the same... couple questions if you don't mind?



The light on the board - When the drives are enabled is this light supposed to stay on?
The 5V to enable the drives - which inputs are these to go into? i originally had the in 16 and GND and it works but motors would still stay engaged if i disabled the motors with the software.


Sorry - the IO screen that button does stay checked. I got mixed up, its actually the amp enable that will not stay checked.

I have also soldered the bottom of the board as asked

Web Goblin
21-03-2015, 07:05 PM
Looking at the flyer for the cpu card it looks like you are using the watchdog output to enable the drives which appears to be correct for this cpu card. I think that the green led should be on when the drives are on because the watchdog signal will be ok. I think that the watchdog output signal is staying on even though you are turning the drives off but I don't know if this is correct for this cpu. I have had a quick look at the servo amp manual but im not sure if it the correct one for your motor. It says that the amp enable should be 12 or 24vdc switched from its own internal supply. Are you using the watchdog signal to switch a relay for the servo amp enable signal?

D-man
21-03-2015, 08:32 PM
Yeah I'm using the watchdog to switch the signal to the drives.

The light switches on and off, however I wasn't sure which way it was supposed to be.

Do your motors continue to stay energised when you disable the motors within the software?

Web Goblin
21-03-2015, 08:57 PM
Yes they appear to switch off. If you are using a relay powered from the watchdog to switch the enable signal you can measure the voltage to the coil or see the coil switch. Looks like the info on the cpu says that the watchdog is green for ok and red for not so I presume that green is output signal and red no output signal. Can you check the voltage to the relay and see if it switches?

D-man
21-03-2015, 09:00 PM
Yeah it's 5v

Web Goblin
21-03-2015, 09:53 PM
Does the relay switch on and off with the 5v watchdog signal? Does the 12 or 24 vdc supply for the servo amp enable signal switch on and of with the relay? I think we need to get the basics checked first.

D-man
21-03-2015, 10:21 PM
Actually I think the drivers are hard wired..... See f I can get a pic of my installation up (using tap talk at the moment)

D-man
21-03-2015, 10:30 PM
http://tapatalk.imageshack.com/v2/15/03/21/a04a76559d6a4746ae7e03b485a0574b.jpg

D-man
21-03-2015, 10:35 PM
http://tapatalk.imageshack.com/v2/15/03/21/05145984ace963ee8f8dcf54df14f42f.jpg

This is the way it's set up now. And it works but the motors do not switch

Web Goblin
21-03-2015, 10:46 PM
Right so does the solid state relay switch on and off? It should go on when you press reset and motor on on the software. Does it switch off when you press motor off? I'm just wondering if the watchdog should switch off when you press motor off. Do you have an emergency stop wired in yet? If so press reset then motor on and the relay should switch on, then hit the estop. I would think that this should shut off the watchdog output.

D-man
21-03-2015, 10:55 PM
The voltage drops on the relay but still fails to disengage the relays. Should of stuck with steppers lol doing my head in this is haha

Web Goblin
22-03-2015, 10:38 AM
Its not something daft like a sticky relay is it? Can you fit another relay and see if it does the same with it? Do you have any standard relays, not a solid state one that you can try?

Clive S
22-03-2015, 10:45 AM
If you think it is the relay sticky just lift one wire off the contact that would be the same as the relay being open. ..Clive

D-man
22-03-2015, 02:14 PM
Trouble is im not the best with the wiring i have to depend on you guys to wire it up for me virtually haha its a shame you aint near newcastle and would of paid for you to wire it up if you had the time.

The relay is brand new

Clive S
22-03-2015, 04:54 PM
Trouble is im not the best with the wiring i have to depend on you guys to wire it up for me virtually haha its a shame you aint near newcastle and would of paid for you to wire it up if you had the time.

The relay is brand newOk but it helps if you can give a bit more info in exactly what you have done.
Did this work before you put the solid state relay on. Some of those relays need more than 5 volts for them to work.

D-man
22-03-2015, 05:33 PM
Thanks Clive, the system works at the moment with the wires from the switches into pins 16 and 25 of the board. However the software will not disengage the motors. This is what it's been like since I was told what to buy and where to put it.

I understand it's frustrating for you guys trying to help please bear with me I appreciate your help

D-man
22-03-2015, 05:49 PM
I don't know if the pictures helped. Just incase here is my wiring 'text-ogram'

240v - 12v transformer
12v+ into pin 2 on the relay.
12v- to servo driver

Relay
Terminal +3 to pin 16 on the board.
Terminal 4 to pin 25 on the board

I was later told to put 3-4 into the 5v pins on the board but that didn't even fire up the motors.

Graeme
22-03-2015, 05:58 PM
Be very careful using semiconductor relays. The type you are using is designed to switch AC loads only. If you try and use it to switch DC loads it will probably turn on, but may not turn off because the current does not go through zero. The other thing to bear in mind is that all relays have a minimum switching current. For the part you are using it is specified at 150mA RMS. Are you sure your drivers are taking this much current. When selecting a relay try to not over spec it, you are using a 25A relay to maybe switch 0.04A.

D-man
22-03-2015, 06:05 PM
So do you think I'm using the wrong relay?

D-man
22-03-2015, 06:09 PM
This is the relay http://uk.rs-online.com/web/p/solid-state-relays/0346918/

Graeme
22-03-2015, 06:19 PM
If you are switching 12V DC, then yes I think it is the wrong relay. I am a little unclear what voltage you are using. You show on your diagram a DC voltage with the + and -, but describe a transformer which is AC. I have assumed (possibly wrongly) that you are actually using a 240V AC to 12V DC power supply.

Do you have the specification for the inputs to the drivers ? AC or DC and how much current. When you know this you can the choose a better relay or other driver.

Web Goblin
22-03-2015, 06:23 PM
I would get rid of that relay and fit a standard coil relay. I think that will solve your problem.

D-man
22-03-2015, 06:44 PM
You think so?

This is my driver QS7AA020M

http://www.adtechcnc.co.uk/wp-content/uploads/2015/03/QS7-Series-Servo-Driver.pdf

Web Goblin
22-03-2015, 07:49 PM
Yeah. Just wire it the same as you have it but with a standard relay.

D-man
22-03-2015, 07:56 PM
Ok I will give it a go cheers

D-man
08-08-2015, 02:50 PM
OK Guys ive managed to swap the rack and pinion for the rotating ballnuts, what would be the best way to works the steps per with this setup

Ballscrew is 2020
rotating nuts are 1:1 (2 x 30 tooth pulleys)

Cheers

D-man
24-04-2016, 02:50 PM
Ok guys I need your help again! I bought a different machine and retrofitted the motors etc

I need help with the steps per again everything is the same apart from the ballscrews I'm now running a 1-1 pulley (2x30 tooth) but I'm running an imperial pinion how would I calculate this? It's a TS2020 20

Cheers in advance


Sent from my iPhone using Tapatalk