7i96E pwmgen Type not Found

More
12 Jun 2019 23:47 #136796 by Project_Hopeless
I have my PC and 7i96 card talking. I setup the ini file with the 7i96 Tool, set to 5 step-gen matching the cards firmware.

When I load LinuxCNC with my ini file it crashes I believe it is crashing on a missing pwm setting.
Debug file information:
Note: Using POSIX realtime
iptables: No chain/target/match by that name.
./homecnc_02.hal:169: parameter or pin 'hm2_7i96.0.pwmgen.00.output-type' not found
1605
Stopping realtime threads
Unloading hal components

All drives are stepper motors, spindle=0 so no pwm required. What could it be?
Attachments:

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

More
13 Jun 2019 00:13 #136798 by persei8
Replied by persei8 on topic 7i96E pwmgen Type not Found
For some reason, the 7i96 config tool sets the pwm type to 0 regardless of what you tell it. In your homecnc_02.hal file, find the section starting with :
# Spindle
and replace
setp hm2_7i96.0.pwmgen.00.output-type 0
with
setp hm2_7i96.0.pwmgen.00.output-type 1
Should work.

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

More
13 Jun 2019 00:45 - 13 Jun 2019 00:45 #136803 by PCW
Replied by PCW on topic 7i96E pwmgen Type not Found
Looks like possible a bug in the configuration utility
(if you did not specify any spindle output features)

I would just comment out the following lines in the hal file:

setp hm2_7i96.0.pwmgen.00.output-type 0
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]MAX_RPM
setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY
Last edit: 13 Jun 2019 00:45 by PCW.

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

More
14 Jun 2019 12:25 #136874 by Project_Hopeless

I would just comment out the following lines in the hal file:

setp hm2_7i96.0.pwmgen.00.output-type 0
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]MAX_RPM
setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY

That is what I had to do. Just changing the type didn't seem to work.

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

More
14 Jun 2019 12:33 #136875 by PCW
Replied by PCW on topic 7i96E pwmgen Type not Found
The standard 7I96 firmware doesn't have a PWM generator so any reference
to one will be an error.

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

More
14 Jun 2019 14:34 #136881 by persei8
Replied by persei8 on topic 7i96E pwmgen Type not Found
I missed that the OP said 5 stepgens. That one has no PWM. My board has 4 stepgens and PWM so changing the 0 to a 1 fixed the error.

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

Moderators: PCWjmelson
Time to create page: 0.327 seconds
Powered by Kunena Forum