Hello Guest it is May 18, 2021, 03:09:23 AM

Author Topic: CSMIO-ENC Spindle Orientation  (Read 16577 times)

0 Members and 1 Guest are viewing this topic.

Re: CSMIO-ENC Spindle Orientation
« Reply #40 on: July 14, 2019, 05:23:59 AM »
M20 - https://en.cs-lab.eu/technical-support/download/addons-macros/macro-m20-for-spindle-positioning/

But if your spindle doesn't orient properly, then it looks like missing index signal (did you check it with oscilloscope?) or (less likely) pulses per rev set to low.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: CSMIO-ENC Spindle Orientation
« Reply #41 on: July 14, 2019, 05:30:23 AM »
Thanks,

if its not set right can it still work?

The spindle runs ok, the speed shown on Mach3 is correct, threading works ok - can all of that be good and still something not be set right for orientation?
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: CSMIO-ENC Spindle Orientation
« Reply #42 on: July 14, 2019, 06:18:42 AM »
Just tried the M20 macro.

Just entered M20 Q100 repeatedly.

It makes the spindle move, but it stops in a different position every time.

It also shows error ""M20 ERROR Offset !!!  Angle = *********.xx Qarg 100

Something not right?
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.
Re: CSMIO-ENC Spindle Orientation
« Reply #43 on: July 14, 2019, 06:25:35 AM »
Thanks,

if its not set right can it still work?

The spindle runs ok, the speed shown on Mach3 is correct, threading works ok - can all of that be good and still something not be set right for orientation?
Yes, the fact that your spindle doesn't orient properly means there is a problem with index signal.
M20 won't work either.
1. check with oscilloscope for the index signal
2. check how many pulses per rev your encoder has.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: CSMIO-ENC Spindle Orientation
« Reply #44 on: July 14, 2019, 06:28:20 AM »
But can threading work with dodgy index?

The encoders are 10,000 pulse items (all edges)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.
Re: CSMIO-ENC Spindle Orientation
« Reply #45 on: July 14, 2019, 06:36:24 AM »
I marked orange fields where you should have 10000 pulses entered.
"Enable spindle axis" and "Align at stop" must be enabled.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: CSMIO-ENC Spindle Orientation
« Reply #46 on: July 14, 2019, 06:38:04 AM »
Thanks, i'll check that

I'm pretty certain box boxes have 10,000 in them but i know the stop is turned off, will try with it on.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.
Re: CSMIO-ENC Spindle Orientation
« Reply #47 on: July 14, 2019, 07:18:47 AM »
I've looked in the M20 macro and it throws you an error "M20 ERROR Offset !!!  Angle = " because it doesn't read the angle properly.
I still think there is a problem with index signal. The plugin doesn't know where is "zero" point of the spindle, so he doesn't know where to start counting requested angle.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: CSMIO-ENC Spindle Orientation
« Reply #48 on: July 14, 2019, 07:21:45 AM »
Interesting, i'll have to get the 'scope out again some time.

Now i think about it, there are some notes in the drive manual about the index pulse being short so they included an open collector output as well - presumably the pulse is longer?

Maybe i need to remove the main index pulse input and use the O/c index pulse instead somehow?

Quote...
5. Encoder Z signal open collector output
Servo drives to open collector mode on the output signal of the encoder Z. Because Z letter feel the pulse width is narrower, PC
please use high-speed photoelectric coupler receiving.
« Last Edit: July 14, 2019, 07:27:06 AM by Davek0974 »
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
    • DD Metal Products Ltd
Re: CSMIO-ENC Spindle Orientation
« Reply #49 on: July 14, 2019, 07:29:32 AM »
Second thoughts - cant do that because ENC module needs differential input not single-ended.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives.
Plasma table, Mach3 V062, Step motors, C&CNC THC.