Machsupport Forum

Third party software and hardware support forums. => CS-Lab => Topic started by: LesR on December 17, 2019, 01:16:02 PM

Title: csmio/ip-a + Mach 3 servo problems
Post by: LesR on December 17, 2019, 01:16:02 PM
I decided to upgrade my Bridgeport Interact 1 mk2 to a more modern control and chose a csmio/ip-a controller.
I already have a Mach3 licence so it made sense to go that way.
Things were going to plan up until I wanted to test the three axes.
I have changed the old sinusoidal encoders on all three axes to AMT103 units with differential drivers and they all work fine, giving correct readouts per mm of movement.
The servo +/- 10 volt inputs are fine when unconnected and just sit there dithering slightly with tiny interference voltages. However, when I connect them to the csmio/ip-a and power up, immediately each of the axes makes a bolt for one end of travel and causes an ePID fault warning.
I have played about with all the settings and still nothing. Just full speed movement for a very short time before trip out.
To try another system, I have got a 30 day licence for CS Labs own software but sadly the same thing still happens with that.
I know that others have done similar to me and wonder what I am doing wrong please?

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: joeaverage on December 17, 2019, 05:02:41 PM
Hi,
sounds to me like you have the encoder reading 'upwards' in one direction whereas the servo rotates 'downwards'

Try reversing the main pos and neg power feeds to the servo.

Craig
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on December 18, 2019, 11:41:41 AM
That is one thing that I have not tried.
Unless it would be the same as reversing the encoder direction in the software?
Which only makes the test axis shuttle violently back and forth until it trips.
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: joeaverage on December 18, 2019, 11:49:44 AM
Hi,
reversing the servo direction OR reversing the encoder direction have the same effect.

If the servo moves back and forth.....then its trying to do the right thing whereas if it moves violently to one
end of an axis without attempting to reverse, that is a symptom of when the ecoder and servo directions are
crossed.

It sounds to me like you have had the correct directions when the servo moved back and forth but
you need to tune it. Try to start with small or no I or D, just P alone. I and D components can very
quickly cause instability.

Craig
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on December 18, 2019, 12:20:49 PM
Thanks,
I'll give that a go in the morning.

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on December 19, 2019, 12:49:20 PM
I went back to basics today. I disconnected the x axis and tried it with a 1.5 volt battery on the analogue input, the cable sheath earth was joined to the machine earth.
It works fine. That led me to think about the connections to the csmio/ip-a board. I tested the ground terminals on the analogue output connector and found they didn't have a circuit to 'real' earth.
So, i disconnected all the cable screens from the terminal block and connected them to machine earth.
As if by magic, all now works fine. Each axis was automatically tuned with the plug in tuner and everything works fine now.

Tomorrow I try to make the spindle work......

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: John Interact on April 24, 2020, 07:24:06 AM
Im going through the same process as you.

How far have you got?

Ive tuned my axes so far. Homing routine next.

John
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on April 24, 2020, 11:35:00 AM
Mine is fully up and running now. Once I sorted the earthing thing, everything works fine. The spindle caused no problems at all.

I didn't bother with the handwheel, I use one of these instead https://www.cnc4you.co.uk/Motion-Control/WHB04B

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: John Interact on April 24, 2020, 04:52:19 PM
Can I ask you how you dealt with the Bosch drive enable signals?
It would be good to use these when jogging or running a program
like the old Heidenhain did.

Ive just got them turned on continuously for now although i am
using 'DC Interlock' for 'machine enable' which seems to make sense.

Also did you use the NC home switch signals? They seem quite German
to me. If there is a fault its just going to slam into the limit and cut off
FC5. It says 'Reference Pulse Suppression' on the drawing. Im not sure
what this means?

Im attempting to attach the diagram for the bit I'm talking about...

John
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on April 25, 2020, 06:11:44 AM
I'm trying to remember!
I only did this before Christmas and have already lost it...
There are two sides to the controls, 110v and 24v DC.
All the limit switches are 110v and are the "last chance" cut off.
The enable signals and DC interlock, I have wired to the CSMIO so that Mach 3 controls them. Then you can set soft limits in Mach 3 and everything behaves like it did before. You can run to the end of travel and it will stop before hitting the final buffer of the 110v system. It will not trigger a reset and you can jog back off again, as before.

The pulse suppression thing is for the Heidenhain control. It is not needed now. You get your reference from the encoders on the servo motors and ref via mach 3 and CSMIO.
I assume you have changed the encoders on your existing motors? Or you had more modern motors than me?

To power my 24v side, I did away with the ancient basic regulator fitted and put in one of these (or similar) https://www.amazon.co.uk/Surom-Universal-Regulated-Switching-Computer/dp/B071W121H7?ref_=fsclp_pl_dp_4  It even runs from 110v.

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: John Interact on April 25, 2020, 06:33:39 PM
Youre right limit switches, motor overload etc is 110v that goes into FC5 (Feed contactor 5).

FC5 will shut down power to the Bosch drives at any hint of trouble.

Ive got the original SEM motors and put new encoders on. I may have set these at too higher a resolution
though at 2048 lines. As x4 quadrature is 8192 pulses per revolution. That means 3276.8 per mm. The motors are 'hunting'
a bit, less than a micron, but I'm thinking a lower res would stop this?

Ive done the same as you, put in a new 24v supply for the 24v relays. All good.

What im really wondering though is how you actually made the 'drive enable' signals work? Did you have to write a macro
or something? I cant see an option in the CSMIO plugin. Theres a 'drive reset' checkbox... is this it?

Incidentally, I was able to adjust kV on the bosch drives by adjusting Pot 23 and tuning in the CSMIO plugin. Turning pot 23 clockwise
reduces Kv and anticlockwise increases it. 1 turn is about 0.04  I managed to get kV pretty much bang on 1.00 this way.

I'm uploading the Bosch manual if youre interested in this stuff...

John
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on April 26, 2020, 11:51:55 AM
I have just been looking at the notes i made in my Mach 3 manual.
On the CSMIO, digital output pins 2, 15 and 3 are connected to the three axis enables respectively so when mach 3 is reset, it is set to enable these via mach 3 config. outputs.
I have used CSMIO pin 16 to do the same for DC interlock enable.
Straightforward as those relays are all 24volt that CSMIO handles nicely.

From memory, I have added an extra 110v relay in the limit switch line so that any emergency stop on the 110 side will also trigger an emergency stop on the 24 volt and mach 3 side as well. If that makes sense?

My encoders are set to 2048 and seem to work fine. I have tuned the motors via CSMIO and nothing else. Maybe I was lucky?

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on April 27, 2020, 05:58:55 AM
Another thought.
Would my mach 3 config. file be of use to you?
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: John Interact on April 27, 2020, 07:08:05 PM
Ta for getting back to me Les. Ive been overthinking this a little bit.

I reckon on the TNC145 I had, the x-release, y-release, z-release relays
would have been energised if:

A) youre running a program
B) youve pressed the 'hand' button or the 'wheel 'button' to jog.

So if we want to emulate this in mach, code can be written to energise the relays upon program run, and we'd
have to have a panel switch for 'jog enable'

If Mach energised the relays every time a jog button was pressed they'd be clicking on and off like god
knows what. Not possible.

Question is, is there any point in doing this anyway? Is there any point in having 5FC energised without x-release,
y-release, z-release? Why did Heidenhain do this? Is it a safety thing? I have noticed a large power surge when 5FC
engages though.

Anyway. See what i mean about overthinking? What im going to do is make the provision for a 'jog enable' switch
and leave it for a bit. Ive got some 'digital out's for lights in the pendant already.

Regarding the E-stop, Im doing exactly the same. Sending a signal from 110v to Mach, I'll do the other way a well.
So if Mach E stops, it shuts down 110v.


I spent time on motor tuning as ive replaced all the SEM motors and one drive, so nothing would have been tuned together
originally. But I was pretty lucky as well .It works.

Encouraging to know youre on 2048 lines as well. I thought id overdone it. I'd be lucky to pull 0.01mm anyway.

I'd find your mach 3 config file very useful. Im running mach 4 but for feeds, acceleration etc i can just plug that lot in!

Great!

Cheers Les,

John

Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on April 28, 2020, 11:21:49 AM
Mine was a 155, don't know how much different that is?
Not much I think?

Given that anything you want to do, either set-up or run, will require the servo drives it seems sensible to enable them all the time that the reset buttons are set.

In order to use my machine I do the following:-
Turn on the power at the isolator to bring on all the background power and the CSMIO.
Then boot up the computer, then load Mach3.
Mach 3 loads with a flashing reset button.
Reset and all the enables come in.
Press the servo on button to power up the motor drives.
Then perform a "reference all axes".
At this point I can jog with the joysticks at whatever speed I last used on my wireless controller and/or use the controller itself for positioning.

To run a program I load it into Mach 3, press the old start button to power up the spindle drive and fan ready (green button goes out) then hit program run in mach 3.

I am still using my SEM motors, I just machined the end of the spindle on each one and fitted new encoders inside the housing, together with a line driver chip.

As an aside, I put my TNC155 unit on eBay and got £800 for it. Covered almost all of my upgrade costs!

I have attached my latest Mach3 config file.

Regards,
Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: John Interact on April 28, 2020, 08:20:56 PM
Thanks Les, much appreciated. it makes sense now.

Ive still got SEM motors. I had a problem with a drive that stabbed the
x motor beyond repair. ouch. I sourced a new bosch drive. And then I got
hold of 4 SEM motors with new encoders (same as yours i reckon, with the line
driver chip that wont fit in the endcap) for 500 quid. Now I have spares!

How is that wireless controller? Is it laggy at all when touching off etc?
Looks like a bargain considering the CS Labs one is 300 quid.

An old stainless steel 'internet kiosk' keyboard arrived today for 35 quid.
Waterproof. And it has a trackball. Another bargain.

Im just setting up a solid state micro pc to run windows 10 as i write this.

Reckon I'll be making parts again next week which will be a massive relief.

Thanks for the config. Not sure where to look for feedrates and acceleration but
I'll look more closely tomorrow..

Cheers

John
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on April 29, 2020, 04:16:09 AM
If you use that config file to open as a "new" milling machine in Mach 3, you can see all the settings in their proper places without having to try and read the file?

I find the wireless remote quite good for general positioning. It goes down so low that you can position perfectly. Being USB, I can also easily swap it to my other machines, also on Mach 3. Beware though, I think these controllers are for specific Machs, either 3 or 4 but not both?
That said, I have made a digital probe and now use that for location in conjunction with software from craftyCNC.com.
I went the other way with keyboards, I don't have one. I got a brand new 15" touch screen from ebay for £80 and use the onscreen keyboard.
I am using the guts from an ancient PC on Windows XP crammed into the Bridgeport control box. It works well as the CSMIO really does all the hard work.

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: John Interact on April 30, 2020, 09:00:52 PM
Thanks Les, Ill install mach 3 and have a look. Very handy.

Might very well get the wireless remote. Seems like its cheap and best.

Went well today. Im putting in a soft start for the drive transformer, have had some issues
with it blowing a fuse in the consumer unit when it powers up. Happens about 50% of the time.
i hope it works.

Im astounded you got £800 for the TNC. Did you include the VDU or did you sell that seperately?
My 145 is a bit crapppier... only 1 program of 1000 lines and no drip feed. 2.5D as well.

I'll post updates..

John
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: LesR on May 01, 2020, 04:11:19 AM
I had some issues with power when I first got my machine.
The earth leakage breaker didn't like it, I tried a 300mA breaker instead of the 30mA but it still wasn't happy so it has a straight supply via a 32 amp breaker now and is fine.
When you first turn it on there is quite a power surge.

With no drip feed a TNC wouldn't be much use, though it costs nothing to list it and see? Start it at 200 quid?
I only sold the TNC. The CRT screen had packed up. That was the start of the whole episode!
It was £931 for a new updated screen. I tried various screen conversion circuits and got a poor result. That triggered the whole upgrade.

Les
Title: Re: csmio/ip-a + Mach 3 servo problems
Post by: John Interact on May 02, 2020, 06:51:10 PM
I put in the soft start. An SSC-25. Its fine starting up, no fuses blowing, but bloody hell you dont want this thing in after startup. It creates so much noise on the line the drives dont work properly. So you have to switch it out after startup. Ive got a delay relay on order. i've been testing today with a switch  to manually bypass it. Works fine.

Other issues ive fixed today... CSMIO reporting 'trajectory buffer underrun'.. Now i had this before when running it on a laptop. Which I fixed by re installing the LAN driver. This time i fixed it by running:

Mach4GUI.exe  and  Mach4GUIR.exe

in administrator mode. works fine now.

New issues today are Z axis 'hunting' 0.01mm and maybe Mach misbehaving running a program.

I think ill put the VDU and the TNC on for 200 each!

Cheers

John