Hello Guest it is March 28, 2024, 04:24:24 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rwskinner

Pages: « 1 2 3 4 5 6 7 »
51
I took some snipits from the forum here and was trying to use a macro for tapping but it's not working.
When done in a sub, it works fine, when in a macro, the feed barely moves.

Subroutine that works:

G20 (Units: Inches)
G40 G90

(Set Editable Parameters)
#1=0.36         (Set Thread Depth)
#2=16.0         (Set Thread Pitch in Turns per Inch)
#3=400         (Set RPM)
#4=0.1      (Set Rapid Height)

(Internal Parameters)
#103=0.91      (Underfeed, 0.91 -> 9 %)
#104=[#103 * 1.0/#2]   (feed rate adjusted for under feed)

G0 X0 Y0
G0 Z#4
M98 P1
M5 M9
M30


O1
G95 F#104
S#3 M3 M8
G4P4
G1 Z[#103 * #1/-1]
S#3 M4
G4P0.5
G1 Z#4
G94
M99


Macro Doesn't work:

'M975.m1s  Tapping Macro
'
'Set Editable Parameters in Main Program
'#1=0.36         (Set Thread Depth)
'#2=16.0         (Set Thread Pitch in Turns per Inch)
'#3=400         (Set RPM)
'#4=0.1      (Set Rapid Height)

(Internal Parameters)

OrigFeed = GetOEMDRO(55)
CODE "#103=0.91"      'Underfeed, 0.91 -> 9 %
CODE "#104=[#103 * 1.0/#2]"  'feed rate adjusted for under feed

CODE "G95 F#104"
CODE "S#3 M3 M8"
CODE "G4 P4"
CODE "G1 Z[#103 * #1/-1]"
CODE "S#3 M4"
CODE "G4 P0.5"
CODE "G1 Z#4"
CODE "G94"
CODE "F" & OrigFeed

52
SmoothStepper USB / Smoothstepper - Endless Loop
« on: October 18, 2011, 05:47:56 PM »
I have my smoothstepper powered from my PMDX126 board via the ribbon cables.
The problem I'm seeing, if I ever start up mach3 with my control box not powered, or if I cycle the powere to the control box, I get endless dialog boxes stating there were Read and Write Errors.
The problem is, you can power the control box back up and these endless dialogs never go away and you can not escape from them without doing a 3 finger salute and End Task.

Is there a way to fix the above endless loop?

I figure I could power the smoothstepper from USB and leave the PMDX126 powered by it's AC Mains, but won't that start causing issues with different power supplies and grounds?

Thanks,
Richard

53
That works great.  I guess the stepper based system doesn't have the encoder feedback so it's not as sensitive as the G320s.
What was nice about stop, and cycle start is it also controlled the spindle where as feed hold does not.

Richard

54
Feedhold, wait for everthing to quit moving, then press Stop?

Thanks,
Richard

55
General Mach Discussion / ALT-S (STOP) Causes Mach3 to go into Reset Mode
« on: September 27, 2011, 10:43:29 PM »
I do not see this on my stepper based system so I think it's something to do with my Servo setup.

I'm running a PMDX126 board, G320 drives, and KelingInc Servos.  When I have G-Code running and I press the STOP button,
it automatically puts Mach3 into Flashing Reset Mode.  I click on reset and I can go again but I do not think this should be the case and I sure think I could loose my work positions.

Any idea what might be happening?

THanks,
Richard

56
Newfangled Solutions Mach3 Wizards / Re: Newfangled shapes
« on: July 29, 2011, 06:24:03 PM »
Like Industrial control panels that have 20mm, 20.5mm, 30mm, and 30.5mm holes for operators and indicators.  These devices normally have a little indextab on them that keep them from rotating in the hole.  So the hole is round, but has a small notch in them generally at the top.

57
Brains Development / Re: How to handle VFD with no Coils
« on: May 12, 2011, 05:03:18 PM »
I thought I could do something simple like:

CW Spindle On = Formula  f=1
CCW Spindle On = Formula f=3

It sure doesn't have the desired affects, especially since I can't turn off the spindle.
Right now, I'm back at having Spindle On - No Op  set to turn it on and off.

58
Brains Development / How to handle VFD with no Coils
« on: May 12, 2011, 03:35:59 PM »
New at brains.  I had Fwd and Rev working with the Standard Serial Modbus, but now I swap over to brains and Plugin Modbus.

My Teco 7300EV only uses holding registers instead of Coils.
I have a Brain working to Start and Stop the Spindle, and another to set the RPM and Overide.
It works in Forward only at the moment.

What I would like to do is find out the state of CW and CCW and send the proper value to the Holding Register as a 16 bit value instead of a coil / bit.
Would it work to use some user vars to set Run in one and Direction in the other then just AND them together in a formula, then ship out to the register?

Bit 0 - Stop = 0, Run = 1
Bit 1 - Forward = 0, Reverse = 1

So, sending a 1 would be Run in Forward, Sending a 3 Would be Run in Reverse, and sending a Zero Stops the spindle.

Is there a better way to do this.

59
Modbus / Re: My SJ200 & Mach3 setup
« on: May 12, 2011, 01:00:23 AM »
I know you said your done, but here is a trick, use the holding register instead of the coils.  Add the bits together then write it at one time with FC6.

You also could have wrote the following to the Holding Register instead of using Coils.  My 7300 works fine like that.
1 = Run in Forward
3 = Run in Reverse
17 = Jog Mode in Forward
19 = Jog Mode in Reverse

The bits are simple Binary,
The first bit is 0 or 1
2nd is 2
3rd is 4
4th is 8
5th is 16
6th is 32
7th is 64
8th is 128

You simply add the values together for the bit combination you want.
For Example:  Run Forward is the first bit  so writing a 1 to the holding register sets the 1st bit.
Writing a 3 to the holding register sets the first and second bit to ON
Writing a 19  turns on RUN, REVERSE, and JOG
Switched to a Hitachi SJ200 after my original Teco drive failed on me.
There were many frustrating hours spent trying to get this working but I finally figured it out. 
Below are the Modbus setup screen & the Brain I'm using to accomplish Forward / Reverse / RPM's in Mach.

Since all it takes is to write to 1 coil for reverse motion that was easy (the second coil defaults to 0 which changes direction to forward)
The hardest part for me was figuring out how to write to two coils at the same time to get forward motion. 
Finally dawned on me I could use the same 'Spindle CW on' LED twice to do this .. mapping it once to coil '0' & once to coil '1' .
Once I made that single change in my brain .. it worked perfectly.
RPM's also have to be written to register '0' to work .. because again that's actually the first register.

Hope this helps someone else who's struggling like I did to understand this stuff.

60
Newfangled Solutions Mach3 Wizards / Re: Odd Issues with NFS Wizards
« on: December 26, 2010, 06:09:26 PM »
Yes, it's registered and they work most of the time but sometimes I get into this rut and about the only way to get of the screens is to exit Mach3.

Richard

Pages: « 1 2 3 4 5 6 7 »