Hello Guest it is August 22, 2025, 05:06:49 PM

Recent Posts

Pages: 1 2 3 4 5 6 7 8 9 10
1
General Mach Discussion / 2 spindel axes Mini swiss Lathe
« Last post by octopus80 on August 22, 2025, 11:40:47 AM »
Has anyone already driven two spindle axes at different speeds, where one axis, the C axis, can also be set in degrees? It is for a small Swiss-type lathe project. I would like to use the 6-axis controller from CS Labs for this. I would like to use this on Mach 4.
2
General Mach Discussion / Manual tool change macro help
« Last post by isahib@live.com on August 22, 2025, 06:01:53 AM »
Good day guys

I need help with the macro for manual tool change with a fixed position tool setter. I have used a macro found on the forum. it works as it should except for the  Z height which is incorrect after the tool change. My understanding of it is that I zero my work coordinates and run the file when it comes to the m6 command the M6 start macro takes over moves to the tool change position waits for the manual too change, then probes the new tool. it then waits for the cycle start button to be pressed and starts the M6 end macro which should bring the tool back to where it the previous tool stopped with the tool height Zero in the position. I have attached a short video of the issue. here you can see that before the tool change the Machine coordinates for Z is -30 and after the tool change it is -125. please help with correcting the code.


https://youtu.be/mrfNlQ5pM5M?si=7JmL6Iqr2e-vs4yL


this is the macro that i'm using.

M6 start macro

' Set variables to store some current, selected and user defined values

tool = GetSelectedTool()               'Value for Tool DRO at completion of tool change
CurrentFeedMode = GetOemDRO(819)        'Get current G0/G1 state
CurrentUnitsMM = GetOemLED(802)         'Get Current MM Units state
CurrentAbsCMode = GetOemLED(48)         'Get current G90/G91 state
CurrentFeedRate = GetOemDRO(818)        'Get the current Feed Rate
ToolChangeX = GetUserDRO(1200)          'Get user defined tool change location
ToolChangeY = GetUserDRO(1201)
ToolChangeZ = GetUserDRO(1202)          'NOTE: Z will be used for Auto Tool Zero start height
GageH = GetOEMDRO( 1001 )               'Gage Block Height
ProbeD = 150                        'Depth to probe for touch plate


' Move to user defined tool change location


If CurrentUnitsMM = FALSE Then          'Ensure measurement mode is in MM for macro
   Code "G21"
End If

If IsSafeZ() Then                   'If SafeZ is defined,
   safeZ = GetSafeZ()              'use it for positioning commands
Else
   safeZ = 0                     'Otherwise, moves are made at MC Z0
End If

Code" G53 G0 Z" & safeZ                'Position spindle for tool change
Code"G53 G0 X" & ToolChangeX
Code"G53 G0 Y" & ToolChangeY

While IsMoving()
   Sleep(10)
Wend

PText = "Tool #" & tool & " requested.  (See Setup Sheet for details.)" _
   & Chr(10) & "Insert requested tool and press OK to continue."
MachMsg(PText,"Tool Change Request",0)
SetCurrentTool( tool )                 'Set the Tool DRO to the new tool number


' Auto tool zero


AutoZeroPrompt = "Place probe for Auto Tool Zero and press OK" _
   & Chr(10) & "Or press CANCEL to zero tool manually"
AutoZero = MachMsg(AutoZeroPrompt,"Auto Tool Zero",1)

If AutoZero = 1 Then                  'AutoZero = 1, User pressed OK
   Code "G53 G0 Z" & ToolChangeZ        'ToolChangeZ is MC for starting location of probing
   While IsMoving()
      Sleep (10)
   Wend
   ZCurrent = GetOemDro(802)       'Current Z DRO
   ZNew = ZCurrent - ProbeD            'Probe depth end height
   Code "G90F500"                  'slow feed rate to 100 MM/MIN
   Code "G31 Z" &ZNew               'Start the probe move
   While IsMoving()
      Sleep(10)
   Wend
   If GetOEMLed(825) = True Then        'Probing successful
      ProbeTouch = GetVar(2002)         'Exact height touch plate was contacted
      Code "G1 Z" & ProbeTouch         'Go there (corrects for potential over-run)
      While IsMoving()
         Sleep(10)
      Wend
      Call SetDro(2,GageH)           'Set Z DRO to adjusted value
      FinalMove = GageH + 10
      Code  "G0 Z" &FinalMove           'Raise probe off of touch plate
      While IsMoving()
         Sleep(10)
      Wend
      Message("Press Cycle Start to continue...")
   Else                        'Probe did not contact touch plate
      Message("Zero not achieved - Check probe and try again manually")
   End If
Else                           'User selected Cancel on Auto Tool Zero prompt
   Message("Zero tool manually and press Cycle Start to continue...")
End If

'RESTORE MACHINE STATE VALUES

'Feed Rate

Code "F" &CurrentFeedRate               'restore starting feed rate

'G0/G1 State

If CurrentFeedMode = "80" Then           'Machine still in initial state at start of macro
   Code "G0"               'so set move mode to G0
Else
   Code "G" & CurrentFeedMode          'Otherwise set move mode to previous value
End If

'G20/G21 State

If CurrentUnitsMM Then                  'Units was previously set to mm
   Code "G21"
Else                          'Units was previously set to inches
   Code "G20"
End If

'G90/G91 State

If CurrentAbsCMode Then               'System was using absolute coordinates
   Code "G90"
Else                        'System was using incremental coordinates
   Code "G91"
End If         

------------------------------------------------------------------------------------

M6 end macro

'The (modified) default script here moves the tool back To m6start If Any movement has occured during the tool change..

x = GetToolChangeStart( 0 )
y = GetToolChangeStart( 1 )
z = GetToolChangeStart( 2 )
a = GetToolChangeStart( 3 )
b = GetToolChangeStart( 4 )
c = GetToolChangeStart( 5 )
If(IsSafeZ() = 1) Then
   SafeZ = GetSafeZ()
   Code "G53 G0 Z" & SafeZ
Else
   Code "G53 G0 Z0"
End If
Code "G0 A" & a' & "B" & b & "C" & c
Code "F2000 X" & x
Code "F2000 Y" & y
Code "F2000 Z" & z     
3
General Mach Discussion / Re: Newbie, Limit switch issue
« Last post by BeachCustoms on August 21, 2025, 07:55:17 AM »
Update:

I was able to get around the issue by wiring each limit switch in parallel, i realize this is shouldn't be necessary, but its how I got it to work.
4
PoKeys / POKeys 57U .. is it just me, or ...
« Last post by alanr on August 20, 2025, 10:55:54 AM »
I want to build a USB stepper controller, for the day my old two parallel port Dell "lets the magic smoke out".

I bought a POKeys 57U and started to read .. and read .. and read .. Then I looked at the physical size, specifically, the connector spacing , which doesn't allow for ferrules on the wires; a big deal for me. 

So I broke down and bought a cheap Chinese USB controller, because it just seemed easier.

And it WAS easier .. except that not everything works; the spindle control does nothing.  Best guess .. the board is bad.  (I know I know, stop the presses, cheap Chinese crap doesn't actually work.)

So I'm back to looking at the POKeys and wondering .. is it just me, or is the POKeys genuinely a PITA to set up and get working?
5
Third party software and hardware support forums. / STB5100 and spindle control
« Last post by alanr on August 20, 2025, 10:39:26 AM »
I've just built a new stepper controller, about my tenth stepper or servo controller.

I was getting worried about the age of the computer running my mill, a computer that still has a couple of parallel ports in it.

Time to build something that uses a USB port, so if (when) the old Dell gives up the ghost, I'll be ready.

I used an STB5100 5 axis USB controller, the "blue" one. 

(I actually bought a POKeys 56U as well, but the configuration looks daunting and the physical implementation is .. troublesome.  So I thought I'd take the easy way out.)

The steppers work fine with the STB5100, so I know the basic communication is working.

But I'm unable to get the spindle control pins to do anything at all.  Neither the Enable, AVI nor PWM show anything except zero volts.

Configuration seems easy enough, which is to say, not many settings and most set to the default.

I see two options.  Maybe the board is just plain defective; not too hard to believe with something cheap from China.  Or maybe the default settings are not what's called for.

But randomly .. or sequentially .. trying combinations of ports and pins would drive me crazy.

Does anyone have any suggested settings for this board?

Thanks!
6
General Mach Discussion / Re: Ref All Home
« Last post by BeachCustoms on August 20, 2025, 07:32:14 AM »
Morning Gary,
              Did you figure out the first issue? I am having the same sort of problem. My machine homes the Z & Y and just sits there for the x.
7
General Mach Discussion / Newbie, Limit switch issue
« Last post by BeachCustoms on August 20, 2025, 06:49:28 AM »
Good morning everyone,
             I am in the process of building a cnc router that I designed, I am to the point that I have the machine moving and running via a program I ran on my other machine. I am having an issue homing the machine, it homes the Z and the Y, but when it comes to the X the machine doesn't move and I get a message that says "Requested home axis home switch is active, please fix, then home". The switch is not depressed and I have verified that the switch is good by using an om meter (and switched the switches with an axis that is homing). Any ideas I can try would be helpful. The controller I am using is a AXBB-E, with Nema 23 Closed loop steppers.

TIA
Carlton
8
General Mach Discussion / VFD not reaching 400hz
« Last post by isahib@live.com on August 20, 2025, 05:02:23 AM »
Good day guys

I need some help. I have a 6090 Chinese router which was set up with Richauto DSP A11s controller. I have now changed the controller to mach3 parallel port controller with a standalone pc. All works as it should accept for the Spindle not reaching it maximum of 24000rpm. it is connected to a Fuling DZB280B002.2L2DK VFD, using the 0-10v port on the controller connected to the VI pin on the VFD. The spindle turns on as it should and the speed increases and decreases with MACH3.

Mach3 set to 24000rpm the VFD reads 200Hz and the 0-10V pin is at 10 volts
Mach3 set to 10000rpm the VFD reads 100Hz and the 0-10V pin is at 5.5 volts
Mach3 set to 0rpm the VFD reads 0Hz and the 0-10V pin is at 0 volts

This leads me to believe that the Mach3 and the controller is working as it should. I have been through all the settings on the VFD But can't figure out what the problem is. This is the VFD setup

F0.00 = 0
F0.01 = 1
F0.02 = 0
F0.03 = 1
F0.04 = 400HZ
F0.05 = 400HZ
F0.06 = 10HZ
F0.14 = 0

F1.00 = 1
F1.01 = 2.2KW
F1.02 = 400HZ
F1.03 = 24000RPM
F1.04 = 220VOLTS
F1.05 = 8.0AMPS
F1.20 = 0 LINEAR V/F CURVE
F1.21 = 0 AUTO TORQUE BOOST

F2.01 = 1 FORWARD
F2.02 = 2 REVERSE
F2.09 = 0.00V VI LOWER LIMIT
F2.10 = 0.0% VI LOWER LIMIT
F2.11 = 10.0V VI UPPER LIMIT
F2.12 = 100% VI UPPER LIMIT

All the other settings are at the default values. I did reset the VFD before using these settings.

Any help with be appreciated.
9
The only thing that I can think of which could affect Mach3 and Mach4 operation in a similar manner despite different PC’s, ESS’s, etc. (assuming there is not something unusual in your GCode file) would be electrical noise. This could be caused by something like a compressor starting up or a bad contactor somewhere which is causing an arc – basically electrical noise on the mains supply.
 
I would start out by checking that the dc. supply to your ESS is sound and in accordance with Warp9TD’s recommendations. Its supply cable, signal wires and the Ethernet cable are not being routed close to the spindle motor wiring (or its associated VFD wiring).
Also check that during the Mach4 conversion you have not compromised the grounding / shielding of any wiring relating to the machine in general.

Hope this helps.

Tweakie.
10
When viewing the Input Signals/Output Signals area of the Mach3 Diagnostics screen, when jogging X, Y, or Z axis, will I see activity in any of those indicator lights?

Output 1 illuminates when Spindle is toggled.  But nothing happens when jogging the steppers.  (The current position counts up/down, but nothing on the Input/Output Signals.

Still trying to determine if my Mach3 setup is wrong or if I have a bad controller board.  Spindle runs, steppers won't move.

Thanks.
Pages: 1 2 3 4 5 6 7 8 9 10