Hello Guest it is March 29, 2024, 07:53:45 AM

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
So it works like you want now?

402
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,

403
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?

404
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,

405
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!!

406
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.

407
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!

408
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

409
Mach4 General Discussion / Re: g83.1 question
« on: October 28, 2018, 03:22:03 PM »
rhtuttle. 
How was this solved so we can all know?

410
Mach4 General Discussion / Re: Run Script on startup
« on: October 26, 2018, 05:23:37 PM »
I think mach runs through every macro on startup to make sure there are no errors in your macros.