Mesa 7I44-7I70/7I71
- SRT
- Offline
- Premium Member
-
- Posts: 132
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
- Posts: 18527
- Thank you received: 5076
Sure: under the "Machine" menu in Axis select "Show HAL Configuration"
You will need to get the HAL file error free before you can do this but you should be close
Another way is to do it manually with halrun (this is an example terminal session)
(control_alt T to pop up a terminal)
halrun
halcmd: loadrt hostmot2
halcmd: loadrt hm2pci config="firmware=hm2/5i23/rmsvss6_8.bit num_pwmgens=6 num_resolvers=6 sserial_port_0=000XXXXX"
halcmd: show pin
halcmd: show parameter
Note the halcmd: is the prompt from halrun, (dont type it)
Please Log in or Create an account to join the conversation.
- SRT
- Offline
- Premium Member
-
- Posts: 132
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- andypugh
-
- Away
- Moderator
-
- Posts: 23315
- Thank you received: 4944
I have been reading the man hostmot2 and see that there eight pins for the resolver and six for the encoder? I am understanding the position language but not how to name the pins (what order) and how to make the arguement. does anyone have a sample Hal file for the resolver config? I think if I could see it done I would understand it better.
Well, it ought to wire just about exactly the same as an encoder. Except that "scale" probably needs to be the number of resolver cycles per unit distance. (typically there would be one resolver cycle per motor rev, but not always)
Then resolver.n.position gets wired to axis.n.motor-pos-fb
I am not sure you actually need anything more.
resolver.n.rawcounts is for the use of commutation routines with brushless motors, and the resets and indexes are for spindle use (threading/tapping)
Please Log in or Create an account to join the conversation.
- SRT
- Offline
- Premium Member
-
- Posts: 132
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
- Posts: 18527
- Thank you received: 5076
freeby.mesanet.com/srt.zip
Other hal file changes from demo are:
PWM modes set to 2 (to match 7I49 analog outputs)
PWM frequency set to 24 KHz
Input scale set to 0.200 (right for .2 pitch screw and 1 electrical turn/physical turn resolver 1:1 with screw)
Note that there is a new firmware file included. please use this file and discard the old one
the old one has a bug (not something you would notice until you hooked up the resolvers)
I have not checked this any further than to verify that it loads and the axis position readout reads the resolvers
Please Log in or Create an account to join the conversation.
- SRT
- Offline
- Premium Member
-
- Posts: 132
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
- Posts: 18527
- Thank you received: 5076
to the latest from the buildbot (or pull and recompile if that's how you got EMC2 V 2.5)
There's a bug with SSERIAL bit output when the bit # is greater than 30 (the 7I71 uses bit numbers 0 through 47) This was just fixed yesterday (12/22)
Please Log in or Create an account to join the conversation.
- SRT
- Offline
- Premium Member
-
- Posts: 132
- Thank you received: 1
Please Log in or Create an account to join the conversation.
- SRT
- Offline
- Premium Member
-
- Posts: 132
- Thank you received: 1
Please Log in or Create an account to join the conversation.