Hello Guest it is April 19, 2024, 01:09:31 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.


Topics - Marce

Pages: 1
1

I need to send the speed signal from the spindle to an arduino uno to control the intensity of a laser or spindle if required through the Modbus protocol. As arduino pwm signal this should have a resolution of 0-255. I also require enabling an output pin on arduino to enable a relay with the M03 command and disable with M05. Unfortunately I am not an expert programmer of Brain. So I ask for your help. In the modbus tester stage. Everything works very well.
But in Brain something does not work. The two digital outputs that I have. when they are activated. They deliver a signal that is not constant. It varies with a frequency of 5.19Hz and a period of 190 milliseconds. which is bad because it does not work for me. And as much as I have tried I can not find the solution. In the attached brain photo. You can see that the DRO  169-CMD Spindle RPM acquires the value of spindle speed.  But it never leads out. In this out is the modbus register that I need to load to control the PWM signal. And this never happens.

On the other hand. I have three digital inputs that generally work fine. On occasions these signals are not activated when they should be. This happens when I start mach3. This I solve by performing a test on the modbus communication. After this the signals are communicated with mach3. But I wonder if this could be done automatically?

I think my syntax is very poor and that is the problem.  Is there a function that will help me solve the problem?

I would appreciate any help. Honestly I am very interested in learning this I / O expansion technique which I consider too interesting.

2
Brains Development / Spindle PWM output - Brain Editor
« on: July 14, 2020, 09:10:51 PM »
I need to send the speed signal from the spindle to an arduino uno to control the intensity of a laser or spindle if required. Through the Modbus protocol. As arduino pwm signal this should have a resolution of 0-255. I also require enabling an output pin on arduino to enable a relay with the M03 command and disable with M05. Unfortunately I am not an expert programmer of Brain. Which has led me to many failed attempts. So I ask for your help. In the modbus tester stage. Everything works very well for me. But in Brain something does not work well. In the attached brain photo. You can see that the DRO  169-CMD Spindle RPM acquires the value of spindle speed.  But it never leads out. In this out is the modbus register that I need to load to control the PWM signal. It is also required that when you turn off the spindle the speed signal turns off which is not currently the case.

I hope someone can help me please.

3
Dear Friends:

I am inexperienced in the world of electronics, so I ask for your help.I need to make a protection circuit for the digital inputs of my mach3 Circuit Board. This is for the purpose of protecting digital inputs. because they have been burned previously. Due to increased accidental voltages of unknown origin. I have developed an experimental circuit with opto couplers PC817 according to the attached image. The problem that appears to me is how to connect the output of the opto coupler to the digital input of my circuit board mach3. The optocoupler output generates 3 output pins. One is the operating voltage which is 9v supplied by the GND pin of the mach3 circuit board. The second Pin is the logical output that corresponds to the circuit board input of mach3. The third pin is the GND of the opto coupler output circuit. This is the pin that is difficult to know where to connect. I hope you can help me.

Best regards

4
G-Code, CAD, and CAM discussions / Prepatory G code
« on: October 30, 2019, 12:39:15 PM »
Dear Friends:

I am new to the use of Mach3. I am trying to create my first G code using the Inkscape Gcodetools. I have the following problem. When loading my program in mach3. In the toolpath window there are huge spirals that do not correspond to my program. Apparently some preparatory codes are missing. On all the codes associated relations with circular compensation etc. In some occasions I introduce these codes and G21 G64 G41 G40 G71 is solved. But this is eventual. It is not always.

I hope you can help me.

Best regards

Pages: 1