Hello Guest it is May 12, 2024, 07:53:50 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
Mach4 General Discussion / Re: My File is running real slow
« on: April 12, 2018, 08:43:55 AM »
TTalma,
I'm curious.  Why do you want this in RPM and not in degrees?  Is it to figure out a good feedrate for your file?

572
Mach4 General Discussion / Re: MPG strange behavior
« on: April 12, 2018, 08:19:01 AM »
Your code, to me, looks fine.  When I set up MPGs I usually put something in the PLC script that way I know it is going to read my switches.  Sometimes,
I've noticed having switches in one position, I need to "update" the signal, like you have had to, so I put the function in the PLC script to always update.
You could do the same here, since you set up two functions to switch the Axis and Increment.  Just take out your messages, otherwise it will put the message into the log thousands and thousands of times, and then put your two functions right into the PLC script. 
No more code than you have, you won't notice any difference in the speed of the PLC run. 

------------------------
--Mark 4-12-18
--MPG Settings
AxisSelect()
IncSelect()
------------------------

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

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

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

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

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

578
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

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


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