Understaning PWM

More
5 years 3 months ago #214424 by hairyMug
Replied by hairyMug on topic Understaning PWM
ok; It turns out the enable signal needs to be inverted.
So, I went to pncconfig tool and said to invert the output...
It generated:

setp hm2_7i96.0.ssr.00.out-00.invert_output true

Which promptly created a startup error... Silly me, I thought something this easy would work...

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

More
5 years 3 months ago - 5 years 3 months ago #214425 by PCW
Replied by PCW on topic Understaning PWM
Umm, no

The SPINX1 enable signal is active low so you wire
OUT0- to GND and OUT0+ to the SPINX1's /ENABLE signal,
so when SSR 0 is on (true in hal) , the SPINX1 /ENABLE
signal is low and the SPINX1 is enabled.
Last edit: 5 years 3 months ago by PCW.

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

More
5 years 3 months ago - 5 years 3 months ago #214438 by hairyMug
Replied by hairyMug on topic Understaning PWM
this does not sound right...
First of all, I see no capability in the pncconfig tool for specifying a + & - for an output...
Is this available as a HAL command?

Also, why would the + be connected to the SPINX enable? if it should be LOW to enable?
...I'm just not getting it...

the light just came on...image missing /media/kunena/emoticons/smile.png sso connects the enable to ground...


 
Last edit: 5 years 3 months ago by hairyMug.

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

More
5 years 3 months ago #214442 by PCW
Replied by PCW on topic Understaning PWM
Yes, its just a switch

( A polarized switch so the most positive signal must connect to OUTN+ )

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

More
5 years 3 months ago #214457 by hairyMug
Replied by hairyMug on topic Understaning PWM
ok... still have the issue of no speed control; it's off or full speed, 24000 rpm...

and I did a dump of the pin-outs and the two pins are :

pin 25:
Primary Tag: 0x03 (IOPort)
Secondary Pin: 0x81 (PWM, Output)
pin 26:
Primary Tag: 0x03 (IOPort)
Secondary Pin: 0x82 (Dir, Output)

I would not expect them to be one after another? since they are supposed to be step+ and dir+

Something does not add up

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

More
5 years 3 months ago - 5 years 3 months ago #214472 by PCW
Replied by PCW on topic Understaning PWM
They are sequential

Is the PWM scale set to 24000?


PWM is active high. If you have the SPINX1 PWM signal connected to TB2 pin3 (STEP4+) , PWM should be 0 when the commanded spindle speed is 0. You should verify this with a voltmeter.  (the voltmeter will read the average so should read
0V on STEP4+  at 0 PWM, about 2.5V at 50% PWM and about 5V at100% PWM.

The SPV voltage relative to SP- should track these voltages (scaled up by the 10V or so between SP+ and SP-)
 
Last edit: 5 years 3 months ago by PCW.

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

Time to create page: 0.142 seconds
Powered by Kunena Forum