No Analog voltage change 7i76e

More
05 Dec 2020 18:13 #191141 by ronthomp
Linuxcnc 2.8, Debian 10, 7i76e, new install, newbie to Linuxcnc
1990 Haas VF1, 750W DMM AC servos
In pncconfig the spindle open loop test works. I just had to invert the direction. Speed varies according to the input. But when I start Linuxcnc, axis, the spindle direction works, but it's at full speed. There is 10V in on TB4 pin 3, ground to pin 1 and to the VFD ground. Pin 2, Spindle OUT at max voltage.
I suspect I have done something wrong in pncconfig, but internet searches haven't helped.
The Haas expects CW and CCW to actuate relays, and that works using output pins, but not the TB4 spindle enable and direction.
I will attach the HAL and INI.

File Attachment:

File Name: Haas.ini
File Size:4 KB

File Attachment:

File Name: Haas.hal
File Size:12 KB
Thanks!
Attachments:

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

More
05 Dec 2020 18:26 - 05 Dec 2020 18:39 #191142 by bevins
/EDIT oops, I thought you were missing some stuff but I found it in your hal.


Try this:

#net spindle-output => hm2_7i76e.0.7i76.0.0.spinout
net spindle-vel-cmd-rpm hm2_7i76e.0.7i76.0.0.spinout
Last edit: 05 Dec 2020 18:39 by bevins.
The following user(s) said Thank You: ronthomp

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

More
05 Dec 2020 18:37 #191144 by cmorley
try setting output_scale to 5000

output scale sets at what inputs sets max voltage output

min and max clips that maximum.

you had it set to have maximum voltage output at -5000 , then clipped min and max above that.

Chris

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

More
05 Dec 2020 18:39 #191145 by ronthomp
I'll try it. Thanks!

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

More
05 Dec 2020 18:44 #191147 by bevins
Chris thoughts will probably fix it.

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

More
05 Dec 2020 18:53 #191149 by ronthomp
That helped. I can now get the spindle to turn with the plus and minus speed adjustments, but issuing an S command stops the spindle instead of changing the speed. Strange.

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

More
05 Dec 2020 18:57 #191150 by cmorley
Need to issue m code to start spindle in MDI mode.

Idiosyncrasies of linuxcnc

Linuxcnc is somewhat sloppy in it's modes (switches modes behind the scenes) and yet rigid at the same time.

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

More
05 Dec 2020 19:01 #191151 by ronthomp
That worked. Thanks!
If I issue M3 to start the spindle then further S commands will vary the speed as it should. Thanks again!

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

More
05 Dec 2020 19:36 #191154 by ronthomp
For anyone else who has this problem, it appears in pncconfig, I ticked a box to reverse the spindle because it turned the wrong way in the open loop test. I unticked the box and that fixed the ini file -5000. Unticking the box has no effect in the machine operation. My spindle turns the right way per M3 and M4 commands in MDI.

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

Moderators: cmorley
Time to create page: 0.080 seconds
Powered by Kunena Forum