Machsupport Forum

Third party software and hardware support forums. => CS-Lab => Topic started by: vithanidevesh on August 02, 2015, 10:07:06 PM

Title: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 02, 2015, 10:07:06 PM
Hello all,

I am retrofittig one old cnc with csmio ip/a

I started tuning controller. I faced some issue and needs your help

I decoupled motor as i wanted to first make it in my control. It runs fine except couple of strange behave

1) i am getting encoder error - please check encoder connection- when i look at diagnosis screen, encoder value is showing with red flashing value (255 and sometimes 14). When i run motor, values are changing as it should be, motor is in control, movement is as desired then what this error indicates? I couldn't find it in manual

2) during trial, sometimes as soon as i press reset in mach, motor start running at full speed at any direction and trips on pid fault. Then i tried swapping encoder in configuration (not actual) and set it back to original, couple of times doing this made motor working again in control

I faced same issues in both axis where i took trial

3) during trial, first run always shorter then expected. I mean giving 10 mm command makes movement of 7 mm in first run, then onwards it runs 10 mm without any error
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on August 03, 2015, 02:00:10 PM
Sounds like you may have noise or a poor signal on the encoder wiring.
Hood
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 03, 2015, 08:49:28 PM
What is the solution then? Same error is for 2encoders so encoders seems ok

It is showing count with error too. What does that error mean and how to overcome it?
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on August 04, 2015, 03:35:37 AM
Is your line driver OK?
If you look in the tuning page and manually turn the encoder does it count correctly, ie correct amount per rev.?
Have you got the step per unit set correctly?
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 04, 2015, 03:56:19 AM
Answer is yes for all

I am getting correct count if i turn encoder/motor manually

Getting position correct all the times except for first time

Encoder shows count but with red flashing 255 values in between
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 04, 2015, 03:58:03 AM
No response from cs lab yet
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on August 04, 2015, 04:01:17 AM
I have no idea then, the red flashing suggests the signal from the encoder is not clean enough but hopefully CS-Lab will get back to you withj info on what it actually means.
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 04, 2015, 04:39:48 AM
Ok waiting for reply from them.

Anyways, what about other problem? Do you think its related to encode only?
My motor starts running at full speed, then i assigned empty encoder channel to that axis, then it moves slowly, i again assign original encoder and getting it working again

Is it related to encoder issue or anything else?
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on August 04, 2015, 05:02:19 AM
As I said I think you have problems with the encoder signal being seen by the CSMIO. If you have noise or it is not a clean signal it can cause all sorts of issues.
Have you scoped the output from your line driver circuit to see that it is working correctly?
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 08, 2015, 04:55:07 AM
Ok Proper shielding made so many things working still getting that encoder error

One more issue i observed during trial is, my axis movement is less in one side

i ran x axis for say 5 mm and my encoder count goes from say 25000 to 65000 (if 4000 count for 0.5 mm or 1 revolution), when i gave reverse command then it stops physically after 3 mm movement only. At this time count is also less 41000 (it should be stopped at 25000) which shows controller asked drive to stop at 3 mm. can you suggest why?

One more problem is in MDI
i can not use MDI because it giving strange movement (same direction run whatever command i gave, not stopping at the desired location)

Is it related to CS controller?
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on August 08, 2015, 08:13:24 AM
Quote
Ok Proper shielding made so many things working still getting that encoder error
Shielding is usually not needed with differential signalling as long as the pairs are twisted, having said that, shielding and correctly grounding the shield will do no harm.

Quote
One more issue i observed during trial is, my axis movement is less in one side

i ran x axis for say 5 mm and my encoder count goes from say 25000 to 65000 (if 4000 count for 0.5 mm or 1 revolution), when i gave reverse command then it stops physically after 3 mm movement only. At this time count is also less 41000 (it should be stopped at 25000) which shows controller asked drive to stop at 3 mm. can you suggest why?[
Do the DROs in Mach show the distance as completed or do they show you are out of position? ie if you zero the DRO then command a move to X5 then command a move back to X0, does the DRO show X0 or something else?

Quote
One more problem is in MDI
i can not use MDI because it giving strange movement (same direction run whatever command i gave, not stopping at the desired location)

Is it related to CS controller?

I think, as previously mentioned this may be bad signals from encoder to CSMIO. Do you have a scope so that you can look and see what the differential signals look like?

Hood
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on August 08, 2015, 08:14:37 AM
BTW post your xml and I will take a look, might not be for a few days or more as I likely won't be about.
Hood
Title: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 08, 2015, 08:48:30 AM
2) dro and mach shows motion completed. Only physical movement is not there

3) its not encoder as its same direction in mach dro also. Mach dro also moves in same direction irrespective of my command

I will post my xml as soon as i go to the machine


Sent from my iPhone
Title: Problem in CSMIO IP A configuration
Post by: vithanidevesh on August 20, 2015, 01:36:41 PM
Hi

I replaced encoders and now all errors gone

Taken a trials of all axis then finally tried on a sample job

Problem is x axis is shifting at one end. I mean x axis is traveling more in one direction although its a very small error but getting accumulated and being a large enough not to avoid

Can you suggest problem?

If my step pulse setting is not correct, i should have inaccurate travel but same in both directions, right?


Sent from my iPhone
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on August 22, 2015, 05:51:49 AM
If the DRO in Mach is showing correctly then I would say that either you still have encoder issues or you have some sort of mechanical issues that is allowing the components to slip slightly before gripping and thus it does not move the correct distance in one direction.

Hood
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on October 11, 2015, 01:57:35 AM
Every thing is working as it should.

Now i have one mpg and i want to connect it with CSMIO IP/A

can i connect it directly? Is it compulsory to purchase MPG module from cs lab?
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on October 16, 2015, 02:51:27 PM
Not sure if you can or not, try and see by setting the input port and pin numbers up as a MPG in Mach Ports and Pins.

If it works then fine, it will certainly not be as good as the CSMIO does via the MPG module but it should work the same way as it would with the parallel port or most other external controllers.

Hood
Title: Problem in CSMIO IP A configuration
Post by: vithanidevesh on October 24, 2015, 04:29:12 AM
(http://images.tapatalk-cdn.com/15/10/24/46c2c2ebeee6b386dd71dfb5cf2df936.jpg)

Attached is snap of the mpg diagram

What settings do i need in mach,? I never used mpg


Sent from my iPhone
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on October 27, 2015, 06:31:22 PM
Hello Hood,

My MPG encoder is 5V signal so how can i connect it? If i connect as an input to CSMIO then it should be 24 Volt. Can i connect as an encoder input? If yes, then what setting i will need to do in MACH? I mean I know how to set DI/DO in mach but dont know about encoders.
Title: Re: Problem in CSMIO IP A configuration
Post by: vithanidevesh on November 02, 2015, 06:37:51 PM
Hello

I know how to connect all buttons. I have to connect to normal CSMIO DIs and set OEM trigger code according to that DI

My question is, how should i connect encoder to CSMIO? If I connect it to Encoder number 3, should i set MACH port & Pin - MPG A+ Port 10 pin 3, MPG A- Port10 pin 3??
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on November 15, 2015, 06:26:20 PM
Sorry for late reply, not here much nowadays.

You would need to either use a 24v capable MPG or convert the 5v signals to 24v for the CSMIO.
Personally I would just get the MPG module as would integrate all of these things much more neatly and save a lot of issues. If however you can not afford the €87 then your best chance is to make up a circuit to produce the 24v from the 5v MPG signals.

I have a circuit somewhere that CS-Lab supplied to a fried for use with inputting a 5v Index pulse for homing, I will see if I can dig it out. It should be fast enough for a MPG but I am no electronics expert so I can only guess.
Hood
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on November 15, 2015, 06:48:08 PM
Here is the circuit diag for the Index pulse, afraid the opto type is not detailed and I can not find the info here. I have a board made up at the workshop so will look tomorrow and get the details (If I remember ;) )

Hood
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on November 16, 2015, 04:55:35 AM
Ok the opto was a sharp PC817

Hood
Title: Re: Problem in CSMIO IP A configuration
Post by: Hood on January 18, 2016, 07:32:13 PM
Just want to post an update to this.
I made up an opto board and hooked the MPG up via the IP-S digital Inputs, all seemed to work fine as  the MPG signals were seen by the IP-S. The Leds flashed as I rotated the MPG.
Went into Mach and set up the MPG but it would not work.
 I contacted Wojtek at CS-Lab and he confirmed that the only way to use an MPG with the CSMIO controllers is via the MPG module.

I can see why they would want it that way, the motion is much better and extremely precise where with the MPG in Mach it is either smooth and no defined size per click or a defined size per click and jerky.

Hood