Hello Guest it is March 28, 2024, 10:14:52 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

571
Hey Soruud,

You would be better off putting future posts in the Mach 4 General Discussion and not here in the Mach 4 Toolbox.

But, I can answer your question on displaying the G90 or G91.  

Open the screen editor and place a DRO anywhere you want to display G90 or G91.

Set the DRO's Parameter to 4003.  This will link it to the register that holds the value of the G90 or G91.

572
The G32 is a single line thread.  So you will have to code the lead in and lead out yourself. 

573
It's strange.  When I used the Mach Motion Wizard to try threading, it didn't work correctly either; I never figured out what it was.  Curiously enough, however, it did mess with my servos.  My motion controller gave an error before the threading move saying that it was not going to run properly.  Max Following Error Exceeded.   

We use G32.  My Dad wrote a program that generates G Code based on variable to do threading.  It works just fine, so we've never noticed an issue with G76 until I tried the Mach Motion Cycles.

574
If it works when you override the enable in the drive, then it is probably how you wired your connections from the HiCON to the Drive.  
Double check that it is wired correctly.

I don't know if you are using the Relays on the HiCON, if not, that could be an easy way to enable the drive.

575
Mach4 General Discussion / Re: Subroutine File Not Found
« on: April 03, 2018, 07:22:26 PM »
No problem.   This is a great community to be a part of!!

576
Mach4 General Discussion / Re: Subroutine File Not Found
« on: April 03, 2018, 05:54:59 PM »
Huh,
Actually, I just changed mine to M99 as well.  It worked just fine.

You need to have the name of your subroutine at the top of your program.

Exp.  In subroutine O1234 the first line needs to be:   (O1234)

(O1234)
CODE
CODE
m99

577
Mach4 General Discussion / Re: Subroutine File Not Found
« on: April 03, 2018, 05:52:21 PM »
Change your m99 in the end of your Subroutine to m30.
I got the following program to run the Subroutine and got the MDI to run the Subroutine.
See picture.  Program on the left and Subroutine on the right.  O1234 is saved in the Subroutines folder.


578
Mach4 General Discussion / Re: How do I make "Go to Work 0" work?
« on: April 02, 2018, 02:43:53 PM »
I never noticed the "A" being in there.  I generally always set up the A Axis on mills (we use the 4th axis) so I have never had this issue.  
Good to know, thanks Craig!

579
Mach4 General Discussion / Re: How do I make "Go to Work 0" work?
« on: April 02, 2018, 10:52:29 AM »
If you are running the demo, make sure it hasn't timed out.  You only have a limited time frame in the demo.

Restart Mach4 and try again.

580
Mach4 General Discussion / Feedrate and Spindle Speed Override LEDs
« on: April 02, 2018, 09:03:45 AM »
When I'm machining something and I override the Feedrate or Spindle RPM, I sometimes forget to change it back.
 
I liked how Mach3 had the flashing LEDs whenever the Feed or Spindle were not at 100%.   So I added a couple of LEDs to the screen in the Feedrate and Spindle control boxes to do the same thing.

I used two options of code to get this to work; either set the screen property to "1" for the LED or link the LED to an Output and toggle it on or off.

PLC Script
---------------------------------------------------------------
--Override LEDs whenever Feedrate and Spindle are not at 100%.
---------------------------------------------------------------
--local inst = mc.mcGetInstance()
local FRO = mc.mcCntlGetFRO(inst) --Returns:  0 - 250
local SSO = mc.mcSpindleGetOverride(inst) --Returns:  0.5 - 1.5
local FROLED = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT60)
local SSOLED = mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT61)

if FRO ~= 100 then
     scr.SetProperty("FROLED", "Value", "1")         --Screen Property Example
else
     scr.SetProperty("FROLED", "Value", "0")
end

if SSO ~= 1 then
     mc.mcSignalSetState(SSOLED, 1)         --Output Example
else
     mc.mcSignalSetState(SSOLED, 0)
end
---------------------------------------------------------------