EVENT / TIMER and "DDE"

More
04 Jul 2011 16:24 #11146 by Fremder
Replied by Fremder on topic Re:EVENT / TIMER and
:-(

ok ... M3 S1500 gives not : hm2_5i20.0.pwmgen.02.enable = TRUE out:(

*shit* i must drive home - and come back :)

Please Log in or Create an account to join the conversation.

More
04 Jul 2011 16:49 #11147 by andypugh
Replied by andypugh on topic Re:EVENT / TIMER and
Fremder wrote:

M3 S1500 gives not : hm2_5i20.0.pwmgen.02.enable = TRUE out


Do you have a line in the HAL saying something like:
net pwmenable motion.spindle-on => hm2_5i20.0.pwmgen.02.enable?

Please Log in or Create an account to join the conversation.

More
04 Jul 2011 17:52 #11149 by Fremder
Replied by Fremder on topic Re:EVENT / TIMER and
i think NO

but tomorrow YES

thanks - for X help

Please Log in or Create an account to join the conversation.

More
05 Jul 2011 14:01 #11168 by Fremder
Replied by Fremder on topic Re:EVENT / TIMER and
verry good ... ON and OFF its ok ...


my learning-problems to the hal-logik is verry strong :(

scale makes SCAL from Scale.0.gain to Scale.1.gain + OFFSET or so ...

Scale.0.offset * Scale.0.offset its now my MIN-VOLT !?

and so on ...

i found a parameter.option like this: .high_limit = N # n = for me 5 V

what i must do for this logik: importent for SAVE i will not fire inside my electronic better outside from the laser :-)

A) MAX output VOLT = 5
B) MINVOLT set flexible
> GCODE gives M3 and S1000 (S1000 = POWER-IN 1000) i have learning *g*

when i cut with 50% Power and make a MIN for 40% and a SAVE for 5 V or so ...

thanks mult.3 3

Please Log in or Create an account to join the conversation.

More
05 Jul 2011 16:32 #11169 by andypugh
Replied by andypugh on topic Re:EVENT / TIMER and
Fremder wrote:

Scale.0.offset * Scale.0.offset its now my MIN-VOLT !?

Something like that. But not exactly that.
You probably want to set one or both offsets to zero. You quite possibly want to set the power gain to 1. The scale functions are just there to let you add a bit of non-linearity.

i found a parameter.option like this: .high_limit = N # n = for me 5 V

You need to stop thinkin in terms of volts. HAL doesn't understand volts. It's all just numbers.
You have never actually told us what hardware you are using. what is the PWM to voltage conversion hardware?

Please Log in or Create an account to join the conversation.

More
05 Jul 2011 16:47 #11170 by Fremder
Replied by Fremder on topic Re:EVENT / TIMER and
sorry ..
PCI: 5i20 > 7i29 AND > 7i33TA (for Analog OUTPUT)
5i20 > 7i37 com pins etc.

i hope this its ok so ...

Please Log in or Create an account to join the conversation.

More
05 Jul 2011 18:07 #11171 by PCW
Replied by PCW on topic Re:EVENT / TIMER and
So one way to do this is to set the PWM scale to 200. (or maybe -200 depending on desired output polarity) when this is done you can use values from 0 to 100 (for 0 to 100%) to give analog 0 to 5V from the 7I33.

There is no offset setting since this is the hardware PWM generator. (man HostMot2)

BTW for the 7I33, PWM mode should be 3 (PDM) and the PDM frequency set to 6MHz (this is in the 7I33 manual) Make sure that you set the 4 PWM channels connected to the 7I33 to mode 3 at 6MHz but the 7I29 must be run in PWM mode at 20KHz or lower.

Please Log in or Create an account to join the conversation.

More
05 Jul 2011 18:19 - 05 Jul 2011 18:20 #11172 by andypugh
Replied by andypugh on topic Re:EVENT / TIMER and
Fremder wrote:

sorry ..
PCI: 5i20 > 7i29 AND > 7i33TA (for Analog OUTPUT)


In that case, set your pwmgen scale to 3000. You can then put a limit function in the HAL file before the pwmgen to limit it to 1500W.
www.linuxcnc.org/docview/html/man/man9/limit1.9.html
This needs a loadrt, addf and net functions like any other HAL component.
Last edit: 05 Jul 2011 18:20 by andypugh. Reason: Just realsied there is no max spindle speed setting.

Please Log in or Create an account to join the conversation.

More
06 Jul 2011 16:40 #11189 by Fremder
Replied by Fremder on topic Re:EVENT / TIMER and
short-message :-)

verry much learning - now i anderstand the "HAL-Functions" :-)
limit1.0.max / min etc. its cool ...

big thanks again

one after one *g* the maschine-servo-achse X makes vibrations at 20% speed
only with the new configuration
> BEFORE: NOW:
PWM 2 3

... yes the servo PID etc. its a big BOOK to answer *gggg*
i make some experiments ... but to now not perfekt feel >maschine to/and me<
the last ist not so importent i have set the accelation 20% down and the vibration goes to 0

now i drive home with other maschine :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.220 seconds
Powered by Kunena Forum