by ArtF » Mon Jan 07, 2019 12:29 pm
Richard:
I have to apologize on this one myself, I neglected to notice the original script
was calling SpindleControl.SetRealTimePWM(..). I should have seen immediately
that the script that needed modifying was in the SpindleLibrary so the Pokeys1.
had to be the calling system locally.
You did it properly in the end, and I suspect the 57U is as I thought incapable
of the PWM control. I used internal library names of SetPWMRealTime and SetPWM
in the code base and I got a bit confused between script library and internals as
I looked in the code. I see the problem now, and you solved it before I got there.
The guys at Pokeys are pretty nice guys though, if you contact them and tell them
the doc's led you to believe the PWM you needed was in the 57U but in fact only the
57CNC would work, they would likely come up with a replacement or swap
for you, though I know shipping and such is a hassle as well. Tell them it was
for Auggie so the 57cnc is really needed.
I use an arduino after my pwm output on the galvo laser now as you may have seen
in a recent post on laser issues. The arduino takes in the pwm, and converts it to
a scale factored output for better depth resolution. (Code for that is in the thread.).
Now if I could figure a way to send out the power for the next ms to another device,
which is basically what gets sent by Auggie during run, Id be happy to add it so any
Pokeys would have the capability with an added arduino or something...but I suspect the stream
Im sending is too time sensitive for me to get that additional IO time.
Ask pokeys support if that 57u could be traded for a 57cnc, they may be willing
to help before we try to reinvent the wheel. I could I suppose add a 8 bit pin
coordinator to set 8 consecutive pins to a 0-100 power level in binary during run,
there wouldn't be any time loss that way in communications..(Though you'd lose
8 pins of IO.... The interface would be simple , Im thinking Id have to simply
dedicate 8 pins of IO for binary power output.. Youd have to add an arduino to read
the 8 pins and do a pwm based on them...Ill give it some thought, let me know
what the support guys say, and Ill look in the engine to see if I can dedicate
pins 1-8 for auxillary power output..
Art
Richard:
I have to apologize on this one myself, I neglected to notice the original script
was calling SpindleControl.SetRealTimePWM(..). I should have seen immediately
that the script that needed modifying was in the SpindleLibrary so the Pokeys1.
had to be the calling system locally.
You did it properly in the end, and I suspect the 57U is as I thought incapable
of the PWM control. I used internal library names of SetPWMRealTime and SetPWM
in the code base and I got a bit confused between script library and internals as
I looked in the code. I see the problem now, and you solved it before I got there.
The guys at Pokeys are pretty nice guys though, if you contact them and tell them
the doc's led you to believe the PWM you needed was in the 57U but in fact only the
57CNC would work, they would likely come up with a replacement or swap
for you, though I know shipping and such is a hassle as well. Tell them it was
for Auggie so the 57cnc is really needed.
I use an arduino after my pwm output on the galvo laser now as you may have seen
in a recent post on laser issues. The arduino takes in the pwm, and converts it to
a scale factored output for better depth resolution. (Code for that is in the thread.).
Now if I could figure a way to send out the power for the next ms to another device,
which is basically what gets sent by Auggie during run, Id be happy to add it so any
Pokeys would have the capability with an added arduino or something...but I suspect the stream
Im sending is too time sensitive for me to get that additional IO time.
Ask pokeys support if that 57u could be traded for a 57cnc, they may be willing
to help before we try to reinvent the wheel. I could I suppose add a 8 bit pin
coordinator to set 8 consecutive pins to a 0-100 power level in binary during run,
there wouldn't be any time loss that way in communications..(Though you'd lose
8 pins of IO.... The interface would be simple , Im thinking Id have to simply
dedicate 8 pins of IO for binary power output.. Youd have to add an arduino to read
the 8 pins and do a pwm based on them...Ill give it some thought, let me know
what the support guys say, and Ill look in the engine to see if I can dedicate
pins 1-8 for auxillary power output..
Art