Hello Guest it is April 26, 2024, 01:10:22 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 - Cbyrdtopper

531
Mach4 General Discussion / Re: Spindle at Speed
« on: May 07, 2018, 02:59:30 PM »
Mach4 can run straight out of the box.  Once you setup motion you can run it just fine.  However, the beauty of Mach4, is being able to add your own little flare to the system. 

Mach4 is improving day by day, I remember coming into work and for almost a week straight there was a new developmental version ready everyday.  The time it would take to keep up to date documentation would be crazy. 

I will say however, things that are nailed down like the PMC and Probing could have some nice updated documents to help end users. 

Side note speaking of Zero Brane.  Have you noticed an issue with Zero Brane "Find".  It doesn't work at all on my end. 

532
Well that's a bummer.  I guess I'll have to get the industrial license so I can have the Tool Magazine pre load while running g code.  Any Idea how to make it do such a thing?  

I made a macro using "T" once before per Steve's input.  It works great, but it is running off of a DC Gear Motor via Outputs and not an Axis.

I plan on being able to rotate the magazine through the PLC we are adding to this mill, it will be easy enough to keep track of positions between Mach and my PLC respectively, but being able to rotate the axis ANY time I want will pose to be a nice puzzle.

Any thoughts?

533
Craig,
 
Is the out-of-band on hobby always the spindle?  I was kind of hoping I could use a separate axis out-of-band.

We are currently working on retrofitting a Milltronics with a SMTC; originally it had a servo to rotate the tool magazine, so we put a servo back on it. 

I was going to ask before long how you moved an out of band axis, for us, to pre load the tool changer, seperate while g code is running.  What did you plan on using an out-of-band axis for?

534
Mach4 General Discussion / Re: y
« on: May 04, 2018, 03:45:07 PM »
y not?

535
No problem.  Glad you got it working!

536
I'm curious,
If you are probing, why would you want to know what fixture offset is on.  Wouldn't that be something you initiate before you start your probing cycle?  Or are you going to probe mulitple fixtures at once?

The code I gave you , mc.mcAxisSetPos(inst, 2, 5.5) --(inst, Axis#, New Position)   changes the position of the current fixture offset and you can change the Z Position to 0 with this code and it will update the Work Offset.  You can watch it update in the

Diagnostics Tab.


To answer your most recent question; some of the developers do read through the forum, and you can start a ticket with Artsoft.  If you choose to go that route, be sure to come back here and post a solution to your problem that way everyone can learn

from your post.

537
Mach4 General Discussion / Re: Toggle button
« on: May 01, 2018, 02:31:01 PM »
Aweseome! Glad that worked out for you then!

538
Mach4 General Discussion / FIFO Overflow Error
« on: May 01, 2018, 09:04:37 AM »
Can any tell me what a FIFO Overflow Error is?

539
Mach4 General Discussion / Re: Spindle Override
« on: May 01, 2018, 08:21:26 AM »
Hey Ron,
Check this macro out.  It shows how to get and set the FRO, RRO, and SSO.  FRO and RRO return 0-250 and 0-100.  SSO returns 0.5-1.5

function m309()
local inst = mc.mcGetInstance()
local FRO = mc.mcCntlGetFRO(inst)--Returns:  0 - 250
local RRO = mc.mcCntlGetRRO(inst)--Returns:  0 - 100
local SSO = mc.mcSpindleGetOverride(inst)--Returns:  0.5 - 1.5

mc.mcCntlSetFRO(inst, 135)
mc.mcCntlSetRRO(inst, 75)
mc.mcSpindleSetOverride(inst, 1.2)

mc.mcCntlSetFRO(inst, 100)
mc.mcCntlSetRRO(inst, 100)
mc.mcSpindleSetOverride(inst, 1.0)


end --m309()

if (mc.mcInEditor() == 1) then
     m309 ()
end

540
Mach4 General Discussion / Re: Toggle button
« on: May 01, 2018, 08:14:59 AM »
This is what I'm currently using on a machine here in the shop.  I haven't look at it in a while, this script can probably be updated.  But it is working like you want.  Push on/Push off.

------------Input 3----------------
--------Toggle SpinCW()-----------
[mc.ISIG_INPUT3] = function (state)
if (state == 1) then
     local inst = mc.mcGetInstance();
     local sigh = mc.mcSignalGetHandle(inst, mc.OSIG_SPINDLEON);
     local sigState = mc.mcSignalGetState(sigh);
     if (sigState == 1) then
         mc.mcSpindleSetDirection(inst, 0);
     else
         SpinCW()
     end
end
end,