Hello Guest it is April 18, 2024, 03:33:08 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 - MacCrazyman

Pages: 1
1
Mach4 General Discussion / Re: using loops inside macros
« on: February 12, 2020, 06:57:17 PM »
I don't know how to use subprograms to replace the Lua macros I did to calculate the path for the machine and the control of the outputs.

2
Mach4 General Discussion / Re: using loops inside macros
« on: February 12, 2020, 05:51:02 PM »
The way I've done this in the past is create a gReg.

Thanks for the reply, it "worked", but some times the controller lost connection when breaking the loops what could be anoying in large pieces, is there any way to implement coroutines inside macro files in order to "pause" the loops instead of breaking it and maybe I would be able to resume the loops instead of repeating them from the begining?

regards.

3
Mach4 General Discussion / using loops inside macros
« on: February 10, 2020, 02:39:53 PM »
Good day people,

I'm doing some custom macros for my cnc machine, everything is working fine but I'm having a problem with "FOR" loops when hitting the "STOP" button.
The thing is I have an M73 file wich performs a pattern for punching, in sumary it looks something like this:

for Y=1,Y lines,1
    moves to the next Y coords.
        for X=1, X columns,1
           moves to the next X coords
           external function for punching
        end
end

the problem here is when I need to press the stop button for any reason, the movement stops but the machine continues punching until the end of FOR loops.
I tried using a BREAK statement when the signal Gcode_Running turns off but nothing happens.
Any idea of how to properly break the loops inside a macro?

Regards.

4
General Mach Discussion / Re: Punch press cylinder as Z axis
« on: January 25, 2020, 10:17:03 PM »
well, I have no money and time to invest in convertion boards, I could managed to convert the Z axis speed into a register value but at this point I noticed the CSMIO analog output registers are not editable, so now I'm even more lost on this.

5
General Mach Discussion / Re: Punch press cylinder as Z axis
« on: January 23, 2020, 11:41:23 AM »
thanks for your reply.

I'm using an step/dir control card, and I couldn't find in the market an standard card to convert the step/dir signal to an analog signal.
At this point I can make the Ram go up or down with the analog output of my controller card and finding a solution with software would be very helpful.

6
General Mach Discussion / Punch press cylinder as Z axis
« on: January 23, 2020, 10:29:50 AM »
Good day for everyone,

I'm working in a retrofit project for a CNC punch press machine, I replaced the old electronic Palvision control system by a CSMIO/IP-S board, so my next step is to control the proportional valve for the 20 ton hydraulic cylinder. The speed of the proportional cylinder is controlled by a +/- 10V analog signal and it provides a 0-10V feedback signal to know the position.
So I was thinking in using a macro that would be called to perform every punch, but thinking further in the Gcode programming, it would be very useful to use the Canned cycles G81 to make programming easier as it only requires X and Y coordinates per line for machine to moves and "drill" (in case of a mill), and here comes the question, is there any way a script can recognize if G81 is activated and perform a punch in every line? or should I make an script to "link" the internal parameters of speed and position of Z axis to control the analog signal of the Ram?

I would appreciate if someone have a clue of how to perform this action.

Best regards.

7
Mach4 General Discussion / Re: Using macros in mach4
« on: July 26, 2019, 06:28:40 PM »
Hi,

I'm not as far of getting it as I thought, I was researching for some time but at this point a guide or example of how to make a wizard from scratch would be very useful.
I'll be using mill wizard as reference to work

8
Mach4 General Discussion / Re: Using macros in mach4
« on: July 26, 2019, 03:51:46 PM »
Hello Craig,

thanks for your kind reply,

That is something I was afraid of and now I want to know if my best option for this project is to use mach4 hobby or industrial license, wich one woul offer me the best resources for this application?
as my customer does not have Cam software to make postprocessing of their files for the punching machine, they want to have the posibility to design and edit the models directly with mach4, I was thinking in something like a customized screen using buttons to edit a Gcode file, I believe this is a good option but don't know if it requires so much skill to do.

9
Mach4 General Discussion / Using macros in mach4
« on: July 26, 2019, 11:27:23 AM »
Hello everyone,

I have used mach4 and mach3 to make some CNC routers for wood, now I'm working in a retrofit project for a NISSHIMBO puch press machine, I'm going to replace all the servomotors, computer and the old control card, the thing is this machine have some customized Gcodes used to make some routines, and my customer asked me to have the same Gcode functions in the new system. As mach4 does not have such customized Gcodes, I want to know if there is any way to program or modify these Gcodes, or how can I use macros to simulate these routines.

Best regards.

Pages: 1