PDA

View Full Version : Boxford TCL125. (Fresh start )



John11668
02-10-2020, 11:02 PM
Right a new thread on this
Taking advice from here , I am about to start building a board to make this work.

I intend to remove Boxford's boards but retain the Lenze controller. Anyone wanting to have a play with these boards shout now!

What is the function of the optoisolator and do I need to retain it ?

Then the transformer has tappings at 20v with rectifier ,
Other tappings at 9v (x2) , and 12v seem to have their rectifiers external, on the the processor board .
Am I better to do away with this and fit distinct PSUs for each required voltage ?, or retain this and rectify the outputs

I am trying to fathom the circuit of the relays , with their forward , reverse, and latching functions for spindle control . These have been working so hope to retain them, Will spend some time getting head around their function

All suggestions welcome

John11668
04-10-2020, 08:45 PM
So in the absence of new advice, I have gutted the machine. Boards out , removed all limit and interlock switches. I will replace those I feel are really needed. Will put in a new Estop , and home switches, so now looking at what is left of the spindle control circuit.

This is me following the ancient Northern principle
"Let the dog see the rabbit"

28946

Am currently trying to identify the wiring I am left with, so give me time on that one!

I will be building a new panel, with stepper drivers and BOB, and am not expecting too much difficulty with making X and Z operate from the computer .

Bit of trepidation though about making the spindle operate and vary the speed, in coordination with the traverses .

All suggestions considered !

Doddy
04-10-2020, 09:11 PM
Have you decided on the control software yet? That may impact a lot of what you need to consider to rebuild the machine.

You should have guessed by now that the key to coordinatig spindle speed and axis actions some form of spindle measure/feedback. I'd expect that the TCL should have a spindle position encoder of some description - figure that out (if it can be re-used) and that should make for an easier life.

When looking at spindle speed control - my experience of trying to LinuxCNC with a closed-loop PID control to get accurate RPM (not really necessary) was thwarted by the internal filtering of the spindle controller... if I could advise anything it would be to KISS.

You've got the mechanics of the lathe already - the control system should be fairly straightforward. Happy to chat through ideas (and maybe steal some of yours).

John11668
05-10-2020, 12:08 PM
Am open to suggestions on the control software . Had a look at the lathe function in Cambam and it left me puzzled.

The TCL has an optical encoder so hope I can use that. it does however tie into the processor board so may also have to keep that.
The outputs to the Lenze contoller are also taken from that board so may be simpler to retain it than to fix up an alternative speed control but I have yet to fathom that function.

It only recently dawned on me that spindle speed and Z traverse have to be perfectly coordinated for say screwcutting!

Would be pleased to have someone hold my hand on this. The published diagrams from Boxford are not great and there is no real useful guidance in the manuals .

inee
06-10-2020, 02:11 AM
I presume the optoisolator board you mention is the one on the lenze controller, if so leave it on and use it, as it isolates the 0-10v spindle speed from your control board to the speed controller, a safety circuit.
If you have a look at the wiring diagram, either in the manual or the one i posted on tudder thread, you can trace it back, control will be from the 0-10v spindle speed output from your new controller, and a switched 0v to the relay, The relay will have a default position when lathe powered this is normally reverse as turreted lathes machine from the back, but if your using a toolplate or quick change tool holder the you can run it either way as default, to change the default direction, simply swop the motor wires over in the relay.

The photo interrupters are wired together so you have +ve ,-ve ,sig a and sig b . from memory if you trace the connector on the lower board the +ve voltage comes from a gert long resistor, you should be able to trace it back and mimic the supply.

The whole speed control direction circuit seem to be a bit of a nightmare at first glance ,but is easy to understand one you work it out.

Will post a bit more was going to say tomorrow but suddenly realised it will still be today, lack of sleep messes with the days ;)

John11668
06-10-2020, 11:23 AM
Right , So??
Circuit here and I will expand on my issues .
Please remember i am of the mechanical rather than electrical persuasion so Wiring diagrams are not part of my native language .

28963


The spindle encoder Plugs into the processor board (highlighted red ) where I presume magical and mysterious things happen to the input , before it is sent on to the drive board .
RL1 (brown) which is integral then seems to shuffle things in a manner I cant yet get my head around via the forward / reverse (green box) and Latch /unlatch (blue box) which I am presuming is controlling the big grey external relay RL3 for spindle direction

So the function of the spindle seems to be dependent upon both boards ????
How can I chuck them out?

inee
06-10-2020, 10:08 PM
Hi John
For now ignore the green box you have drawn, they look to be a connection to the FWD/REV bulbs in those 2 switches on the control panel (most likely 2 thin wires going from rl3).

The spindle speed is reliant on a 0 - 10v signal coming from whatever control board you will use.

FWD /REV will also be dependant on the controller you use, at switch on Relay3 will switch to one position, this will be either Forward or Reverse. Lets for the sake of argument we'll call it default position.


You will need to copy the circuit with additional relays.

Most s / controllers have a relay on board for fwd reverse if so, there will normally be a nc / no and com connection.
So you would connect the com(mon) to 0v from pwr supply.
NC(normally closed or for the sake of quickness On as it is directly connected to the com terminal). would go to one ov side of Rl3
NO(normally open or for the sake of quickness Off as it is only connected to the com terminal when selected and at the same time Nc will disengage). would go to Tudder ov side of Rl3.
Sorry if it's too simplistic as i don't know your comfort level with electrics.

Now if you look at the diagram you posted you will see that one live terminal is also relay driven from RL1 , This is a safety relay to ensure lenze board powers up after the pc connection is made, However as you will be using your own electrics simply connect the new relay (make sure it is a mains spec relay as it will be switching the live supply to the lenze controller) and needs a dc coil ,connect the coil via the on off switch ,so the spindle only has power when that switch is on.

You can add another change over relay to the spindle drive in between rl3 and your bob relay, will attach a diagram for that option based on the circuit diagram but bear in mind you wont be using the boxford board so these relays will need to be sourced. (PM your address and i will pop an omron my4 relay and holder in the post to you, will be the end of next week though).

I also switch the mains through a relay via the E Stop switch as mine has 2 micro switches on it one nc and one no
Do one bit at at a time

inee
06-10-2020, 10:40 PM
Forgot to mention the photointerupters, the photointerupters can be powered independently, so can attach to a supply board(not sure of the operating voltage so hold off for a tick.

You have 2 one changes state once per rev of the spindly the other changes however many times it sees the holes all around the disc ,I'm not going to count em ;), but the clue is in the naming of the signals on the diagram.

In mach or other software the single hole wire will be the index wire.
the multi holed wire will be the timing wire
Some software can't pickup the index pulse so then after checking the signal changes, you may need to open out the single hole, to i think 6mm wide ,but do it a bit at a time and retest until it picks that signal up in software's.
Hope it helps

a I've attached a diagram which should hopefully guide you in how the fed/rev relays work, bear in mind that rl2 represents the no/nc connection on a bob and although d
drawn with one wire in from 0v there will be two, i purposely left it like that so you can see hoe it works, the blue wire simply represents the way the 0volts is switched to trigger rl3.
Can i ask a favour, can you let me know which buttons on your control panel are ,on/of or momentary operation.


28965

John11668
07-10-2020, 12:39 AM
Thanks Inee but your attachment is not working for me .
I am getting the gist of your instructions but I am sure all will be clear with a Pic :thumsup:

depronman
07-10-2020, 09:35 AM
Right a new thread on this
Taking advice from here , I am about to start building a board to make this work.

I intend to remove Boxford's boards but retain the Lenze controller. Anyone wanting to have a play with these boards shout now!

What is the function of the optoisolator and do I need to retain it ?

Then the transformer has tappings at 20v with rectifier ,
Other tappings at 9v (x2) , and 12v seem to have their rectifiers external, on the the processor board .
Am I better to do away with this and fit distinct PSUs for each required voltage ?, or retain this and rectify the outputs

I am trying to fathom the circuit of the relays , with their forward , reverse, and latching functions for spindle control . These have been working so hope to retain them, Will spend some time getting head around their function

All suggestions welcome

I was watching you orignal thread with interest.
I've jsut come out of the other end of a Boxford VMC190 conversion to Linuxcnc

I would be interested in the pair of boards that have the drivers on them, two or three block things about 2" x 3"
You will be using more modern drivers I assume.

I kept the Lenze speed controller, but my isolation board on the end of the lenze was toast, so I had to wire the lenze into the control board. This is not that straigth forward as the lenze 0v to 10v (for spinlde speed control) floats at 110v to 122v
I found a step/dir to 0v to 10v board with on/off relay and its all working a treat now

I converted an ORAC Lathe to LinuxCNC about a year ago and its been great, It threads a treat which was something I could never get my boxford BUD running Mach3 do. IT all done on the cheap with a PC mother board parallel port and an additional port card

The VMC is also using a single parallel port card that provides two parallel port connections
In LinuxCNC set the first one up as OUT and the second as IN and you have more than enough inputs.
Both machines have a control panel with real buttons

Cheers,
Paul

depronman
07-10-2020, 11:21 PM
Have you worked out what voltage the step motors need ?
This for me is the starting point
This will then allow you to select a suitable power DC supply and a pair of stepper drivers
My ORAC needed 70volts so I bought a 68v DC psu and a pair of step motor drivers
The paint was about £45 and the drivers £35ish each
Pair this to a £15 BOB utilising the parallel port a linuxcnc and you are there
Linuxcnc will run quite happily on a very old spec PC either find one on free cycle with a parallel port or get one without and fit one or two pci parallel port cards. eBay at about £7ea also factor in the parallel port cable at about £3. These are 25 pin male to female normally

You need 1 input pin for the eStop
1 for the homing switches
2 for the spindle synchronisation or 3 if you want the spindle to maintain sync when reversion rotation ( I can’t thing of a need for this other than ridged tapping and I can’t think why I would need this on a lathe ) this is know as quadratur (likely spelled wrong)

You can always add another parallel port card for another 14 or so inputs but you will need to work around the option couplers in the BOB
This had be flummoxed for some time as I could never get the second parallel port to work in input mode. It turned out that it was working perfectly in input mode but the BOB was expecting say pin 2 to be an output and as an input pin the option coupler was working the wrong way and not allowing the signal to come through
I only wanted the second parallel port to drive physical buttons so as there was no power to these external buttons I thought sod it and wires the buttons directly to a 25 pin D connector thereby making my own very basis BOB
It’s been working a treat for 12 months

Setting up linuxcnc is not as daunting as it may seem
The DownLoad is copied to a pen drive that you use to boot the PC from. You can trial linuxcnc from it and if you are happy with it you can then install linuxcnc from the pen drive to the pc hard drive. All done in about 20 mins and no scary questions to answer
Using the step configuration wizard in LCNC gets you a basic lathe setup and only takes about 10 mins to produce
It helps if you know your steps per rev on the steppers and the reduction ratio to the lead screws
Take the std pin setup offered by LCNC and wire your stepper drivers accordingly
Pins 2&3 are X 4&5 not used 6&7 are Z
I use pin 10 as eStop
Pin 11 for home switches on x & z
Pins 12 & 13 for the spindle pulse and trigger
Pin 15 is a spare input
Pin 17 for spindle on / off
I also used another output pin for the pwm out that is feed into the lenze isolator board which in turn feeds the lenze to provide swindle speed control. The pin 17 is connected to the BOB relay which is connected to the lenze directly to switch the spindle on and off via m3 / m5. Spindle speed is via m3 with an S positive number say S1000 for 1000 rpm

You need to count the number of slots in the spindle disc and feed this into the calculation in the step confit wizard on the PWM page

Happy to talk you through any of this I can even send you copies of my Hal and ini files

I would use linuxcnc 2.8. It’s just come out but as been in a kind of beta for ages
I have a down load link for mint using LCNC 2.8

Go directly to gmoccapy as the user interface instead of Axis which is the default
Gmoccapy is a far nicer interface and looks like a cnc controller where as Axis looks like a computer screen

I’ve used mach3 and linuxcnc and linuxcnc is head and shoulder better than mach3
It’s also rock solid

I would convert my boxford bid to linuxcnc had I not had invested £200 on a pokeys control board when I thought mach3 was the dogs dangly bits - we all live and learn I guess just an expensive lesson


There looks to be enough room on your 160 to fit the computer motherboard into the electronics area of the machine but you may need to box the PC power supply in a box out side of the machines case
I did this on the ORAC and it makes for a very neat installation, the PC control buttons are brought into the front of the lathe control pane along with control buttons for stop start pause step coolant on off and coolant speed control (I use a peri pump to accurately drip coolant onto the tool)

Hope this gives some idea of what can be done for well under £200 less if you have the PC or can get one from free cycle local car boot sale etc and a little smart shopping

Finally if you are binning the boards removed from the 160 I would like the driver board as a spare for my vmc190 as I chose to reuse the drivers / psu / steppers

Cheers. Paul


Sent from my iPhone using Tapatalk

John11668
09-10-2020, 11:05 AM
Hi All, and thanks for your inputs
First of all with regard to my old boards . I have had a couple of people declaring an interest in them which causes me a dilemma .
How do I decide who to offer them to. I dont fancy an auction , but would like them to go where they will be of most use .

Can I ask that each of you who are still interested , please PM me and tell me what use you intend to put them to.
Hopefully this will help me to decide . Failing that I will get my wife to pull names from a hat !

John11668
09-10-2020, 12:21 PM
From the circuit It seems that the motors require 24 V and on that basis I have bought drivers which range up to 42v

It is my intention to get all the motions functioning, utilising Mach 3 purely to provide jog inputs , after which I will go for a linux option to provide me with a functioning machine.
I am intending to use the existing power source (because it is there) It has outputs of 20v, and 9V which seem after rectification to yield 24v and 12v ( -ve) to the boards but the 12v rectifiers are integral in the board and I cant make out what its capacitor is . Will have to look more closely at it. Clearly I have to add a rectifier if I go this way.

I have a selection of BOBs, one with 0-10v output but only make / break switching at the relay.
I also Have a DIYCNC spindle board which might be suitable


28974


I am hoping that this will give me the the Fwd rev outputs shown in Inee's diagrams but I am not clear on the relay connections shown.
RL1 and RL2 are incorporated in the board , so do I have to insert another relay into the circuit and could the above one fill this role .

Finally with respect to the spindle reversing relay I dont see any numbers on the base . Is there a convention here that I am unaware of ?
It has been working so I am guessing that it will continue to do so one I get the right signals to it .

Thanks again

John

depronman
09-10-2020, 09:04 PM
That diy cnc board is the exact board that I have used to provide step/dit from linuxcnc and from it you get a 0 to 10v output which is isolated to feed into the lenze speed controller
You also use the relay to switch the lenze controller
I can provide the lenze connections to the soy bc board if it will help you

Paul


Sent from my iPhone using Tapatalk

John11668
09-10-2020, 10:01 PM
Soy bc ?
Any info is helpful so yes please

inee
11-10-2020, 10:27 PM
Hi john
i have one of those spindle boards, as depronman said it's a good little board.

By spindle reversing relay i take it you mean Rl3 in your Boxford, if so the terminal numbers are printed/stamped into the relay holder ,just above the terminals so either use a mirror or take photos of the wiring and also take some more when you have removed the top set of wires.

Or if i remember tomorrow i can pop a pic of the base up

John11668
12-10-2020, 12:22 AM
I think I have sussed the control wires to the relay now Inee, and I havent disturbed any others so hoping it will work when it gets correct inputs .
Will see what happens when I get new power supplies for BOB and The relay board .

Thanks to all for your help,

John11668
13-10-2020, 10:17 PM
So being a bit pedantic here in trying to understand the difference between 0v, and Ground?? Remember I am not an electrician.
On the diagram included above, the Small DC voltages are shown as say 12v to 0v. AC supply is L,N,and E, and the 0v is connected back to earth anyway.

Some boards have both 0v and GND suggesting at least a subtle difference , And the TCL 125 control panel is a veritable spaghetti of green and white cables all of which seem to be connected to the metal chassis anyway. Is it OK to connect anything resembling 0v,,GND, and earth to the metal chassis provided that it in turn is securely connected to the incoming Earth conductor ?

I will be adding my new power supplies to my upper deck tomorrow and clearly it would be neater if these could be earthed to the chassis , and where a PSU has connections to L,N,E, and V- ,V+ is there any reason why I cant link E and v- and fasten to the chassis locally to the chassis locally?

depronman
13-10-2020, 11:39 PM
HI John,
Equally I'm not an electrician, but I have wired up a few CNC controllers, so please take this as what worked /works for me as against how it should theoretically be done
All of the mains (E) earths should be connected to a single metal bolt which is electrically and mechanically connected to the machines metal case. From an electrical noise and ground loop elimination point it is important to have one single earth point. I Bolt the power supplies to the chassis plate which in theory will cause the PSU to be earthed, but I always connect the E terminal to the single earthing point.
Then connect the maines (L) live and (N) neutral leads to the Power supplies, you would normally take the lives through a fuse / breaker and some sort of contact breaker as appropriate.

On the BOB side I would confirm using a multi meter in ohms setting that the 0v and the GND connections are one and the same. They are not always connected together due to the BOB possibly isolating say the PWM signal from the PC, therefore the GND connection and the PWM 0v connection ideally should NOT be electrically connected. Some better quality BOB are made like this, other cheaper BOB are not like this.

When connecting to the Lenze Speed / Spindle controller for example its VERY important that the 0v of the PWM output is NOT connected to the GND terminals on the BOB or to the machine earth, the reason being the lenze controller needs a 0v to 10v signal to provide the speed control signal (0v = spindle stopped, +10v = spindle at full speed, +5v = spindle at half speed) BUT the Lenze 0v volts terminal is actually at 110v compared to mains earth and mains neutral and for that matter to the PC's ground. It goes without saying that it would be terminal for the BOB and the PC if 110v is applied to the PC ground.
This is the reason why the BOB MUST isolate the PWM 0v from the BOB GRD connections.

My BOB £8 from ebay, very common one with a single relay, does PWM and if used to control a VFD its perfect, however it is NOT suitable for the lenze controller as the 0v PWM on the BOB is electrically connected to the GRN connections on the BOB.
I had to work around this by using a DIYCNC spindle controller board which is feed with Step / Dir from the BOB and a 12V and Grd power feed. From this it generates a 0v to 10v voltage and importantly this is totally isolated from the Gnd & 12v power feed into the board AND also isolated from the Gnd of the BOB
So, in summary this allow the DIYCNC board to provide the 0v to 10v signal into the Lenze controller, which effectively means that the Lenze input voltage will vary between 110v and 120v

On my BOB I found that all of the GND and 0V connections where connected together, this is OK but care needs to be taken with things like Limit Switches to ensure that when connected to the BOB that one side of the limit switch is not connected to earth by virtue of being attached to the machine frame.

Hope that helps, fell free to give me a ring if anything is unclear

Paul

John11668
14-10-2020, 11:14 AM
Hi Paul
I had thought that the isolation cad on the lenze controller gave that protection.
If you look at the wiring diagram I inserted earlier in this thread , the 0v connection from the iso board ( term 5) come back to a common 0v buss which picks up the the drivers and rectifiers on its way back to a direct connection to the Mains Earth.

I will be using the Bob which was repaired for me by Doddy which has the facility for a 0-10v signal but only a make/break relay.
Does the DIYCNC spindle board generate its own signal output, so no need to connect the BOB 0-10 signal ? Or might it be better to take the speed regulation signal straight from the BOB and cut out the middle man as it were?

depronman
14-10-2020, 01:52 PM
Hi John
Sorry I forgot that my isolator board on the lenze was buggered.
So I had to work around the lack of isolator board
You can take the simpler root of using the pwm output from the BoB into the input on the lenze isolator board
You also take a couple of wires from the lenze controller into and the out of the BoB relay
So the relay will turn the lenze controller on and off
The BoB typically as the par port pin17 output set to control the relay
So linuxcnc in Hal links the par port 17 out to the m3 command and spindle start buttons
This in turn triggers the relay on the BoB and that turns the lenze on
You then send the S value. Eg s1000 to the BoB and thee BoB generates a voltage (pwm) between 0v and 10v. This voltage is sent to the lenze input and thus creates a specific speed of ration on the spindle

Sorry about the confusion
If you did t have the isolation board then this is where the diycnc board comes into play, it would take step/Dir pulses from the BoB and use that to create a 0v to 10v output for the lenze

Cheers Paul


Sent from my iPhone using Tapatalk

Clive S
14-10-2020, 03:04 PM
Sorry about the confusion
If you did t have the isolation board then this is where the diycnc board comes into play, it would take step/Dir pulses from the BoB and use that to create a 0v to 10v output for the lenze


Or one of these:-

https://www.ebay.co.uk/itm/PWM-to-Voltage-0-10V-Digital-Analog-Signal-Tranformer-Converter-Module-PLC/322299717077?ssPageName=STRK%3AMEBIDX%3AIT&_trksid=p2057872.m2749.l2649

John11668
30-10-2020, 06:36 PM
Hi folks
A few steps forward today. 0-10v from the board is varying spindle speed up to about 3500revs
So now I need to find our how to wire the spindle encoder and configure it . Not intuitive this :dread:

depronman
30-10-2020, 06:56 PM
John
Are you doing this with mach3 or linuxcnc ?

You should find the optical spindle encoder sensor wire it’s got four coloured wires in on cable. It went to the LH end of the board that you sent me. Has a flat inline style connector
On my vmc190 then optical sensor on the machine end of this cable was caput but I found a suitable optical sensor in my bits and bobs tin
You will need to establish what sensor is being used and google it for a data sheet
In principle the optical sensor is a led on one side and a sensor on the other they will share a common ground line
Connect the led negative to the Bob ground, the plus side of the led to the required voltage on the Bob (this is where the data sheet comes in handy) let’s assume it’s 12volts
Then the trigger wire to the Bob input pin that you wish to use
Then you rotate the spindle you should see the pin flash one per revolution in mach3 or LinuxCNC
There should be two optical sensors you want the outer one of the two for the single. Pulse per rev (only thing that mach3 will use)
You do the same on the inner sensor and map that pin to the A of the encoder. The single pulse per rev is the Z connector
In linuxcnc you can do all of this with the step config wizard

Paul

inee
30-10-2020, 07:05 PM
Hi john.
the colour codes for the wires is in the manual, the index is a single slot on the disc, the timing has a lot more. If the index doesn't trigger correctly you need to widen the slot a tad

John11668
31-10-2020, 01:08 PM
Am playing at the moment in Mach 3 but fully intend to convert to Linux when I get everything working!
I have the encoder cable but just unsure how to connect it . I dont have a pinout for this Bob. (They dont do instructions for this price )
https://www.ebay.co.uk/itm/Mach3-CNC-Stepping-Motor-Driver-Interface-Adapter-Breakout-Board-USB-Cable/313249744981?hash=item48ef23c855:g:i40AAOSw6Olffu9 N

I got to the pin settings for the 0-10v output by trial and error with motor set for step /direction control rather than PWM. It works but I may not have it right and I am struggling to understand how a step /direction signal controls a relay or a voltage output , so I am apprehensive about connecting an encoder without understanding what I am doing and why I am doing it .

Is there any clear guidance or manual for this task.

Prior to this my only experience was the mill function. I can handle the idea that inputs to pins 2 and 3 provide step and direction instructions to a stepper driver for X motion.
Y and Z similarly. and the CNC4 you board had specific instructions for spindle "on " control. I never got around to varying the spindle speed .
Choosing the pin settings to make X Y and Z movements happen seems intuitive enough .
and spindle relay on is not too hard to grasp in Mach. But pwm and encoder settings are at the moment testing my intellect a bit

I have looked for pin settings for this board but cant find specific ones online .

Which Manual are you referring to Inee? Cant see anythingin the Boxford or Lenze manuals and I dont think I have one specifically for the encoder.
Will explore a bit more .
If someone can hold my hand here and tell me which pin settings to select to get me going , I suspect that things will begin to fall into place and from there I can maybe ask the relevant questions to give me an understanding of what settings I have made .

inee
31-10-2020, 01:36 PM
Hi john the boxford manual (will link in a tick





Below is the manual should be for your bob,
29087

inee
31-10-2020, 02:51 PM
As far as i can see the index and timing sensor are wired thus .
Pin 1 is Green 10v
Pin2 is Blue sensor output x1
Pin3 is Red sensor output x Many
Pin4 is Yellow 0v com

This was based on pics on your other boxford thread , the pins/ use data is from the boxford manual
The pics i used are below

29089



29090

Regards
Inee

John11668
31-10-2020, 05:38 PM
I think I may have blown the LEDs
they are labelled as RS 306-061 but no longer supplied by RS an I couldn't find a Datasheet

If it has 10v input I reckoned it would be safe if tried it with a 5v supply but saw no signs of light .
Tried with a 12 v I saw a single tiny flash then no more .
Then I found this data sheet https://www.silicon-ark.co.uk/datasheets/rs306-061-optoswitch-datasheet.pdf
I am suspecting I may have zapped it with too much reverse voltage. could that be ??

Where to I go for replacements ? Can I select ones which would be oK with the voltages I have available , ie 12 v or 5 v

Doddy
31-10-2020, 05:59 PM
John - firstly, these are usually infra-red, so it may well have been illuminated even if you couldn't see it (hint - you can often get a mobile phone camera live-view to witness IR LEDs).

Reverse voltage?, yup, a good way to fry an LED.

The good thing is these are generally fairly standard devices, although pin-outs may vary. And drive voltages?, can be pretty much whatever you need. I'll assume you've not hit this before otherwise you'd not be asking.. Take the supply voltage, and subtract the forward voltage drop of the LED. Then divide that by your chosen forward current. That gives the value of a resistor to place in series with the LED for it to operate at that voltage. That Datasheet indicated a max forward current of 40mA - that's an absolute max rating, a rough rule of thumb is around 10mA.

So, if you're trying to drive at 5V, and the Forward Voltage is 1.8V, with a Forward current of 10mA (0.01A), that's (5.0-1.8)/0.01 = 320 Ohms, nearest easy found value is 330 Ohms. If you want to drive at 12V, then (12.0-1.8)/0.01 = 1020 Ohms, nearest easy value = 1000 Ohms (1k).

Whichever resister value you calculate, you place the resistor in series with the LED then drive that from the DC supply.

Note, its generally considered unhealthy to reverse bias an LED - they go pop at quite a low reverse voltage. Even if they don't pop, then can be significantly degraded.

Amazon sell reflective opto-couplers - there's generally not a huge difference in the 4-pin devices (2 pins for the LED, 2 pins generally for a photo transistor). They should be pretty much interchangeable.

inee
31-10-2020, 09:21 PM
https://www.ebay.co.uk/itm/RS-Infrared-Slotted-Optical-Switch-Photoelectric-Sensor-Neutral-306-061/303587468830?hash=item46af39261e:g:dM4AAOSwFIVe2WW G

John11668
31-10-2020, 09:57 PM
Will try to snag a couple of those inee

John11668
31-10-2020, 10:31 PM
Ahh doddy !
So simple and straight forward. How could I possibly get it wrong? :stung::smile:

So our friends at Boxford chose a 10v output without any apparent resistor in series? or where did they hide it
And I guess I will have to use 12v so maybe will have to add a resistor, or maybe 5v but I will need to go back to my 1968 physics A level notes if I really want to understand your calc :shame:.

I can manage most mechanical stuff , and have a reasonable grasp of electrical machines , single and 3 phase, Even managed to get a handle on electronics in the days of thermionic valves , but I have to say that when the world turned upside down, when the time came when current stopped flowing from positive to negative and it was decided instead that current was a stream of negatively charged particles careering towards a positively charged source then that was the time at which my "electronic "head started to hurt .

What I am saying is you have to bear with me a bit while this stuff sinks in . When I get my new switches, I may need to come back with the spec, and ask you to turn forward voltage and forward current into a suitable source voltage / resistor combination.
Hope you haven't got too sick of me by that time :redface:

John11668
01-11-2020, 07:43 PM
OK so I have ordered new switches and in the meantime had a closer look at these


29091


So this might be surprising but looks like Boxford have chosen to wire these lamps like xmas tree lamps ie in series .
So our green supply wire seems to ring around the switch commons then on to the two lamps in series. How do I add the forward voltages in this configuration??

Now as Inee points out from the Boxford wiring diagram the input voltage is 10v and there is no sign of a resistor . Is it possible that the lamp resistances stack up so that no external resistor is needed . and how would that be affected if i chose to supply 12v? :distress:

Doddy
01-11-2020, 08:05 PM
Hmmm, you previously linked a reflective opto-coupler, (EDIT: Ah, I see what you did there - the linked datasheet has the slotted version later in the document) these are slotted opto-couplers (same premise, just a different physical configuration) - these more common with slotted wheels as shaft-encoders, etc.

For LEDs which typically outlive the service life of the machine, wiring in series is perfectly fine, and common practice. As you probably guess, you just need to add the forward voltage drop across the individual LEDs into the standard calculation for series resistor (the advantage being that you only need one resistor).

Where this conversation doesn't need to go, but I'll mention anyway, the forward voltage drop is not absolute - it'll vary across devices, temperature, forward current, day-of-the-week, and if you look at it funny. What that means is, you always design (calculate the series resistor) based on nominal values - and the slight variances fall by the wayside... what you can't do is drive an Led without a series resistor of some sort (or rather, a current limiting device or circuit) - as any slight variance in the forward voltage drop would have a significant swing on the forward current and could result in the destruction of the LED.

So, given a wet finger of 1.8V Vf for an IR LED, at 12V drive voltage and an If of 10mA, you'd end up with a series resistor value or 840 Ohm, or closest value of 820 Ohm in the E12 range of resistor values. But, you're overthinking things a little - you can wet-finger resistor values given a safe working forward current. So, whether it's one or two LEDs, and 10V or 12V, you'd probably just pick the ubiquitous 1k resistor. It's close enough. There's plenty of other factors in the system that will impact the performance more than 10-20% accuracy of resistor values.

I'm convinced to within a gnat's arse that there will be some method of current limiting/control in the Boxford board, regardless of the schematics. It's the done thing. And the cheapest (and most reliable) method is a series resistor. It *could* be that the original opto-isolators had integral series resistors for 5V operation (after all, once upon a time 5V was common logic supply voltage), but it's almost irrelevant here - you know the opto's you're buying, you can find the datasheet, you can determine the Vf, and then you can determine the series resistor. But 1k will do.

Your schematic is functionally okay, but remember both the LED and the associated photo-transistor are polarised devices - you need to get the wiring the right way around.

JAZZCNC
02-11-2020, 07:38 PM
John if your thinking to go with Linux CNC then I would plan for it now because Mach3 can only use a Single index pulse or slot for the spindle encoder, Linux CNC can use multi-count encoder and will give you much better speed control.

depronman
02-11-2020, 07:53 PM
Just adding to Jasscnc reply. You will never get mach3 to thread correctly and reliably (been there got the tee shirt, cap and video)
The single pulse per rev is just not enough resolution to cut a thread
This was the one compelling reason that I changed to linuxcnc
Linuxcnc cut a thread on the first attempt and as done ever since The only failure I have had was when I tried to increase spindle speed beyond what the lathe could cope with in terms of accelerating the Z axis and decelerating it
I have a job that needs a M10 x 1.5 cutting on the end of an aluminium bolt. I thread at S500 in 10 passes with two spring passes fine every time.
The stability of linuxcnc over Mach3 is a very welcome bonus. Linuxcnc as never screwed up on a run of parts, I cannot say the same for mach3

now the setup of the two is a different matter all together. But a basic lathe setup can be done with the step and config wizard and is perfectly usable

Paul

John11668
03-11-2020, 12:55 AM
I plan to go there Jazz, but have been working with Mach which I am moderately familiar with . Waiting the switches to give me spindle speed measurement and prove to myself I have a working machine . I have an E stop but need to reinstate interlocks and z traverse limit. Has been a steep learning curve but I would rather go a step at a time and Iinux will be one of those future steps.

John11668
03-11-2020, 01:02 AM
I accept what you are saying too Paul .
I just feel I need to get it doing some plain turning first in mach . Will go to linux before I attempt any serious threading.
My target is to do a few shouldered bolts for vintage motorbikes . Linux probably has to be part of that project.

depronman
03-11-2020, 01:38 AM
Get it running on mach3 then but forget about the spindle speed feedback altogether until you jump to linuxcnc
It will not thread in mach3 so other than getting a spindle speed readout there is no point

Paul

John11668
07-11-2020, 01:56 PM
John - firstly, these are usually infra-red, so it may well have been illuminated even if you couldn't see it (hint - you can often get a mobile phone camera live-view to witness IR LEDs).

Reverse voltage?, yup, a good way to fry an LED.

The good thing is these are generally fairly standard devices, although pin-outs may vary. And drive voltages?, can be pretty much whatever you need. I'll assume you've not hit this before otherwise you'd not be asking.. Take the supply voltage, and subtract the forward voltage drop of the LED. Then divide that by your chosen forward current. That gives the value of a resistor to place in series with the LED for it to operate at that voltage. That Datasheet indicated a max forward current of 40mA - that's an absolute max rating, a rough rule of thumb is around 10mA.

So, if you're trying to drive at 5V, and the Forward Voltage is 1.8V, with a Forward current of 10mA (0.01A), that's (5.0-1.8)/0.01 = 320 Ohms, nearest easy found value is 330 Ohms. If you want to drive at 12V, then (12.0-1.8)/0.01 = 1020 Ohms, nearest easy value = 1000 Ohms (1k).

Whichever resister value you calculate, you place the resistor in series with the LED then drive that from the DC supply.

Note, its generally considered unhealthy to reverse bias an LED - they go pop at quite a low reverse voltage. Even if they don't pop, then can be significantly degraded.

Amazon sell reflective opto-couplers - there's generally not a huge difference in the 4-pin devices (2 pins for the LED, 2 pins generally for a photo transistor). They should be pretty much interchangeable.

Hi again folks
Have replaced the opto switches but i am struggling to follow the calcs above
Taking figures from page 5 of the datasheet Forward voltage is 1.7 v max with a forward current of 20mA, so with two lamps in series we have a forward voltage of 3.4.
Not sure how I choose the forward current but 20mA is the figure given in the conditions column so will go with that.

So cautiously driving with a 5 v supply 5- (2x1.7) = 1.6V and at 20 mA I calculate a resistor of 80 ohms and I dont have one.
And I still cant quite understand why Boxford were driving the same rig with a 10v output and no apparent resistor , so with tongue firmly in the cheek and having a couple of spare opto switches my inexperienced mind thinks why not give it a shot without resistor anyway.

So I wired to plus 5 v and brought the single pulse (blue wire) back to pin 12 , set this up in Mach 3 I am not understanding the other settings I see in Mach.
I get figures flashing up for true spindle speed as I switch on with say S500 but these figures die away to zero as spindle runs up.

I am bewilderd by the range of settings I may need to address so if any one can guide me I would appreciate.
I presume that spindle pulleys just selects a speed range so I think I am OK with that
But Ports and pins , spindle setup , spindle motor , motor outputs , PID settings have lost me, even before I get into Encoder settings :sorrow:

Doddy
07-11-2020, 02:07 PM
20mA is usually around the max rated forward current. It's a fairly conventional rule of thumb to select 10mA. That'd give a resistor of 160R, or thereabouts (selecting 10mA as the basis of the resistor calculation gives you a lot of wiggle - you can halve it and still be within the working limits, chances are you could double it and it'd still work). You get less flexibility as you chose a resistor for a larger forward current, of course.

An idealised, simplified model of an LED would presented a voltage source of V-forward (1.7, above), and 2 in series would be 3.4V. That then would mean without a series resistor you're presenting 1.6V (as you say) into a dead short - theoretically infinite current and the blue smoke escapes. Of course, the real model of the LED would have some internal series resistance, and there's the series resistance of the cabling, and the PSU. It might work. It might work for a while. It might work for not very long. But you have spares!, and if you want any resistors thrown in the post I can do that. It's an interesting experiment in any case, and you can but learn from it.

With Mach, can you confirm that with stationary spindle you get 0 RPM. Then at very low RPM you get some RPM (maybe not the right RPM, but some). The first thing you want to make sure is that the encoder input is working before getting too hooked into the inner workings. You should be able to monitor P12 input on diagnostics page and rotate the spindle by hand to find the index position - just confirm that is working with 1 PPR.

John11668
07-11-2020, 05:31 PM
Would appreciate a couple of resistors suitable for the task Doddy. You still have my address I presume.
And yes spindle speed shows as zero

John11668
07-11-2020, 07:22 PM
Not seeing any illumination on pin 12 as I rotate the disc past the single slot:confusion:

depronman
07-11-2020, 07:24 PM
Not seeing any illumination on pin 12 as I rotate the disc past the single slot:confusion:

I suspect with no resistor you have blown the new optical sensors
Take the pin 12 and touch it to ground. See if this triggers the pin in mach3
If it does then you have likely popped the new sensor

Paul


Sent from my iPhone using Tapatalk

John11668
07-11-2020, 09:23 PM
Are there optical switches with a better voltage tolerance ?

Doddy
07-11-2020, 09:24 PM
That's the purpose of the resistor.

EDIT: I'll get a selection in the post on Monday morning.

John11668
07-11-2020, 09:26 PM
Am currently trying to set up a profile in Linux cnc .
Would that be an easier to place to start .

Kitwn
08-11-2020, 01:37 AM
RS Components do free delivery on all online orders which makes it economical to order only a few LEDs, resistors etc. of various values costing next to nothing for experimenting. I used to feel guilty about this and try to wait until I had a larger order, but they end up sending your order in 5 envelopes from 3 different countries anyway so don't worry about it. RS are not always the cheapest supplier but for small orders the free postage is very useful and delivery (here in Australia anyway) is quick.

If you're not sure what you need I'm sure there are several readers who could scan the online catalogue and suggest RS part numbers for you even if we don't have components we can send you directly.

Neale
08-11-2020, 08:52 AM
(Deleted - retreats with egg on face due to not being able to count on fingers and get same answer twice)

Doddy
08-11-2020, 08:53 AM
.

Neale
08-11-2020, 09:02 AM
I am still in bed. Maybe that's the problem. I really need that first cup of coffee!

Sorry, guys - I promise not to try mental arithmetic in public again...

John11668
08-11-2020, 12:10 PM
RS Components do free delivery on all online orders which makes it economical to order only a few LEDs, resistors etc. of various values costing next to nothing for experimenting. I used to feel guilty about this and try to wait until I had a larger order, but they end up sending your order in 5 envelopes from 3 different countries anyway so don't worry about it. RS are not always the cheapest supplier but for small orders the free postage is very useful and delivery (here in Australia anyway) is quick.

If you're not sure what you need I'm sure there are several readers who could scan the online catalogue and suggest RS part numbers for you even if we don't have components we can send you directly.

Looks like lots of options on there https://uk.rs-online.com/web/c/displays-optoelectronics/optocouplers-photodetectors-photointerrupters/slotted-optical-switches/?redirect-relevancy-
but I wonder I may not have the right spindle and encoder settings .
Until I am confident of those then I might be flogging a dead horse replacing opto switches .
If I were confident of my settings being correct in Mach 3 then I could happily mess about with resistors and adjust positions until I can get light shining through the hole. and the little Indicator of the diagnostics screen illuminating

Still puzzles me how Boxford could supply this setup with 10v and not a resistor in sight

John11668
08-11-2020, 03:35 PM
I suspect with no resistor you have blown the new optical sensors
Take the pin 12 and touch it to ground. See if this triggers the pin in mach3
If it does then you have likely popped the new sensor

Paul


Sent from my iPhone using Tapatalk


Have tried that and the yellow light goes out so sounds like I am stuck until I get some resistors .
Will look out for my mail early in the week.

Had a look on RSwww and literally pence each but with £4.95 postage

depronman
08-11-2020, 06:53 PM
so at least you have proven the wiring is correct and the setup in Mach3 is also correct

just need the resistors and fit a new pair of optical sensors and you should be good to go

Paul

Kitwn
09-11-2020, 01:52 PM
Have tried that and the yellow light goes out so sounds like I am stuck until I get some resistors .
Will look out for my mail early in the week.

Had a look on RSwww and literally pence each but with £4.95 postage

That's interesting, I must have been given a business account (which has free postage for all orders) for some reason without realising it. I've been a customer for donkeys years and have never been charged postage.

depronman
09-11-2020, 01:57 PM
That's interesting, I must have been given a business account (which has free postage for all orders) for some reason without realising it. I've been a customer for donkeys years and have never been charged postage.

I think it depends where you live. In the UK postage is normally charged unless you order is over a certain amount at which point postage becomes free
I have a deal through work where by I get free postage and on most thinks a little off the price

I normally use CPC as they are local and if I need it quickly I can collect at their counter I find that I normally need something immediately so this works for me

Paul


Sent from my iPhone using Tapatalk

John11668
09-11-2020, 07:15 PM
Some of you are privileged but we have no branch of RS or CPC within range .
I do use RS for stuff like relays or Capacitors and the min order which I believe is £20 is usually covered
And I have ordered at 9 pm and found the goods on y doormat by first post following morning. Brilliant

Doddy
09-11-2020, 07:23 PM
I'm a grumpy old git, and rarely have much good to say about anything. But, to be fair, both Farnell and RS have in recent years come along in leaps and bounds for supplying to the general public. As with John's experience I've had good next day delivery on small orders. I do think both trade better in volume, more so RS and MoQ can sometimes be prohibitive, and the supply chain rigour can mean that you can find cheaper elsewhere on some things (connectors and cables especially). Farnell pee'd me off at work with two switches (£140 each) taking over 6 months for delivery - but that's exceptional.

What I'm trying to say is that both RS and Farnell are very accessible to Joe Public.

CPC - yeah, like Depronman, is local to me - it was bought out by Farnell years ago but is a poor substitute. Very handy for picking up bits on-the-day, but with my laziness it can be easier just to throw an order out for next day delivery from the big-two (particularly as CPC closed their trade counter at the weekend under Covid).

Rapid, also springs to mind as a good supplier.

Kitwn
10-11-2020, 12:49 AM
I think it depends where you live. In the UK postage is normally charged unless you order is over a certain amount at which point postage becomes free


I've just checked both the UK and Australian RS websites and you're right. Free delivery for all online orders for those of us living down under but not for you poor souls still living in pommieland.

depronman
10-11-2020, 01:26 AM
I've just checked both the UK and Australian RS websites and you're right. Free delivery for all online orders for those of us living down under but not for you poor souls still living in pommieland.

It’s a long way to come to Oz to get free delivery from RS [emoji2957]. Sounds like a good excuse though...

Paul


Sent from my iPhone using Tapatalk

John11668
10-11-2020, 01:54 AM
For the sort of quantities I need , ebay is sometimes a reasonable route

Kitwn
11-11-2020, 01:22 AM
It’s a long way to come to Oz to get free delivery from RS [emoji2957]. Sounds like a good excuse though...

Paul


Sent from my iPhone using Tapatalk

Any excuse is a good excuse for moving here, especially now.

John11668
11-11-2020, 01:52 AM
Another lesson this evening!
I decided to take a supply to the driver board from my 5 v PSU rather than regularly falling over a Usb lead from the computer.
And I took the opportunity to make some of the other wiring a bit more compact. So I had the power switched off , and unplugged for (I think) more than 20 mins when the 24 v supply cable touched the chassis giving me a hefty flash and lightly welding itself . Maybe need to be careful of big capacitors .
I think it has taken out the driver board as the traverses dont seem to be working. :dread: Spindle controller still OK though .

Is there a way to quietly discharge the capacitor when I switch off??

Doddy
11-11-2020, 10:01 AM
Another lesson this evening!
I decided to take a supply to the driver board from my 5 v PSU rather than regularly falling over a Usb lead from the computer.
And I took the opportunity to make some of the other wiring a bit more compact. So I had the power switched off , and unplugged for (I think) more than 20 mins when the 24 v supply cable touched the chassis giving me a hefty flash and lightly welding itself . Maybe need to be careful of big capacitors .
I think it has taken out the driver board as the traverses dont seem to be working. :dread: Spindle controller still OK though .

Is there a way to quietly discharge the capacitor when I switch off??

Big capacitors?, I always fit a bleed resistor across the terminals - nothing too exotic - for exactly that reason. Others here will argue against that... we agree to disagree.

John11668
11-11-2020, 12:13 PM
Big capacitors?, I always fit a bleed resistor across the terminals - nothing too exotic - for exactly that reason. Others here will argue against that... we agree to disagree.

Not as bad as initially assumed .. Board IS working but amazingly the jog function works better when some "plonker " does not forget to check that the "Jog on" function is selected Dooohhhhh!

Nonetheless I do feel it would be a good idea to bleed away charge from the capacitor when the the supply is broken . What size of resistor would be approprate ??

Neale
11-11-2020, 01:03 PM
I'm in the opposite camp to Doddy in that I don't use any bleed resistors. Why? Because they only matter in practice if you are running the PSU with no load. Once it's all in and working, the load on the PSU is going to discharge the capacitors anyway. If it's a switch-mode supply, then the actual capacitor value is quite small - my 24V supply feeds, amongst other things, the "Mains On" LED on the front panel and that and the motion controller between them discharge that supply very quickly - the LED goes out with no measurable delay when you hit the mains off switch. The 68V main driver supply has four stepper drivers permanently connected; even in "disable" mode when the output devices are presumably switched off, they draw power for their internal electronics and again, that's enough to bring the volts down fairly quickly.

While a bleed resistor won't do any harm, it's something else to house, it wastes power whenever the PSU is energised, and it can get hot.

There are different ways to look at the problem and estimate associated risk. For example, I don't have an interlock on my control cabinet that cuts mains power when it's opened. You pays your money and you takes your choice!

Although a bit of a belt-and-braces man, I personally stop short of the electric trouser hoist!

Doddy
11-11-2020, 01:10 PM
For the benefit of others: This addresses a particular question posed, based on the OP's determination that having a charged capacitor is something that he wants to avoid and because of the observed behaviour. It's not intended as a 5 page debate over bleed-resistors-or-not.

"what size of resistor would be appropriate"

You need to solve a couple of equations...

Tau = RC

(R is the resistor value in Ohms,
C is the capacitance, in Farads
Tau is the value of time taken for the voltage in the capacitor to fall by 63% (or to 37%) of the original voltage).

So, for example a 20,000uF (0.02F) capacitor, and a 1k resistor (1000R), Tau = 1000 * 0.02 = 20 seconds to discharge a 100V to 37V. Then another 20 seconds to discharge to 14V (37% of 37V) and so on. The lower the value of resistor, the quicker the rate of discharge.

However, the lower the value of resistor, the higher the power dissipation that resistor endures whilst powered on, until the capacitor is discharged.

P = V^2 / R

(where V is the voltage across the capacitor)

Assuming your 24V supply.

P = ( 24 * 24 ) / 1000 (using the 1k resistor above).
= 0.576 Watts.

Therefore you'd need a resistor rated at above 0.576 watts - there are a 0.6W rating, then you typically find 1W, 2W, 3W, 5W etc...

Also consider then that you're dumping that power into your PSU enclosure as heat whilst the PSU is operating. To be honest, a couple of Watts is 2/3'rds of cock-all, but you need to be aware.

Myself - I have 72V DC power and, I think 10,000uF capacitors (x2, dual secondary/supply) - I really can't remember but expect I've used in the order of 2k2 wirewound 3W resistors. But that's just my choice/wet finger.


EDIT:

AHA, Neale - you posted first. Part of my rationale is that my cabinet is modular in design - as you say, if I isolate the drivers whilst I'm working in the cabinet, it's reassuring vs spot-welding the wedding ring to chassis.

John11668
11-11-2020, 01:57 PM
OK points taken and it seems that no damage was actually done but the arc was a bit intimidating.
The wedding ring seldom gets into exposed positions (fat fingers) but I am never without the trusty old (and thoroughly abused )Seiko Titanium, and the idea of it being welded to the chassis does not appeal.
However I am not sure if I can accommodate one of these https://www.cpaltd.net/dynamic-braking-resistors/standard-dynamic-braking-resistors/cressall-esh-0-6-kw-dynamic-braking-resistor-range/cressall-esh-custom-rated-0-6kw-ip20-esh-custom-s-b-dynamic-braking-resistor.html?options=cart

If I choose to dispense with the old Boxford control panel then that will vacate some space where the junction strip now resides so may think about it .
Laterally thinking, might it be possible to make the E stop a changeover switch which when it breaks connects the capacitor via the NO terminal to the heater to and thus on to earth , thus avoiding having an electric heater going continually in the panel as the machine is operating??

Doddy
11-11-2020, 02:06 PM
OK points taken and it seems that no damage was actually done but the arc was a bit intimidating.
The wedding ring seldom gets into exposed positions (fat fingers) but I am never without the trusty old (and thoroughly abused )Seiko Titanium, and the idea of it being welded to the chassis does not appeal.
However I am not sure if I can accommodate one of these https://www.cpaltd.net/dynamic-braking-resistors/standard-dynamic-braking-resistors/cressall-esh-0-6-kw-dynamic-braking-resistor-range/cressall-esh-custom-rated-0-6kw-ip20-esh-custom-s-b-dynamic-braking-resistor.html?options=cart


Check your decimal point.

29128

These are 3w...or maybe 5w from the look of them, across the capacitor terminals.

John11668
11-11-2020, 05:44 PM
Sorry doddy
I read "Kw "