7i96E pwmgen Type not Found
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 190
- Thank you received: 10
12 Jun 2019 23:47 #136796
by Project_Hopeless
7i96E pwmgen Type not Found was created 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.
All drives are stepper motors, spindle=0 so no pwm required. What could it be?
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?
Please Log in or Create an account to join the conversation.
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.
# 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.
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
(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.
- Project_Hopeless
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 190
- Thank you received: 10
14 Jun 2019 12:25 #136874
by Project_Hopeless
Replied by Project_Hopeless on topic 7i96E pwmgen Type not Found
That is what I had to do. Just changing the type didn't seem to work.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
Please Log in or Create an account to join the conversation.
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.
to one will be an error.
Please Log in or Create an account to join the conversation.
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.
Time to create page: 0.185 seconds