7i97T with Mesa CT- Desn't seem to be outputting an analogue signal.

More
2 years 2 weeks ago #311927 by flyingbrick
Dont know what went wrong with that last one. 

File Attachment:

File Name: all_2024-10-13.txt
File Size:72.82 KB

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

More
2 years 2 weeks ago - 2 years 2 weeks ago #311971 by PCW
None of the PWM enables are true (and all PWM values are 0)
So no analog output is possible:

30 bit IN FALSE hm2_7i97.0.pwmgen.00.enable <== joint-0-enable
30 float IN 0 hm2_7i97.0.pwmgen.00.value <== joint.0.output
30 bit IN FALSE hm2_7i97.0.pwmgen.01.enable <== joint-1-enable
30 float IN 0 hm2_7i97.0.pwmgen.01.value <== joint.1.output
30 bit IN FALSE hm2_7i97.0.pwmgen.02.enable <== joint-2-enable
30 float IN 0 hm2_7i97.0.pwmgen.02.value <== joint.2.output
30 bit IN FALSE hm2_7i97.0.pwmgen.03.enable
30 float IN 0 hm2_7i97.0.pwmgen.03.value
30 bit IN FALSE hm2_7i97.0.pwmgen.04.enable
30 float IN 0 hm2_7i97.0.pwmgen.04.value
30 bit IN FALSE hm2_7i97.0.pwmgen.05.enable
30 float IN 0 hm2_7i97.0.pwmgen.05.value
30 s32 OUT 0 hm2_7i97.0.read-request.time
30 s32 OUT 134983 hm2_7i97.0.read.time

Note that on initial setup of analog servos you will need to widen the following error limits
as you will likely trigger an immediate following error with such narrow limits

I would start with say 10 mm for FERROR and MIN_FERROR. You may also find that
you get an instant runaway because the feedback polarity is backwards.
YOu fix the by reversing the sign of the PWM scale
 
Last edit: 2 years 2 weeks ago by PCW.
The following user(s) said Thank You: flyingbrick

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

More
2 years 2 weeks ago #312004 by flyingbrick
Thanks tons PCW,
halcmd show all > all.txt is an excellent tool, and your explanations are brilliant.

Its taking me a while to figure out what each item does and what we are achieving but the cogs are starting to mesh in my brain :-D

I might have to finish work early today and do some more digging.

Thanks again,
The following user(s) said Thank You: tommylight

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

More
2 years 2 weeks ago - 2 years 2 weeks ago #312006 by flyingbrick
Hi PCW.

I believe I have found an error in the mesaCT's hal file... but I could be wrong (I have just been comparing axis and trying to figure out how these files work)

Can you confirm that the highlighted joint reference is wrong :-) 

This is X Axis, joint 00
 

And this is Z Axis, joint 02. Should the highlighted say 2 rather than 0?
 

Edit. If the highlighted is wrong, looks like Mesa CT was correct for joint 00 but it has this error for joints 01 and 02, for PWM scale and Encoder scale.
Last edit: 2 years 2 weeks ago by flyingbrick.

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

More
2 years 2 weeks ago #312007 by PCW
If encoder 2 is assigned to joint 2, then yes, that should be [JOINT_2]

I am being a bit vague because there is no fixed mapping between
hardware=encoder/PWM/stepgen etc and joints. 
The following user(s) said Thank You: flyingbrick

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

More
2 years 2 weeks ago #312010 by flyingbrick
That is great thanks mate. Makes sense to me now. Not sure how to tag people in these posts but I'll try inform JT of the issue.

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

Time to create page: 0.429 seconds
Powered by Kunena Forum