Hello Guest it is April 27, 2024, 08:46:19 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

831
General Mach Discussion / Spindle S Command Not Working
« on: June 01, 2016, 09:49:47 AM »
Working on a VMC and my spindle won't change speed using the "S" command.  The only way I can get the spindle to change speed is to manually enter a speed into the spindle speed DRO.  I have even tried writing a G Code program that varies the spindle speed and it still has no effect.  My spindle works great M3, M4, and M5 all work correctly and the spindle is calibrated, the only issue is the S command in MDI or G Code.
Any thoughts?
-Chad

832
I have tried to use the OEMtrigger to Macro Call before with no real success, not sure what it was, anyways, what I was trying to do was change the feedrate depending on which direction I had a switch.  In the macro I started out with an "IF" statement, if input 1 then ---> Code --> end if        if input 2 then ---> Code ---> end if.  From your pictures you may have to add an led to the screen to compare the two options.  But that would be simple enough.  Just a thought.
-Chad

833
Mach4 General Discussion / Re: GetProperty LED
« on: March 21, 2016, 08:15:54 AM »
Thanks DazTheGas
I don't know how I missed that!! 
Here is the corrected and working code!

local FeedLeftLED = scr.GetProperty("FeedLeftLED", "Value")
    if (FeedLeftLED == "1") then
            scr.SetProperty("FeedLeftLED", "Value", "0")
        else
            scr.SetProperty("FeedLeftLED", "Value", "1")
    end

Thanks for the help!!

834
Mach4 General Discussion / GetProperty LED
« on: March 18, 2016, 04:23:03 PM »
Hello All,
I can't seem to figure out how to get the "value" of an LED and compare it.
I have a button that I'm setting up to toggle an LED on and off.  Here is the code I have written, when I hover over the Variable it says "ERROR".  Any thoughts??

local FeedLeftLED scr.GetProperty("FeedLeftLED", "Value")
    if (FeedLeftLED == 1) then
            scr.SetProperty("FeedLeftLED", "Value", "0")
        else
            scr.SetProperty("FeedLeftLED", "Value", "1")
    end

-Chad

835
Thank you Russ!  Didn't even think of looking in there. =)

836
It's probably right in front of my face but I cannot seem to find the input.  What is it called, I just cannot find it.  Using the ESS.

837
Is the door safety circuit a Pin or an OEM Button of some kind?  I'm quite curious to find it now.

838
General Mach Discussion / Re: Mach 3 vs Mach 4
« on: December 21, 2015, 01:42:06 PM »
I don't particularly like using the pokeys for input.  I had some serious noise issues with the pokey while retrofitting a Johnford VMC one time.  As far as output goes, the pokey works wonderful.  Just a littler cautious about the input. 

839
General Mach Discussion / Re: Mach 3 vs Mach 4
« on: December 21, 2015, 08:12:47 AM »
I'm with Blockhead.  I'm going to wait to use Mach 4 whenever these guys on the forum say its working very well.  The only issue I'm having with Mach 3 is the amount of Input and I'm going to try using a PLC via TCP Modbus to fix that issue for now.  I have to say I am excited for Mach 4 to be more "User Friendly".  Just waiting for the next update for the ESS!!

840
General Mach Discussion / Re: Im stuck - Just cant get anywhere..
« on: December 17, 2015, 09:53:37 AM »
The EStop might need to be set to Active High or Low, since you don't have an estop on the unit it might be thinking there is a connection being made even though there is nothing there.