Hello Guest it is April 16, 2024, 05:14:39 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 - pjcevallos@gmail.com

Pages: « 1 2 3 »
11
Hi

Is there any way to enable an output when a specific axis is running?

For example for the X axis

G21 G90 X10 Y10 (output is enable)
G21 G90 Y15 (output is disable)

kind regards

Pablo


12
Hi

We need a piece of advice to see if an automated defect detection and correction program can run in Mach4. For example, our current gcode program has different sections such as:
Section 1 – Gcode blocks (lines 1-10)
Section 2 – Gcode blocks (lines 11-20)
Section 3 - Gcode blocks (lines 21-30)
Etc.

Defect Scanning
To implement the defect detection, we can easily insert a block that activates and output (M64 p#) and waits a specific time to do a scanning (G4 P#). It is just moving the piece below the camera and scanning. Easy. The new program should be written as:
Section 1 – Gcode blocks (lines 1-11)
Subsection 1 – gcode block for defect detection
Section 2 – Gcode blocks (lines 12-21)
Subsection 1 – gcode block for defect detection
Section 3 - Gcode blocks (lines 22-32)
   Subsection 1 – gcode block for defect detection
Etc.

Defect detection and correction
Then, the post-processing of the image will be done in another software (python, Matlab, etc). It will detect if there is an error, and here is our problem, How do we inform Mach4 there is an error and how to correct it.
Problem 1. How do we inform mach4 there is an error? 
I think it will be easy to write on the signal script to actively search for a digital input to STOP the program. This is something similar than having a limit switch. We are using soft limits because we have absolute encoders, and the systems works perfectly with that. Can we use a limit axis input if the soft limits are active? I think this would be the fastest solution. However, if a limit switch is activated, it disables mach4 rather than stopping the program, and restart the program from a different gcode line, which is the stated in the problem 2.

Problem 2. How to correct the defect.

Our strategy to correct the defect is “simple” as we only need to Re-Start the gcode program in a previous section decided by the external software. We can do it manually once we see the software indicates an error, but the idea is to automate it and eliminate human interaction. In the following program, the first phase corresponds to “defect detection and stopping the program”, and the second phase correspond to start the program in a previous fcode line commanded by the software as shown below:
(First phase: defect detection)
Section 1 – Gcode blocks (lines 1-11)
Subsection 1 – gcode block for defect detection
Section 2 – Gcode blocks (lines 12-21)
Subsection 1 – gcode block for defect detection
Section 3 - Gcode blocks (lines 22-32)
   Subsection 1 – gcode block for defect detection
(-comment: defect detected, digital input is activaded, program is stopped)
Section 4 - Gcode blocks (lines 33-42)
   Subsection 1 – gcode block for defect detection
Etc

(second phase: defect detection)
Section 1 – Gcode blocks (lines 1-11)
Subsection 1 – gcode block for defect detection
Section 2 – Gcode blocks (lines 12-21) – New start of the program
Subsection 1 – gcode block for defect detection
Section 3 - Gcode blocks (lines 22-32)
   Subsection 1 – gcode block for defect detection
Section 4 - Gcode blocks (lines 33-42)
   Subsection 1 – gcode block for defect detection
Etc

The question here is how we can tell mach4 to start the program at a specific line? Which communication to use? We are using an EtherCAT controller with several several GPIO, also we can have analog inputs and outputs. Maybe, there is another type of communication to inform mach4 which line to start in the program. I believe it shouldn’t be something that complicated, but not sure if mach4 can do it.

The second option is if the loading and running of a gcode program can be automated. Python, Matlab, etc then will chop the original program and upload the new one. is it possible?

What thoughts do you have? is it possible?

Kind regards


Pablo

13
Hi Rab

I am looking for high speed engravers for micro machining.

Do you have some brands that I could start asking?

thanks a lot

Pablo

14
Bargain Basement / Re: High speed spindle with controller unit
« on: April 11, 2022, 08:50:20 AM »
Hi

Just wondering if there are any other brands for high speed spindles you recommend?
currently Nakanishi has long lead times

Best regards

Pablo

15
Hi Pedro

Can I ask what micromachining spindle are you using?
I was going to buy a Nakanishi, but the lead time is 4 months and I need something faster.

Best Regards

Pablo

16
Mach4 General Discussion / Re: Out-Of-Band Axes in Hobby vs Indusrial
« on: March 27, 2022, 01:50:36 PM »
Hi

I wanted to have:

1) lots of inputs and outputs (Maximum around 64000), and not being limited by the ones provided by the hardware motion controllers with BoB included. Kingstar is a more economic option to the EtherCAT motion controller from Vital systems. With Kingstar you can have thousands of I/Os, and the number of motors is limited by Mach4 capabilities as long as you buy the modules and drivers. In Vital systems you have to pay for 4, 5, 6 or 8 axes and are very limited to I/Os.

2) more Freedom to switch to other platforms in case it is needed. Most step/dir motion controllers are attached to a specific software/hardware. In this case, I can use the same hardware with different EtherCAT master controllers (e.g. Beckhoff, Wago, etc). I did not explore more options because right now I am happy with Mach4 EtherCAT, but I understand it is doable.

3) Less wiring: Daisy chain made it so easy to wire or add new devices.

For the OB axis, I want to do a rotary auto tool changer like the one in the video below. But no Idea how to home or jog the motor to the right position with macros.

https://www.youtube.com/watch?v=8HkXbGkPPyw

17
Mach4 General Discussion / Re: Out-Of-Band Axes in Hobby vs Indusrial
« on: March 27, 2022, 08:20:49 AM »
which hardware did you you use for the ethercat?
and why you choose  ethercat?

Motion controller: kingstar. It requires a computer with intel cores 8th to 10th gen and intel NIC. Then, the NIC only works for EtherCat communication and you connect as many ethercat slaves as you want (of course knowing Mach4 capabilities in this case)

Ethercat stepper drivers (unfortunately these ones are expensive) and matched motors

And for I/O you could use any ethercat PLC o etherCAT coupler with the modules you need. Most common are beckhoff and wago

Hope these gives enough information, but if not feel free to ask.

I am still waiting to know how to control OB axes :)

Pablo

18
Mach4 General Discussion / Re: Out-Of-Band Axes in Hobby vs Indusrial
« on: March 26, 2022, 02:02:39 AM »
Hi everybody

I am using Mach4 EtherCAT as my motion controller and I would like to try out-of-band axes for an auto tool changer, or to move a something up/down.

I have read that I need to use macros with API, but I am completely new to those.

Any tip of where should I start and also more advanced sources to program macros for OB axes in Mach4?

Best regards

Pablo

19
Finished Plugins for Download / Re: 3d Video Probe
« on: March 24, 2022, 05:00:20 PM »
Hallo,
Is there any more said over this subject hr in mach4 forum?

Not the best guide, but the closest I have found
https://www.youtube.com/watch?v=ZgWkOa7EgDA

20
Mach4 General Discussion / Re: How to set up analog outputs in Mach4?
« on: February 09, 2022, 03:38:15 AM »
I didn't ask because i think you mistake with wiring,i asked because i have exactly same question months ago ,and after all i got answer that even its seem its simple option its not like this,its depends on the hardware plugin ,for example in pokeis you can only control analog output only by spindle comand ....

A ticket has been raised to see what can be done. I mean, if there is the option, we should be able to use it!

Pages: « 1 2 3 »