OUTPUT_SCALE doubt

More
20 Nov 2012 21:48 #26827 by messier
OUTPUT_SCALE doubt was created by messier
Hello all,

I'm using the 5i25+7i77 plug and ready mesa cards to manage a 3 Axis (XZA) machine.
By default the value for OUTPUT_SCALE is 10 in a pncConfig application. But I'm little unsure if this value is correct or not and also on the meaning of it.

I'm using a 10V servo driver to command the motors. Following the documents and searching a little in the source code of the h2m driver I saw that the system is using the "hm2_5i25.0.7i77.0.1.analogoutN-minlim" and "hm2_5i25.0.7i77.0.1.analogoutN-maxlim" to clip the value of dc between this limits, and after is divided by "hm2_5i25.0.7i77.0.1.analogoutN-scalemax" (Set to OUTPUT_SCALE) this makes the dc value between -1 and +1. (would this be done by MAX_OUTPUT value in the config file?).

But reading the documentation on-line I saw that somebody have the OUTPUT_SCALE set to 1 (or -1). In the integrator manual defines the OUTPUT_SCALE like the units increment per volt in the servo-driver. And in the hostmot2 driver manpage seems unclear the use of hm2_5i25.0.7i77.0.1.analogoutN-scalemax.

Then my question which is the real use of the OUTPUT_SCALE and hm2_5i25.0.7i77.0.1.analogoutN-scalemax?.

Sorry by my bad English.

Regards,

Luis Bellot

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

More
20 Nov 2012 22:45 #26828 by BigJohnT
Replied by BigJohnT on topic OUTPUT_SCALE doubt
The integrator manual will be referring to the software component.

Just looking at my 7i77 config and I don't even set analogout scalemax. Looks like the default is 10 for max and -10 for min. I guess if you needed 0 - 10 you would need to change the min.

John
The following user(s) said Thank You: messier

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

More
21 Nov 2012 00:16 - 21 Nov 2012 00:28 #26830 by PCW
Replied by PCW on topic OUTPUT_SCALE doubt
There's a preliminary sserial manual in master:

git.linuxcnc.org/gitweb?p=linuxcnc.git;a...hb=refs/heads/master

unfortunately the 7I77 section is unfinished, however all sserial analog outputs have the same basic scaling/limiting parameters

Default scaling for analog outputs is volts (that's why scalemax is 10 for 10V full scale). If you set scalemax to 500 you would need a analog output value of 500 to get 10V full scale.

The minlimit and maxlimit parameters bound the output but do not offset or change the scaling.

For velocity mode PID use I like to set scalemax to the drives machine units (inches or mm) per second at 10V in. This normalizes the PID loop so FF1 can be set to 1.

Forgot to mention one important point. If your encoder scale and direction (in DRO) are correct but PID feedback is backwards (motor runs away), you can fix this by reversing the output polarity by changing the sign of scalemax (so -10 instead of 10 for example)
Last edit: 21 Nov 2012 00:28 by PCW. Reason: ommision
The following user(s) said Thank You: messier

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

More
22 Nov 2012 09:24 #26859 by messier
Replied by messier on topic OUTPUT_SCALE doubt
Thanks a lot for your answer.

Thinking about your answer and reading again the documentation I got an idea how it works.

I'm planning to make some documentation about it an I'll be happy to share it with all linuxcnc users.

Regards,

Luis Bellot

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

Time to create page: 0.095 seconds
Powered by Kunena Forum