Hello Guest it is March 29, 2024, 04:32:37 AM

Author Topic: Impact engraving plugin  (Read 358332 times)

0 Members and 1 Guest are viewing this topic.

Re: Impact engraving plugin
« Reply #360 on: June 08, 2017, 02:32:59 PM »
Just find fotoengraving.exe in the uncompressed files and click on it.
See that you have two options to use the trigger, one using 'z' as signal and the other using pwm (0-1000) -this is my prefered because you can obtain grayscale altering the speed of x axis and it will change the frequency ( this depends on wich control board you are using)
« Last Edit: June 08, 2017, 02:35:08 PM by Jan Mozol »
Re: Impact engraving plugin
« Reply #361 on: June 08, 2017, 02:37:58 PM »
what is this secrecy?why can't somebody put here the picture of magnetic impact head? is a secret? we want to do this impact head but we need some help.for me is a hobby the CNC is ready but I need some draw with this head.
Help,help.!!!
Thank you!
Well this is where the fun is! Just a hint...I don't use my solenoids as the drawing above , I use them on a vertical way between neodimiuns!
Re: Impact engraving plugin
« Reply #362 on: June 08, 2017, 02:40:03 PM »
After having seen the video of Jan Mozol and all that he has written and also this other video https://www.youtube.com/watch?v=bEB-hN3Fnek  I believe that a departure point for the mechanics with the magnets might be that represented in 2 enclosed drawings.
Almost there Captain ! the solenoids should be mobile and the neodimium fixed!

Offline Dan13

*
  •  1,208 1,208
    • View Profile
    • DY Engineering
Re: Impact engraving plugin
« Reply #363 on: June 09, 2017, 01:15:59 AM »
Hi Jan,

Thanks for the details and sharing the program. So you have two coils connected each to one phase of the driver, and one coil pulls while the other pushes the plunger. So in this connection each pulse signal into the driver corresponds to one stroke of the plunger? First pulse - pull, second pulse - push, third pulse - pull, right?

But if you stop the pulses you don't know which state did it end in?

Also I tried your program, but didn't understand the Gcode it outputs. Only has "S0" at the beginning and "S0" at the end. In between only XY moves. So what driver the coils?

Thanks,
Dan
Re: Impact engraving plugin
« Reply #364 on: June 09, 2017, 09:30:27 AM »
Hi Jan,

Thanks for the details and sharing the program. So you have two coils connected each to one phase of the driver, and one coil pulls while the other pushes the plunger. So in this connection each pulse signal into the driver corresponds to one stroke of the plunger? First pulse - pull, second pulse - push, third pulse - pull, right?

But if you stop the pulses you don't know which state did it end in?

Also I tried your program, but didn't understand the Gcode it outputs. Only has "S0" at the beginning and "S0" at the end. In between only XY moves. So what driver the coils?

Thanks,
Dan

S0 means no impact and s1000 means full impact , between these two the soft gives values that goes from light gray to dark gray and black (s1000).

So if you want the soft to stay with the diamond needle up in the end of the job, just add a s0 in the end of gcode in the window .

"Thanks for the details and sharing the program. So you have two coils connected each to one phase of the driver, and one coil pulls while the other pushes the plunger. So in this connection each pulse signal into the driver corresponds to one stroke of the plunger? First pulse - pull, second pulse - push, third pulse - pull, right?"
No, almost that, the two pulses are alligned with the magnetism in the master  neodymiun , so that it goes just down as much as the pwm adjusted , the coil and oposite neodymium in the point of the lever do the up effect , after each impact , no matter if it is S200 , S500 or S1000 , after each of them you will have a S0 so the driver is cut off ,

What drives the coil is the driver, but what comands the driver is a pwm signal , in themajority of control boards you will only be able to use it as Dithering , not grayscaling, because the majority of breakout boards will only reconize the pulses as 0vcc - (s0) or -5 vcc (s1000) , my board reconizes a scale from 0vcc to -5vcc as frequency 0v-no frequency, -1v more frequency until -5vcc ( 300 hz) .

But even if you use a commom board yo will have excellent results ! just play with feedrate.

Save your pics on dithering and you will have just up and down without grayscalling.

I'm preparing a soft in english , so that it will be easier to understand .
Re: Impact engraving plugin
« Reply #365 on: June 09, 2017, 09:39:05 AM »
Here:
This will put a comand in the end of your code

Offline Dan13

*
  •  1,208 1,208
    • View Profile
    • DY Engineering
Re: Impact engraving plugin
« Reply #366 on: June 09, 2017, 09:50:24 AM »
Hi Jan,

Don't quite understand. Let me ask you another question: Do you have your plunger moving at a varying frequency which is dictated by the "Sxx" command? If so what is the board you're using to convert the PWM into frequency? What is the frequency range of your solenoid?

What I did is, I used an Arduino and wrote a program which reads the Z pulses and based on the Z position sets the frequency of the solenoid 0-50Hz. The I use the PicEngrave software to output rotary curving Gcode (as if you wanted to curve 3D in wood) and run this code.

I still don't understand how if commanded S0, it keeps the plunger in the upper position? It driver must complete a full cycle in order to return to the upper positoin.

By the way, I tried to output Gcode, but as I said it only had 2 "S" commands - one at the beginning and one at the end.

Dan
Re: Impact engraving plugin
« Reply #367 on: June 09, 2017, 10:34:18 AM »
Just an example of my gcode generated by the same program:
(Grado por Fotoengraving Br v0.1)
(@jun/09/2017 11:12:40)
M5

(Header)
G0 X0 Y0
(Header end)
G90

G21

F5000

G0X0Y0
G1

M3

X0Y0S0
X0.18S1000
X0Y0.18S0
Y0.36
X0.18Y0.18
X0.36Y0
X0.54S1000
X0.36Y0.18S0
X0.18Y0.36S1000
X0Y0.54S0
Y0.72
X0.18Y0.54
X0.36Y0.36
X0.54Y0.18S1000
X0.72Y0S0
X0.9S1000
X0.72Y0.18S0
X0.54Y0.36S1000
X0.36Y0.54
X0.18Y0.72
X0Y0.9S0
Y1.08
X0.18Y0.9
X0.36Y0.72
X0.54Y0.54
If you have an arduino board, then it is something completely different , you should use the LM298 as driver , a dc-dc down to control impact , and so on ,

Offline Dan13

*
  •  1,208 1,208
    • View Profile
    • DY Engineering
Re: Impact engraving plugin
« Reply #368 on: June 09, 2017, 11:29:59 AM »
From your code - you only have two states for the PWM - S0 and S1000? It is not continuously adjustable within a range?

The LM298 driver didn't work for me - only was able to get about 15-20Hz max with it. With a higher end driver set to full step I am able to get 80Hz. Don't know what is the reason for that.

Dan
Re: Impact engraving plugin
« Reply #369 on: June 09, 2017, 01:43:50 PM »
in this case the image was dithered in black and white , that is the reason, if you choose grayscale on the software you wil have diferent pwms ,
Usualyy the lm298 is used to move two different dc motors by pwm , instead of motors i used coils (solenoids) the way the board oscilattes these pwms by the amount of "S" is the trick.

I can get 300 hz easyly , more than that , the mechanical properties will not work , you will have scratches instead of dots.