7i43-4 firmware

More
2 years 9 months ago #291024 by PCW
Replied by PCW on topic 7i43-4 firmware
I did mention it's a bit tricky....

This should get further:

 

Attachment not found

Please Log in to join the conversation.

More
2 years 9 months ago #291044 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
thanks so much for the file...it works now
I tried to connect to some pyvcp slides to do some tests and following what is written on the hostmot2 page I get some strange results. if I put:
offset= 1.5
scale= 90
I have to put width = 1530 to have a pulse of 1.5ms
with width=1570 the pulse is 1ms and with width=1480 the pulse is 2ms
so it is certainly inversely proportional but it is also a little off scale and not very linear
to have a 1:1 ratio (always inversely proportional) I have to put:
scale=1
offset=17
at that point with:
width=0.25 => 2.75ms
width=1 => 2ms
width=1.5 => 1.5ms
width=2 => 1ms
width=2.75 => 0.25ms

2.75 and 0.25 are the limits foreseen by the RC servo and are used only for a few special actuators

Could you confirm that I saw correctly? or did I make a mess as usual?

Please Log in to join the conversation.

More
2 years 9 months ago #291045 by PCW
Replied by PCW on topic 7i43-4 firmware
Not right at all...

What width  do you get with scale = 1, offset=0 and width=1?

Also does the rate = the specified rate?

Please Log in to join the conversation.

More
2 years 9 months ago #291048 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
the pin rate I looked at the rcpwmgen file and it gave me an error because it must be written without the instance this is the line:
rtapi_snprintf(name, sizeof(name), "%s.rcpwmgen.rate", hm2->llio->name);

if as you ask I put:
scales=1
offset=0
width=1
I get a period that oscillates between 19ms and 19.4ms (0.6-1ms low period)
keep in mind that I have an old analog oscilloscope... but in any case the order of magnitude is the same

Please Log in to join the conversation.

More
2 years 9 months ago #291050 by PCW
Replied by PCW on topic 7i43-4 firmware
Well I cannot duplicate that here, but I do not have a 7I43 to test with

This is what I get with a  RCPMMGen 5 ms pulse width set at 50 Hz:

 

Attachment not found



 

Attachment not found

Please Log in to join the conversation.

More
2 years 9 months ago #291051 by PCW
Replied by PCW on topic 7i43-4 firmware
~ 19ms sound like you have the output inverted.

Notice the expected active high 5 ms pulse on halscope

Please Log in to join the conversation.

More
2 years 9 months ago #291052 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
me too, halscope, gives the same result... it's easy that I'm a donkey and I made a big mistake... here where I come from it's dinner time... tomorrow morning I'll let you know what I did

Please Log in to join the conversation.

More
2 years 9 months ago #291102 by bobwolf
Replied by bobwolf on topic 7i43-4 firmware
as I imagined, and as you said in the last post, the physical output of the pin is inverted... I didn't realize that the previous user of that pin had inverted logic and I went ahead without thinking...
I feel really stupid... I just wasted your time... sorry

Please Log in to join the conversation.

More
2 years 9 months ago #291109 by PCW
Replied by PCW on topic 7i43-4 firmware
Easy to forget some obscure setting  in the hal file...
 

Please Log in to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum