Hello Guest it is July 18, 2019, 08:22:17 PM

Author Topic: Spindle index on Optimum D280x700 Vario Lathe  (Read 11122 times)

0 Members and 1 Guest are viewing this topic.

Spindle index on Optimum D280x700 Vario Lathe
« on: February 14, 2013, 10:58:34 AM »
Hello,

After venturing down a blind path with modbus/arduino and an Optimum branded chinese encoder I'm at a stand still.
Well untill I figured out to take the signal from the display on the lathe and feeding that into an input pin on my breakout board.
Problem now is that the STrue value is 4 times the actual rpm, which is because of the sensor receiving 4 signals per rotation.

I thought I could make a brain that just divided the value, but that doesn't seem to be the case.

[Spindle Index]---->[/4]---->[Spindle Index] 

I'm fairly new at this, so I might go the wrong way about it  ???

--
Kind regards,
Jens

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #1 on: February 14, 2013, 01:04:33 PM »
You can use the ratio in Spindle Pulleys, you can see that from Config menu.
Hood
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #2 on: February 16, 2013, 05:37:43 AM »
It seems to get the right number (sort of).

Using this code to turn a thread:

Code: [Select]
G21
T0 M6 H0
M7 M3
S150
G76 X20.933 Z-10 Q0 P5 H0.1 I27.5 R24 K4 L0 C2 B0.1 T0 J0.1

results in this (thread.png):



I then went a bit back to the chinese encoder using the info you gave me.
I stilll cannot get anything from the Z Z pins but I get reverse proportional values from the A A B B pins (higher rpm = lower value)
The encoder is labeled OIS708-1024/Z3-5LD

--
Kind regards,
Jens

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #3 on: February 16, 2013, 09:23:48 AM »
Are you trying to feed the encoder in via Modbus? or do you have some form of plugin?
Are you using the parallel port for axis control?
Hood
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #4 on: February 16, 2013, 09:27:43 AM »
I'm feeding Z from the encoder to the spindle index via parallel port 2 pin 15.

--
Kind regards,
Jens Galsgaard
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #5 on: February 16, 2013, 09:32:30 AM »
Oh and axis control goes over parallel port 1.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #6 on: February 16, 2013, 09:33:43 AM »
So is it a proper encoder? If so it may be that the index pulse is too short for Mach to see correctly via the parallel port. I use proper encoders but I also use external controllers which can see very short index pulses.
If you attach your xml I will check that out.
One last thing, your code has no start  value, probably nothing to do with this issue but Mach will calculate the thread starting from wherever your X is so you may get lots of wasted passes if the X is excessive when you start.

Hood
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #7 on: February 16, 2013, 09:41:15 AM »
If not I have been robbed  ;)

I've attached a picture of its back side as well as my configuration.

--
Kind regards,
Jens

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #8 on: February 16, 2013, 09:44:34 AM »
Ok you are very unlikely to get the index pulse reading if it is coming from an encoder and you are using the parallel port, the pulse will just be far too short for the parallel port to read accurately. Some people have used circuitry to stretch the pulse but others have just gone to an opto and a slotted disc.
I will look at your xml but likely wasting my time for the reasons above.
Hood

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Spindle index on Optimum D280x700 Vario Lathe
« Reply #9 on: February 16, 2013, 09:47:47 AM »
You could try reducing your Index Debounce (General Config page) as it is set to 100 and that is, I would say, at least 10 times to high, try 0 and see but more than 10 will likely be very problematic.
Hood