- Posts: 711
- Thank you received: 0
Prototrak Plus Retrofit with Mesa 7i77 & 5i25 cards
Current:
setp hm2_5i25.0.7i77.0.1.analogout2-scalemax [AXIS_2]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout2-minlim [AXIS_2]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout2-maxlim [AXIS_2]OUTPUT_MAX_LIMIT
GO TO THIS
setp hm2_5i25.0.7i77.0.2.analogout2-scalemax [AXIS_2]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.2.analogout2-minlim [AXIS_2]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.2.analogout2-maxlim [AXIS_2]OUTPUT_MAX_LIMIT
AND THIS
setp hm2_5i25.0.7i77.0.3.analogout3-scalemax [AXIS_3]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.3.analogout3minlim [AXIS_3]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.3.analogout3-maxlim [AXIS_3]OUTPUT_MAX_LIMIT
PCW am I on the correct track?
Edit: I am making big guess that "setp hm2_5i25.0.7i77.0" is the mapped encoder address? so edit in each of the areas of interest.
Please Log in to join the conversation.
So, the hal pins will only have axis.0.... axis.1.... and axis.2....
You can use any encoder and any analogout for any axis, but I really don't understand why you have [AXIS_2], [AXIS_3] and [AXIS_4] in the INI rather than the normal 0,1,2. Not only is this unusual, it won't work. Other parts of LinuxCNC (homing, for example) look explicitly for [AXIS_0] to find sequence numbers and speeds.
Please Log in to join the conversation.
From earlier post, a bit embarrassed about the whole thing.
"I know very early in the process, the one thing that I may have not considered enough is that earlier while moving all the components I shorted out the servo drive card thus allowing out some "magic smoke" and even though the power supply and servo drive work together with the original Ptrak, it appears it may have goofed up, this plug and play conf of linuxcnc. If there is something I'm missing in my approach or if possible to test another set of non standard, say go to (TB3 & TB4) ENCODER 2 & ENCODER 3 with (TB5) DRV 2 & DRV 3, just wondering."
So this is what happen, and why I need to try another approach. I believe the card may have issues.
Please Log in to join the conversation.
Link to Mesa 5i25 Files
Or you can move all your 2,3,4 stuff to 0,1,2. But after seeing Andy's post, I would not try to make it work with 2,3,4.
Best, Dan.
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
Please Log in to join the conversation.
new2linux wrote: If there is something I'm missing in my approach or if possible to test another set of non standard, say go to (TB3 & TB4) ENCODER 2 & ENCODER 3 with (TB5) DRV 2 & DRV 3, just wondering.".
That is perfectly OK. But keep [AXIS_0] and axis.0... and so on, just map them to different encoders.
net x-feedback axis.0.motor-position-fb <= hm2_5i25.0.encoder.06.position
For example.
Please Log in to join the conversation.
If all the lights work (on the card) is that the ok or is there a way to test cards to see if the card has issues?
many thanks for all
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22010
- Thank you received: 3
You can change the analogout.0 and encoder.0 respectively.
Please Log in to join the conversation.
new2linux wrote: Todd & andypung many thanks to you guys for your help!!
If all the lights work (on the card) is that the ok or is there a way to test cards to see if the card has issues?
You can read the inputs and drive the outputs manually.
Wire an MPG or even a motor + encoder to one of your encoder terminal blocks.
Power up the cards.
Start the PC, but not LinuxCNC, and open a terminal window.
Start a HAL session
The commands below can use tab-completion. I suggest that you actively do this, to ensure the correct spelling of the HAL pins, which I am guessing from memory.
Get a list of all the HAL pins and parameters Copy this from the terminal and put it in a text file for later reference
Now open a halmeter to display the encoder counts.
Repeat for the other encoder plug positions.
And exercise the analogue outputss. (I really don't know what these are called for sure, but you should, by this point)
Test them with a multimeter.
You should be able to test the 7i77 GPIO the same way too. Look at the HAL pin list for the names, and use the "setp" command to set them to 0 or 1. Test with a multimeter.
Please Log in to join the conversation.
This screen shot is of the "show pin and parm" set of files.
Attachment not found
If you look at the top you can see the files in question:
hm2. analogout0 etc. to analogout5
I am not completely shore if using "halrun" to gain access to the "setp"? Do I "copy" or "key in" the files as shown, starting with the "hm2", preceded with the "setp" command? Then use the "start" command to "setp" and then measure with multimeter, where the voltage to drives. or low voltage at the TB5 connections? Just a bit shy about not having more confidence in this area, and the need to get it correct.
Many Thanks to each of you, for being so very, very helpful!
Please Log in to join the conversation.
