Hello Guest it is March 28, 2024, 04:43:58 PM

Author Topic: changing/adding function code vs writing macro script  (Read 2208 times)

0 Members and 1 Guest are viewing this topic.

changing/adding function code vs writing macro script
« on: April 14, 2016, 04:51:13 PM »
I am trying to run a foam cutter and my board won't accept a XYAB axis, only XYZA.  So I need to change the foam screenset to jog Y & Z together (not Y and B per function codes 354 and 355).

So can I modify an existing function code?

Or can I add another function code and use an existing one as a template (like add function codes 356, 357)?

Or do I have to write a script and call that out for the button?

If the latter what would the scripts say to accomplish:
 
Jog Together Y & Z ++
Jog Together Y & Z – 

Thanks guys.
Re: changing/adding function code vs writing macro script
« Reply #1 on: April 19, 2016, 12:31:24 PM »
Can someone help me here?  How do I get the Y & Z to jog together fro the foam cutter screenset?

This is the screenset:

http://devcad.forumfree.it/?t=67621349

Thanks guys.



 

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: changing/adding function code vs writing macro script
« Reply #2 on: April 19, 2016, 05:08:00 PM »
Jogging multiple axes via a button is not really possible other than OEM buttons designed to do so.
Unfortunately the buttons that are meant for Foam Cutters jog X and A and Y and A, none for Z :(

What USB board do you have? Is there no option in the plugin which axis to enable?

Hood
Re: changing/adding function code vs writing macro script
« Reply #3 on: April 19, 2016, 06:09:43 PM »
Darn, that's what I was afraid would be the case. 

I have a e-Cut 4-axis USB motion control board.

http://www.cnczone.com/forums/attachments/4/7/1/5/0/6/426584.attach

It doesn't even need you to set the pin numbers for the axis, somehow it automatically knows which axis you're moving.  But it apparently only does XYZA.

Anyway to get this to work with code?

One other idea I had- is it possible to electrically connect the outputs from one axis to another in parallel?  So I flip a switch and the X&A are ganged (and both controlled by X) and Y&Z are ganged (and both controlled by Y)?  Or will this cause other problems?
Re: changing/adding function code vs writing macro script
« Reply #4 on: June 03, 2016, 01:31:39 PM »
Is there any way to get this to work?