Hello Guest it is May 12, 2024, 02:11:06 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

401
Mach4 General Discussion / Re: Spindle speed buttons
« on: November 08, 2018, 04:28:30 PM »
Vivek,
You can use the following code inside your buttons.
In your G Code, have a commanded Spindle RPM of 12,000.

mc.mcSpindleSetOverride(inst, 0.500)  -- This is for speed or 6000
mc.mcSpindleSetOverride(inst, 0.667)  -- This is for speed of 8000
mc.mcSpindleSetOverride(inst, 0.833)  -- This is for speed of 10000
mc.mcSpindleSetOverride(inst, 1.000)  -- This is for speed of 12000
mc.mcSpindleSetOverride(inst, 1.167)  -- This is for speed of 14000
mc.mcSpindleSetOverride(inst, 1.333)  -- This is for speed of 16000
mc.mcSpindleSetOverride(inst, 1.500)  -- This is for speed of 18000

402
Mach4 General Discussion / Re: Spindle speed buttons
« on: November 08, 2018, 04:14:31 PM »
Vivek,
Okay.  You can only go to 150 percent. That being said, If you make 12,000 RPM is at 100% then 50% is 6,000 RPM and 150% IS 18,000 RPM. 
Would that work? 
That would allow you to add buttons to reach your min and your max RPM.
If that works I can help you get the buttons to work correctly.

403
So it works like you want now?

404
Daniba73,
It toggles correctly? 
You can reverse the logic, yes.

[mc.ISIG_INPUT1] = function (state)
     if (state == 1) then --
   --Single Block Toggle Test
   local inst = mc.mcGetInstance()

   local SBMode = mc.mcCntlGetSingleBlock(inst)
   if SBMode == 0 then
      mc.mcCntlSetSingleBlock(inst, 1)
    else
      mc.mcCntlSetSingleBlock(inst, 0)
    end
    end
end,

405
Mach4 General Discussion / Re: Spindle speed buttons
« on: November 07, 2018, 07:28:54 PM »
Vivek,
I'm pretty sure your Base Spindle RPM is totally dependent on G Code.
You can override the RPM from 50% - 150% .

That being said, I don't think you can change commanded spindle speed with a button while G Code is running.  I just tested this and it kept locking up the GUI. 

What you can do is make buttons that do math in them to get your desired spindle speed or at least up to 150% of commanded.

What do you mean by Coding 100 = 6000
You mean Commanded S100 is an actual RPM of 6000?

406
daniba73,
Once you map a button to an input in Mach4 then you  can put this script into the signal library in the screen load script. 
I have this example mapped to input 5

 
[mc.ISIG_INPUT1] = function (state)
     if (state == 1) then --
   --Single Block Toggle Test
   local inst = mc.mcGetInstance()

   local SBMode = mc.mcCntlGetSingleBlock(inst)
   if SBMode == 1 then
      mc.mcCntlSetSingleBlock(inst, 0)
    else
      mc.mcCntlSetSingleBlock(inst, 1)
    end
    end
end,

407
Mach4 General Discussion / Re: New Forum!
« on: November 05, 2018, 10:07:34 PM »
I'm with steve.  The forum is the main thing I go to when going to the website.  It was easy to get to from the old website. 
I like the new look though!!

408
Mach4 General Discussion / Re: A very, very general question
« on: October 31, 2018, 01:52:24 PM »
The BRX PLC uses the Do-More software.  I've used it on a Lathe, it is an excellent PLC; but it is over featured (IMHO) for what we do with them. 

The Click worked great on the Hurco and I've already got one installed in an old Milltronics that we are currently retrofitting.

But, the Do-More software is pretty powerful, it did save a few rungs in our ladder for making flashing outputs.

409
Mach4 General Discussion / Re: A very, very general question
« on: October 30, 2018, 09:57:22 PM »
The first time I used a PLC was on this Hurco.  If you have any knowledge of Ladder Logic, you'll do jut fine.
The Click is hard to beat; great functionality at a low cost!

410
Mach4 General Discussion / Re: A very, very general question
« on: October 30, 2018, 09:14:15 AM »
Hey Seelsturm,
We have an old Hurco here at the shop.  It has a SMTC and was not too difficult to get working.
We are using the HiCON Integra from Vital Systems for our motion controller but I also put a CLICK PLC from Automation Direct on the machine as well.
The PLC controls the tool change with ease.
Steve pointed me in the right direction when we got this machine going.  Since tool positions are random in the carousel, Mach4 has a place in the Tool Table to keep track of this position.  That way you don't have to set up some weird way to keep track of this, it can be done right in the tool table.
All we do is send a signal to our PLC to start the tool change and send a signal back to Mach4 when it is complete; Mach4 will then handle the organizing of the tool table; Set the current tool and tell the previous tool what pocket it is now in.  

https://www.youtube.com/watch?v=8Bj_U1tUhTo