View Full Version : X always = 25 ????


murphy625
03-03-2005, 06:13 PM
I solved "most" of my ground loop problems and now have a new one.

My motor is disconnected from its load and will freespin in open air for testing.
I have 1 servo motor using the X axis. (encoder is on back of motor)

Starting from Machzero X, no matter what distance I tell the servo to travel, the camsoft interface X axis readout ends up at 25.xxxx . If I tell the machine !FEEDRATE 10:MACHGO 10 the servo motor will make rotations to 25.xxx
If I tell the machine !FEEDRATE 10:MACHGO 2 the servo motor will make rotations to 25.xxxx

Now I realize that the setup gear ratio and encoder counts per inch need to be entered correctly but that should have nothing to do with the camsoft interface X axis readout right?
If I tell camsoft to go to x=10 then the readout should say X=10 when it finishes its move right? (regardless of the actual move made).

So why does it seem to be going to the same point every time?? I am also getting an error "Begin with motor off?" after each move. I am assuming that this is caused by massive position error.
The encoder counts I am getting seem smooth now. When the motor is under torque, the encoder readout is very stable +/- 1 count.

Also, with the control wiring disconnected from the drive, the drive sits stable under torque. As soon as I connect the +/- 10v signal wires, the motor oscillates. (ground loop?).. So I disconnected the ground wire from the +/- 10v reference signal from the ICM2900 and the problem went away. Is this normal to have it hooked up with only 1 wire like this? I did a google search for Ground Loops and read about certain conditions when only 1 wire is desired. Any thoughts on this?

And why does this thing always want to go to 25 ??? Something strange here..

Thanks,
Murphy

murphy625
03-03-2005, 06:39 PM
After removing the GND line from the ICM2900 to my +/- 10v reference signal at the servo motor, the motor only goes one direction.

My servo drive takes a +/- 10V signal with inputs marked as "inverted" , "NonInverted", "0 volts".
The IMC2900 gives me McmdX and Gnd.

If I hook it up the way I used to have it, I get oscillations in the motor. (Noise?).

I have tried to shield the +/- 10v signal cable at one end, then the other, then both. Nothing makes a difference.

Why oh why did this thing work perfectly 2 months ago and now is giving me so many problems.

Thanks for all the help
Murphy

Al_The_Man
03-03-2005, 08:25 PM
What makes you think it is noise? It sounds like it could be because of tuning. Both analogue connections should be made, the oscillations probabally stop because you have disconnected one of the inputs. I go back to what I said previously and tune and trouble shoot using the Galil terminal program, and when you have good results, then go through the Camsoft interface.
Also you have to phase the encoder rotation correctly, this can be reversed at the ICM2900 by reversing the A & /A phases.
Al

murphy625
03-03-2005, 09:14 PM
Al,, thanks again, you are the man.

How much is that galil program?? WSDK ???

Phase the encoder?? The servo has a resolver phasing program that runs program and you have to enter the number in another parameter. As far as the High and Low coming from each encoder channel, I am almost positive I have them correct. (A to +Max), (A- to -Max) , (B to +MBX) and so on.. I have checked the connections with a continuity checker (disconnected from the terminals so I dont send multimeter power into sensitive circuits) Everything checks out good... I even ripped out the CAT5 line I had for the encoder simulator port and replaced it with the real encoder cable. (No difference at all in operation)


Do you think it better for me to get the galil program, or a scope that I can use on anything? (Its been 20 years but would you believe it if I told you I used to fix oscilloscopes and spectrum analizers?) LOL.. Ya.. the airforce days...

What is bugging me most about all this is that this servo motor worked absolutly perfectly for over 1/2 hour of trial tests.. Back and forth over 20 feet. It lost less than 1/8 of an inch error after probably 500 feet of travel. (rolls on rubber wheels on a track). Now, I can not get it to move 1 inch correctly. (I cant even get it to move in one direction without it running away).


Thanks for all your help AL.. I dont forget :)

Murphy

Al_The_Man
03-03-2005, 09:54 PM
The SmartTerm program is free, the WDSK is 195.00. The encoder phasing I refered to occurs when what is known as the rotation direction of the pulses is opposite to what the controller expects, in other words the controller sends out a particular analogue signal and expects the motor (encoder) to count either in the up or down direction, if it is opposite to what the controller expects this confuses the control and unpredictable things happen, and this can be reversed by swopping the A & /A chanel pulses.
Al

murphy625
03-03-2005, 11:31 PM
I think the encoder phasing is correct.. (not 100% sure) but this unit was working perfectly before..

Anyhow, I have been trying to get this servo on-line and working again for the past 2 or 3 weeks now. I have re-routed grounds to a "star" format..(as close as I could get it).. I have switched servo drives, hooked up and un-hooked shields.. NOTHING IS MAKING A DIFFERENCE.. grrr.. (I'm getting so fed up with this thing I am about to scrap it out)

Look,,, this is not brain surgery.. When I first got this package, (Camsoft, Galil 1832, ICM2900, etc),, it all worked perfectly. I hooked it up to a small (300 watt) table-top test servo and servo drive and I quickly found out what an "Un-tuned" servo was and it took me less than 20 minutes to figure out how to get it tuned or at least working within the parameters I need. (which are very loose by cnc standards). The single phase servo package worked perfect over and over for months while I played around and learned the camsoft software. Then I hooked up to a 3 phase servo. What's so different right? Its just more power. Sure enough, after I was done wiring it, I put it into a test and it worked perfect. (after a quick tune). I hooked it up to my load and again it worked perfect.
Then I decided to hook up the lifting part of my machine. Using a 1.5 hp motor and a 5hp VFD. I programed the drive to respond by way of the OPTO22 relays and the 24volt control strip. Made it all work. Then, as soon as I went to test the servo drive and the lifting device, nothing has been the same since.
First I found my 5volt supply start tripping out, then I find the encoder simulation port on the servo drive sending ghost signals to the galil card.
The problems just keep adding up. Solve one, another pops up.
I have a feeling that VFD screwed up the galil card or something.

I'm at my wits end... I knew this was going south when we started talking about grounds and ground loops.. Something just was not adding up but it almost made sense because my control box is powered by 2 different power supplies. I use 110V from the wall to power all controls and I use a 15hp rotary phase converter to get 3phase to the servo drive.
I thought perhaps there is a ground differential or something happening because of the fact that both the 110volts for the control side, and the 480 volts for the power side were coming from the same 240volt supply. I know it sounds weird but it looked good on paper and when I originally wired it all up, it worked like it should.

So I spend $175 on their software to find something wrong so I can send the card to them and spend more money having them fix it. (why does that not sit right with me?)
This card has already had 2 other malfunctions that were covered under warranty. (but I guess I should make sure its the card before I rant about that)

Thanks for the suggestions AL and everyone else who has helped me in these last few weeks.

Murphy
(Everything that can go wrong, has gone wrong)

murphy625
03-03-2005, 11:38 PM
Also,
What would cause the camsoft readout to go to 25.0XX inches no mater what distance I tell it to go.

If I tell it to go 1 inch, it goes 25
if I tell it to go 10 inches, it goes to 25.

(this is something its never done before)..

HillBilly
03-04-2005, 06:57 AM
I would check with the drive manufacture for phase converter operation. In most cases there is a single phase control transformer inside the drive that supplies the drive logic circuits. It is desirable to have these two lines hooked to the original L1 and L2 that is 180* out of phase (Not the sythetic L3 which bounces somewhere in between.). I take it that you have your step-up transformer, 240V to 480V, on the output of your phase converter (This could add another dimension to your sythetic L3.).

X always = 25 now that is strange! Does the CamSoft LOG.FIL show you anything?

Darek

HillBilly
03-04-2005, 08:35 AM
Oh yea, the same should apply to your VFD if you are running it on three phase. You will also want to check the VFD manufacturer for analog input isolation (Some VFD's are only setup for remote pot operation, no isolation.).

Darek

Al_The_Man
03-04-2005, 09:30 AM
Look,,, this is not brain surgery..

So I spend $175 on their software to find something wrong so I can send the card to them and spend more money having them fix it. (why does that not sit right with me?)

Actually brain surgery is probabally easier :)

You only need the smartTerm program which is free...
What card do you have the 1700 or 1800 maybe?
Download the manual, if you don't already have it Look at step 9, page 34 and armed with about 10 of the two letter commands you can tune, command a move & interrogate to what is happening in a few minutes of operation. Have the VFD powered off and anything else that might affect the outcome.
Also with the drive enable off, If you turn the motor shaft in one turn increments and type a TP the encoder count should increment or decrement by the amount of encoder pulses/rev.
Likewise with the system enabled, do a simple move equivalent to say 10 revolutions (encoder count x 10) and check the motor for 10 revs, and again do an interrogation (TP)
Al

murphy625
03-04-2005, 01:39 PM
I would check with the drive manufacture for phase converter operation. In most cases there is a single phase control transformer inside the drive that supplies the drive logic circuits. It is desirable to have these two lines hooked to the original L1 and L2 that is 180* out of phase (Not the sythetic L3 which bounces somewhere in between.). I take it that you have your step-up transformer, 240V to 480V, on the output of your phase converter (This could add another dimension to your sythetic L3.).

X always = 25 now that is strange! Does the CamSoft LOG.FIL show you anything?

Darek
HillBilly,
Thanks for the suggestion... I'm no expert obviously but I was under the impression that the step-up transformer would improve the signal on the 3rd leg. Are you suggesting it may be doing just the opposite? This is the reason I am using such a large (15hp) rotary phase converter. I figured the larger it is, the more "real" that 3rd leg would appear to a smaller drive. You make a good point about that internal transformer on the drive. I just can not believe that switching a couple of the 3 phase input lines would solve all these problems. (It just seems to easy! LOL) But I will give it a try.... I'd jump off bridge if someone told me it would fix this problem!!


AL,
I have "smart term" already installed from another problem months ago. (The nice folks at Galil walked me threw it and I ended up sending it in under warranty).
I have gotten real good at using that TP command. I scrapped my startup.fil and timer.fil and set the program to do a TP command and response every 100 milliseconds to variable 500 within the camsoft interface. (Only because I know how to use it much better than the galil program for the time being)

Ok.. now the strange part.
Part1: The encoder simulation port is set to send out 256 pulses per revolution. (I can set it for 256, 512, 1024 or 2048) When the motor shaft is turned one 360 deg revolution by hand, I get 1024 encoder counts as shown by the TP command. I dont know if this is normal or not because I am not educated enough to know what the signal looks like going into the galil card and what part of that signal its counting.. Its almost as if its counting the leading edge and the trailing edge of the pulse. Kinda strange that I am set for 256 pulses per revolution and its counting 1024... Each pulse has 2 sides (leading edge and trailing edge) and there are 2 channels. 2 x 2 = 4.. 4 x 256 =1024 ? it almost seems like its working becuase the numbers come out even.
Yes, when I turn the motor shaft the TP response counts smoothly in both directions. (counts up and counts down)

PART 2:
No matter what I type in, no matter what I set my gear ratio to.. the camsoft interface always reads 25.xxx after I make a move. (motor uncoupled from the load) Would incorrect encoder pulses cause this? I dont see how. The encoder pulses only tell the galil card where the motor is at right? So even if the encoder pulses are mucked up, the camsoft interface should still go to the correct position right? I tried to type in !feedrate 1:machgo 1 and the motor turned way more than it should have (not that it matters) and the camsoft interface went to 25.xxx.

I am using the Galil 1822 card and ICM2900 with OPTO isolation. All outputs and inputs go into OPTO22 boards also.

I will dig into it with the smart term program when I get back to the shop this weekend. I am going to check out those encoder pulses very carefully.

Thanks for your help AL and Hillbilly.
Looks like I will probably have to make a donation to this forum eh?
Murphy

Al_The_Man
03-04-2005, 02:42 PM
Its almost as if its counting the leading edge and the trailing edge of the pulse. Kinda strange that I am set for 256 pulses per revolution and its counting 1024... Each pulse has 2 sides (leading edge and trailing edge) and there are 2 channels. 2 x 2 = 4.. 4 x 256 =1024 ? it almost seems like its working becuase the numbers come out even.
Yes, when I turn the motor shaft the TP response counts smoothly in both directions. (counts up and counts down)

You assume right on the encoder count, it can be set to multiply by 1,2 or 4 by looking at the appropriate edges, It looks like you have confirmed the hardware side is OK, which seems to indicate an anomally in the Camsoft code somewhere.
Al

murphy625
03-04-2005, 03:04 PM
A NOTE TO HILLBILLY,

Hey, I just want to say thank you for your suggestion about that phase transformer inside the servo drive.. (this just might be it).

I just discovered this about a minute ago while I was reviewing my records. (I keep sort of a diary or log as I build and make changes.)
I noticed that I had disconnected the rotary phase converter from the power box to test another piece of equipment. I hooked it back up and I know that I did not pay attention to phasing because its a 50/50 shot if your whole shop isn't phase marked.

I think I rotated the phases differently when I hooked it up. (I didn't pay attention or even think about it because there was no forward and backward on the system yet)

The kicker is that I did the above at the same time as the problems started to creep up.

If this pans out, you will be my favorite Hillbilly !! :)

Now I wonder if this condition could have caused any physical damage, or if it will just cause unpredictable behavior between components.

Thanks again...
Murphy

murphy625
03-04-2005, 03:14 PM
You assume right on the encoder count, it can be set to multiply by 1,2 or 4 by looking at the appropriate edges, It looks like you have confirmed the hardware side is OK, which seems to indicate an anomally in the Camsoft code somewhere.
Al


AHHA !!!!!

Thank you for that oh so valuable information about the encoder counts...

In the end game, I might be very thankfull for all these problems. I am learning a great deal of information about the operation of these systems because of you guys.

intrusion
03-04-2005, 06:41 PM
Murphy, somewhere in your novel here about chapter (3) I think :)
you mentioned that you were using the 110V from the wall socket to power some of your stuff, possibly the servo amps ?. Are you also powering your computer from the same 110V source ?. The Galil board gets its power form the computer and you may experience a ground loop between the servo amp and the ICM-2900.

Simple test: :stickpoke
Power everything off (Drives and computer). Disconnect everything between the ICM and the servo drives (no wires connected) then test for continuity between the ICM GND terminals and the GND or chassis of the amplifier. If you have continuity you have a ground loop.

You may double check with Hillbilly and Al about this they seem to know much more than I do.

intrusion
03-04-2005, 07:09 PM
One other idea about the readouts showing 25.xxx with whatever number you command the axis to move. I would RESTORE CamSoft Default.CBK file and try the "Select Axis for Motion Test" in the Diagnostics screens. The good thing about this particular file is it has not been modified (hopefully), thats why they call it the Default file.

Whenever I call CamSoft they always first test any (as Al states Anomolies) with this file. To make sure it is not some bum code in your particular file that is casuing the error.

You will have to add your number of axis, tuning parameters ect.. at least enough information so your machine will start with this file.

murphy625
03-04-2005, 08:26 PM
Intrusion,
If your trying to tell me to keep it short, I'll take the hint.. LOL

Im going to test your ground idea when I get back to the shop..

My control stuff is powered by 110 volts from household current.
That same household current (240 volts) powers a 15 hp rotary phase converter that feeds a 3 phase step up transfomer to obtain 480volts.

Thanks for the help,
Murphy

murphy625
03-04-2005, 09:49 PM
I would check with the drive manufacture for phase converter operation. In most cases there is a single phase control transformer inside the drive that supplies the drive logic circuits. It is desirable to have these two lines hooked to the original L1 and L2 that is 180* out of phase (Not the sythetic L3 which bounces somewhere in between.). I take it that you have your step-up transformer, 240V to 480V, on the output of your phase converter (This could add another dimension to your sythetic L3.).

X always = 25 now that is strange! Does the CamSoft LOG.FIL show you anything?

Darek

Darek,
Thanks for the tip.. BUT..
I found a drawing of the input of the servo..
Would this rule out the phase problem?

Or am I wrong in the way I am reading this drawing?...

Thanks again,
Murphy

murphy625
03-04-2005, 11:09 PM
Actually brain surgery is probabally easier :)

Download the manual, if you don't already have it Look at step 9, page 34 and armed with about 10 of the two letter commands you can tune, command a move & interrogate to what is happening in a few minutes of operation. Have the VFD powered off and anything else that might affect the outcome.
Al

Al,
I have the manual.. Your manual must be very different from mine or something. (no step 9 on page 34). Went to Galilmc site to product manual downloads. Got both manuals. Still dont see stip 9 on page 34..

THanks

HillBilly
03-05-2005, 05:04 AM
If the Insulated SMPS is the logic power supply then changing the phasing would do nothing. I must say if this is the case it is not typical to form a +/-15Vdc power supply from the rectified 480Vac three phase, which has to be well over 500Vdc! Maybe the block diagram is to simplified to show this power supply.

The fact the Galil is counting is a good indication the encoder pulses are right. The Galil can run the machine solo with Galil commands (That explains its price.). Basically CamSoft is a graphical terminal program like Galil's that accepts G-code commands (You need it because they did not teach Galil code in machining school.). What version of CamSoft are you running?

Darek

Al_The_Man
03-05-2005, 09:31 AM
Got both manuals. Still dont see stip 9 on page 34..

I believe all the manuals have the same section, it may be on a different page, It is called Step 9 in the 'Getting Started' section and called 'Tune the Servo' with examples etc.
Al

murphy625
03-05-2005, 12:43 PM
I believe all the manuals have the same section, it may be on a different page, It is called Step 9 in the 'Getting Started' section and called 'Tune the Servo' with examples etc.
Al


Thanks.. Now I found it...

And we have yet another newbie question:
What is the difference between tuning the system with the galil board and tuning the system inside the controller itself...??
My controller has the same parameters that must be set and adjusted for each application. Are you suggesting this needs to be done again within the galil board?


HILLBILLY,
Advice taken.. Im going to flip those lines when I get back.. I'll be forced to do it methodicaly because if I flip the wrong 2, and one of them is still connected to the internal transformer (if it has one) it wont help.
Camsoft Version?? got me on that one.. I'm not infront of that computer right now but I will check it.. I purchased it back in late 2003 direct from camsoft.
I find the camsoft commands to be much like Visual Basic. (I am an advanced user of Microsoft Access and can create entire database applications)
The camsoft commands and galil commands can be mixed within the camsoft code. And on that note, I find it MUCH easier to create my camsoft code using notepad to edit the .fil files than using their interface. I do like the graphical control panel to control the machine though.

Thanks for the advice. I'll be going back to the shop armed with some new knowledge to work with.

Murphy

murphy625
03-06-2005, 06:46 PM
My galil card is bad :(

1st I was getting Ghost pulses. Then no pulses...

I hooked up my little "test" servo package that always works perfectly.

TP Command shows no pulses comming in from either servo drive. It was giving me ghost signals spuradicaly, then just died out completely.. Now, it doesnt matter what servo and drive I hook up, there are no encoder counts comming in. (at least the COMMAND TP shows none.)

Bad card? Or is there another way for me to verifiy this?

Thanks for all the help..

Murphy

Al_The_Man
03-06-2005, 07:03 PM
If you don't have a 'scope then you could put a dc meter on the encoder lines and turn the motor as slow as you can by hand and see if you can see the transitions of the encoder pulses. If you have a spare differential encoder kicking around, you could hook that up to test the card.
Al

murphy625
03-06-2005, 08:06 PM
If you have a spare differential encoder kicking around, you could hook that up to test the card.
Al

Thanks Al, I think that is kinda what I did by hooking up my test servo. (I know it works and it does have a normal 2 channel encoder with the index marker.) No resolvers or simulation ports to mess with..

I had no idea a multimeter would be able to see the encoder pulses if the mechanical action was slow enough. I am going to give that a try. I am embaressed to say my multimeter is a piece of junk.. (It is digital though).

How is Galil with problem boards like this? Built on a Friday?? LOL.. What really sucks is that the card has about 10 hours or less of total use and my warranty is about 5 months expired. (assuming it was a 1 year warranty. I dont even know what their policy on that is.) Guess I'll be calling tomarrow to find out what the repair cost will be..

Thanks for the advice AL,

Murphy

Al_The_Man
03-06-2005, 08:39 PM
Did you try the other, encoder inputs, if you have damaged one of the encoder inputs, it may be the similar to a 1700 card, I have one here and I could see if I can tell what kind of chips they use. Unfortunately they do not socket many IC's and you have to be carefull when replacing them, put an IC socket in when you do. The encoder IC's are usually not SMT type fortunately.
I would then look to the reason the inputs are blowing, as it will get expensive.
Al

murphy625
03-06-2005, 09:12 PM
Did you try the other, encoder inputs, if you have damaged one of the encoder inputs, it may be the similar to a 1700 card, I have one here and I could see if I can tell what kind of chips they use. Unfortunately they do not socket many IC's and you have to be carefull when replacing them, put an IC socket in when you do. The encoder IC's are usually not SMT type fortunately.
I would then look to the reason the inputs are blowing, as it will get expensive.
Al

Al,
Im an idiot sometimes..
I will try the Y axis and see if that works...

When I first got the card, the inputs went bad the moment I closed the switch. Galil repaired it, sent it back, and the input was good while another one went bad. (just a jumpered wire to close the connection). Sent it back again, and they repaired it again. Its been good ever since. I have never had a single problem with the Contec Aux IO board I also have working in conjunction with the galil board.
Now, my inputs are good, but it seems that it wont accept an encoder signal now. Very strange... (and I did double check the cable between the ICM and the 1822)

Hmmm.. The walls seem to be closing in...

Murphy (a little depressed after 2 years of work on this project)

HillBilly
03-07-2005, 06:59 AM
I had the same problem in July of last year on a DMC1860, except the encoder input was bad on arrival. This setup was using the a encoder simulation ports on Yaskawa drives. Galil specs these inputs up to 12V. With the encoder outputs going to the encoder inputs hooked up in any order should not damage the card, It will not count right but it should not damage the card. (This was the case I made when the comment "You hooked it up wrong" was made.)

Darek

murphy625
03-09-2005, 06:39 PM
Darek,

What is your general opinion about galil and their cards??

Just wondering, thanks for all your help and advice..

Murphy

Al_The_Man
03-09-2005, 06:54 PM
I have always found Galil support very helpfull, and like I mentioned before, I cannot recall having a failure on any Galil card I have used, I have used them going back to the DMC600.
Al

HillBilly
03-09-2005, 09:13 PM
The Galil cards are powerful motion controllers that are used in countless motion applications. The bad cards that I encoutered, one was hit by lightning and the second was made quick and sent out to replace it with no burn in period (This was the board mentioned earlier.). I have delt with these controllers on lots of automated processes and five other CamSoft installations and this is the only time I have had to replace one.

I also find Galil tech support to be very good, one tech in particular (Thanks MK!)

Darek

murphy625
03-09-2005, 09:55 PM
Thanks for the information.

Both of your opinions and testimonials carry considerable weight with me..

Murphy