Hello Guest it is March 28, 2024, 07:59:07 AM

Author Topic: Fitting Limit/Home Switches to TONSEN TS3040C CNC  (Read 9416 times)

0 Members and 1 Guest are viewing this topic.

Fitting Limit/Home Switches to TONSEN TS3040C CNC
« on: May 25, 2014, 06:02:18 PM »
Well, before I begin to use this thing in earnest I have taken onboard everyone’s advice and started fitting Limit Switches to the X, Y and Z planes. Everything is going smoothly, and as a matter of prolonging the usable life of the control electronics I have upgraded several components on the parallel port with high temperature low ESR electrolytic capacitors, half decent 5v and 15v regulators and a better spec TTL Tri-State Buffer I.C.

My question/query is that I only have input ports on Pins 10, 11, 12, 13 & 15 means that need to use the limit/homing method as in fig 4.7 of the manual in an OR configuration to where both ++Limit and the –Limit switch have the same signal i.e. active LO. This being the case how does Mach3 determine which way to work away from the active Limit?

I may not be putting this over too well, so to simplify: The Transverse Beam X is moving ++ towards the limit switch, it hits the limit switch and stops. How does it know which limit it has come against, and more to the point which way to move to allow it move off the limit…


Once (and if ever!) I finish the upgrades and modifications I will publish the details and offer the electronics at cost to anyone interested.  


Recreational Chemistry is probably a more pleasing chore!
« Last Edit: May 25, 2014, 06:05:23 PM by Buggalugs »
God created Ale to make us all happy ..... 8)

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Re: Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #1 on: May 26, 2014, 03:00:51 PM »
Your machines directional control will have to be correctly configured prior. Then in the homing/limits configuration window there will be a dialog box asking home negative or not. If sharing a switch as both home and limit, both must be enabled in the software.

You can actually only use 1 pin for all 3-6 (IIRC) axis as Mach knows which axis is in motion and to which direction it is going.

It works quite well actually though I do use 1 pin per axis and the home and limit switch is the same switch. I use software limits to stay within the working confines of the machine. When loading a file, software limits will warn you if you exceed the travel of your machine and on which axis the over travel will occur.
« Last Edit: May 26, 2014, 03:05:57 PM by Fastest1 »
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Re: Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #2 on: May 26, 2014, 03:23:32 PM »
Mmmm.. I had thoughts along those lines but I thought I had better ask someone else for their input rather than dive in and make a pig's lug of it. I have configured most of the wiring today and I am documenting and imaging everything as someone else may want to do the same thing with their Chinese Wonder. (A wonder as it's a wonder it works!)

I may need to come back to this when I come to changing the parimeters and settings in Mach3.

Thanks for your input.

Regards
Keith
God created Ale to make us all happy ..... 8)

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Re: Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #3 on: May 26, 2014, 03:31:01 PM »
Come back til you get it right. We will be here.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Re: Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #4 on: June 07, 2014, 08:51:15 AM »
Well I'm almost done fitting the hardware limits, and I'm ready to start the difficult bit. It's a real bugga trying to get it move away from the hard limit when it hits it!!!!

Okay first question, How do I set up the Soft Limits ??? I have gone through the Mach3 Manualm it mentions setting up the soft limits but I don't seem to be able to find to enter any values, i.e. I want to prevent the Z axis from going any lower than 72 units (75 is the hardware limit)

Secondly, for sone reason Mach3 has started hiding the option dialogue option boxes BEHIND the main operating window making it very difficult to work with - Any ideas ???      
« Last Edit: June 07, 2014, 08:53:27 AM by Buggalugs »
God created Ale to make us all happy ..... 8)

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #5 on: June 08, 2014, 07:57:18 AM »
Is your screen enlarged? Or the wrong values in the screen size?

Soft limits can be used by first taking the machine to its maximum travel of Z for example (all the way up) then move down to the point you don't want to pass, record number on DRO. Place 0 and whatever the recorded number is into the min and max dialog boxes. Put a reasonable number into the "slow zone" box, maybe .25-.5"? The machine will approach the limits at a rapid speed, then slow down at that distance from the end/limit value.

Soft limits work very well however they are dependent on homing or referencing your machine on each start up of Mach. Being open loop, it needs verification of its location. I hope that makes sense.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Re: Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #6 on: June 08, 2014, 09:13:54 AM »
Thank you for your reply. I'm on my way to the 'ManCave' (Where I keep my Machine) now to try it out. As to my display problems, 'It used to work finebut all of a sudden it started to hide the option dialogue boxes behind The Mach3 On screen display. ??? I'll probably have to get back to you again.
God created Ale to make us all happy ..... 8)

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #7 on: June 08, 2014, 12:09:23 PM »
Soft limits work very well however they are dependent on homing or referencing your machine on each start up of Mach. Being open loop, it needs verification of its location. I hope that makes sense.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)

Offline Fastest1

*
  •  920 920
  • Houston, TX
    • View Profile
Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #8 on: June 08, 2014, 12:10:44 PM »
How odd is that? I tried to edit my post a few times and kept getting an error message. Odd that as soon as I copied and pasted it, it went thru.
I want to die in my sleep like my grandfather, not like the passengers in the car! :-)
Re: Fitting Limit/Home Switches to TONSEN TS3040C CNC
« Reply #9 on: June 08, 2014, 03:05:28 PM »
Having a real pig of a time with this... I tell Mach3 to home my limits which it eventually does at a snail's pace but then all my DRO's (I think that is the correct terminology for the Digital Position readout) all work in the negative. i.e. to move Y back down the table 100 units it only responds to -100  >:(

If I  check the Reversed in the Motor Home Soft Limits Dialogue Box it switched the direction to the Home limit but my DRO's are still negative... ???
« Last Edit: June 08, 2014, 03:15:31 PM by Buggalugs »
God created Ale to make us all happy ..... 8)