Fast Hole EDM from Hacked Parts
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18063
- Thank you received: 4873
30 Dec 2024 18:17 - 30 Dec 2024 18:21 #317681
by PCW
Replied by PCW on topic Fast Hole EDM from Hacked Parts
EDM is very noisy and may have voltage spikes on the "ground"
that exceed the +-25V peak limitations of the 7I96S encoder
inputs.
Since it appears the you did not connect the grounds together there is
opportunity for these spikes to damage the 7I96 inputs. It may well be OK
but the way is was connected could not work.
I think you misunderstood the PWM output. It does no appear to be
a differential signal, so must connect to PWM --> IDX+ and GND --> GND
The frequency pin should show the current PWM frequency
The valid pin is true when the PWM frequency is above the
minimum frequency (basically a fault indication)
that exceed the +-25V peak limitations of the 7I96S encoder
inputs.
Since it appears the you did not connect the grounds together there is
opportunity for these spikes to damage the 7I96 inputs. It may well be OK
but the way is was connected could not work.
I think you misunderstood the PWM output. It does no appear to be
a differential signal, so must connect to PWM --> IDX+ and GND --> GND
The frequency pin should show the current PWM frequency
The valid pin is true when the PWM frequency is above the
minimum frequency (basically a fault indication)
Last edit: 30 Dec 2024 18:21 by PCW.
Please Log in or Create an account to join the conversation.
- IronManDylan
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 21
30 Dec 2024 19:37 #317682
by IronManDylan
Replied by IronManDylan on topic Fast Hole EDM from Hacked Parts
PCW,
Okay, lets hope nothing is fried. I will go try the outputs of PWM freq and valid now and report back.
I got a chance to spend some time with the oscilloscope today am getting interesting behavior out of the EDM supply. What I am seeing is a sine wave that has an amplitude of about .5v. This entire sine wave moves up and down depending on the intensity of the EDM cut. At no cut it is at 0 volts and at short it is at 3.3v. In other words it seems to be behaving like an analog signal. It seems to me that will not work with the periodm func in mesa. I have contacted the creator of the Powercore EDM to see if this is the correct behavior or if something was damaged.
My alternative plan is to use an arduino that I have here to take the analog input and send it to the computer via USB to monitor cut duty cycle. Hopefully the python script that I am writing can accommodate communication with the arduino.
Okay, lets hope nothing is fried. I will go try the outputs of PWM freq and valid now and report back.
I got a chance to spend some time with the oscilloscope today am getting interesting behavior out of the EDM supply. What I am seeing is a sine wave that has an amplitude of about .5v. This entire sine wave moves up and down depending on the intensity of the EDM cut. At no cut it is at 0 volts and at short it is at 3.3v. In other words it seems to be behaving like an analog signal. It seems to me that will not work with the periodm func in mesa. I have contacted the creator of the Powercore EDM to see if this is the correct behavior or if something was damaged.
My alternative plan is to use an arduino that I have here to take the analog input and send it to the computer via USB to monitor cut duty cycle. Hopefully the python script that I am writing can accommodate communication with the arduino.
Attachments:
Please Log in or Create an account to join the conversation.
- IronManDylan
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 21
30 Dec 2024 19:58 #317683
by IronManDylan
Replied by IronManDylan on topic Fast Hole EDM from Hacked Parts
The freq pin is 0 and the valid pin is false. So it appears that there is an issue with the PWM measuring.
Please Log in or Create an account to join the conversation.
- IronManDylan
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 21
08 Jan 2025 22:48 #318477
by IronManDylan
Replied by IronManDylan on topic Fast Hole EDM from Hacked Parts
Hi all,
I have given up on trying to have a PID control of the feedrate. Instead I am using an arduino to set an input pin (hm2_7i96s.0.inm.00.input-10) to TRUE when the signal from the EDM power supply shows a short. I am able to confirm the pin is going TRUE using hal meter. That is the extent of my success.
I am trying to use this pin to set the feedrate into reverse when a short is detected using motion.adaptive-feed. However, absolutely nothing I do will work. I was trying to do this inside of the .hal file and that did not work. I also tried to do it in a python script and the GUI refused to load when this was attempted.
I really have no idea how to program linuxCNC and I am growing a little desperate and could really use some help. Could someone please walk me through how to use the input pin hm2_7i96s.0.inm.00.input-10 to toggle feedrate from forward to reverse. I feel like this should be straightforward but I am seriously struggling.
Thank you,
-Dylan
I have given up on trying to have a PID control of the feedrate. Instead I am using an arduino to set an input pin (hm2_7i96s.0.inm.00.input-10) to TRUE when the signal from the EDM power supply shows a short. I am able to confirm the pin is going TRUE using hal meter. That is the extent of my success.
I am trying to use this pin to set the feedrate into reverse when a short is detected using motion.adaptive-feed. However, absolutely nothing I do will work. I was trying to do this inside of the .hal file and that did not work. I also tried to do it in a python script and the GUI refused to load when this was attempted.
I really have no idea how to program linuxCNC and I am growing a little desperate and could really use some help. Could someone please walk me through how to use the input pin hm2_7i96s.0.inm.00.input-10 to toggle feedrate from forward to reverse. I feel like this should be straightforward but I am seriously struggling.
Thank you,
-Dylan
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19617
- Thank you received: 6610
08 Jan 2025 23:30 #318479
by tommylight
Replied by tommylight on topic Fast Hole EDM from Hacked Parts
Shooting from the hip here, but, having that pin .... oh cr@p, i need sleep badly, having a hard time keeping things organized inside my noggin, so here goes an incoherent train of thoughts:
-probably would need scaling from the GUI to set the reverse speed, i do not think there is a need to back off at full feed rate
-should be active only when the input pin is active (mister obvious!
)
-can not recall what the pin is for reverse run....
-
What did you try? Maybe it jogs a few gray cells...
-probably would need scaling from the GUI to set the reverse speed, i do not think there is a need to back off at full feed rate
-should be active only when the input pin is active (mister obvious!
![:) :)](/media/kunena/emoticons/smile.png)
-can not recall what the pin is for reverse run....
-
What did you try? Maybe it jogs a few gray cells...
Please Log in or Create an account to join the conversation.
- IronManDylan
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 21
09 Jan 2025 00:19 #318482
by IronManDylan
Replied by IronManDylan on topic Fast Hole EDM from Hacked Parts
Hi Tommy,
Thank you for the response. I am not sure what is obvious right now. The pin I am trying to use is motion.adaptive-feed which is what Aceira suggested. From the motion page it seems that when this pin is set to 1 the feedrate is what was initially set. Then this value can be scaled. Its a multiple. So to reverse feedrate at the same velocity in reverse this pin should be set to -1.
This is how I understand it but could be wrong. But I just don't know how to do this.
Thank you for the response. I am not sure what is obvious right now. The pin I am trying to use is motion.adaptive-feed which is what Aceira suggested. From the motion page it seems that when this pin is set to 1 the feedrate is what was initially set. Then this value can be scaled. Its a multiple. So to reverse feedrate at the same velocity in reverse this pin should be set to -1.
This is how I understand it but could be wrong. But I just don't know how to do this.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19617
- Thank you received: 6610
09 Jan 2025 01:58 #318490
by tommylight
Replied by tommylight on topic Fast Hole EDM from Hacked Parts
Yeah, now it dawns on me that it already has scaling built in, from -1 to 1 i think, so that is sorted.
Pretty sure it can make do without it, but it is a nice to have.
Again, fuzzy, but roughly in hal
net shorted-move-back motion.adaptive-feed hm2_7i96s.0.inm.00.input-10
yeaaaah that wont work...
setp ....
dropping the towel...![:) :)](/media/kunena/emoticons/smile.png)
Aciera, HELP
![:) :)](/media/kunena/emoticons/smile.png)
Sorry, but i really need rest, it is 3AM here.
Pretty sure it can make do without it, but it is a nice to have.
Again, fuzzy, but roughly in hal
net shorted-move-back motion.adaptive-feed hm2_7i96s.0.inm.00.input-10
yeaaaah that wont work...
setp ....
dropping the towel...
![:) :)](/media/kunena/emoticons/smile.png)
Aciera, HELP
![:) :)](/media/kunena/emoticons/smile.png)
![:) :)](/media/kunena/emoticons/smile.png)
Sorry, but i really need rest, it is 3AM here.
Please Log in or Create an account to join the conversation.
- IronManDylan
- Offline
- Premium Member
-
Less
More
- Posts: 145
- Thank you received: 21
09 Jan 2025 06:09 - 09 Jan 2025 06:09 #318504
by IronManDylan
Replied by IronManDylan on topic Fast Hole EDM from Hacked Parts
Tommy,
Maybe you were good luck, but I got it working. It may have been a syntax error. Or maybe I didnt make the python file executable. But what matters is that the feedrate will reverse now. Thank god. I can even control it with the arduino. Tomorrow I will do a test cut.
Best,
-Dylan
Maybe you were good luck, but I got it working. It may have been a syntax error. Or maybe I didnt make the python file executable. But what matters is that the feedrate will reverse now. Thank god. I can even control it with the arduino. Tomorrow I will do a test cut.
Best,
-Dylan
Last edit: 09 Jan 2025 06:09 by IronManDylan.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 19617
- Thank you received: 6610
09 Jan 2025 15:27 #318548
by tommylight
Replied by tommylight on topic Fast Hole EDM from Hacked Parts
Glad you got it working, but i have to ask, why python?
Please Log in or Create an account to join the conversation.
Time to create page: 0.088 seconds