7i97t Mesaflash Problem
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17532
- Thank you received: 5125
31 Dec 2025 19:06 #340790
by PCW
Replied by PCW on topic 7i97t Mesaflash Problem
Yes, in the hal file, the analog outputs are all controlled by PWM values.
The actual PWM value shoudl be set by the output of a PID component that
in turn reacts to the difference in the encoder position to LinuxCNCs
commanded position.
The actual PWM value shoudl be set by the output of a PID component that
in turn reacts to the difference in the encoder position to LinuxCNCs
commanded position.
Please Log in or Create an account to join the conversation.
- Robin123
- Away
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
31 Dec 2025 19:13 #340792
by Robin123
Replied by Robin123 on topic 7i97t Mesaflash Problem
Yes, the value comes from the PID. My power amplifier is a -10/+10V. Is the value a voltage value? If the value is, for example, 17, I measure at the Mesa only 0.35V.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17532
- Thank you received: 5125
31 Dec 2025 19:40 #340796
by PCW
Replied by PCW on topic 7i97t Mesaflash Problem
The output voltage should be PWMvalue/PWMscale
Please Log in or Create an account to join the conversation.
- Robin123
- Away
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
31 Dec 2025 19:44 #340797
by Robin123
Replied by Robin123 on topic 7i97t Mesaflash Problem
I'm talking about the PWM value. So this value is a voltage value? Like 17V? I know how to limit this value. But I never measure this value on the Mesa. It's always only 0.35V as soon as I enable it.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17532
- Thank you received: 5125
31 Dec 2025 20:29 - 31 Dec 2025 20:31 #340804
by PCW
Replied by PCW on topic 7i97t Mesaflash Problem
The output voltage should be PWMvalue/PWMscale
So if PWMscale is 10 the output voltage=PWMvalue
So if PWMscale is 10 the output voltage=PWMvalue
Last edit: 31 Dec 2025 20:31 by PCW.
Please Log in or Create an account to join the conversation.
- Robin123
- Away
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
31 Dec 2025 20:34 #340805
by Robin123
Replied by Robin123 on topic 7i97t Mesaflash Problem
But no matter what the value is set to or how I change the scale, the Mesa only ever outputs ~0.35V. Or are there jumpers or something similar on the Mesa hardware that I need to adjust?
Thank you so much for your help! I really appreciate it.
Thank you so much for your help! I really appreciate it.
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17532
- Thank you received: 5125
31 Dec 2025 20:46 #340807
by PCW
Replied by PCW on topic 7i97t Mesaflash Problem
Hard to tell whats going on could be you have the wrong output
or there's a hal or hardware issue. To determine whats going on,
can you run LinuxCNC, enable motion, and then in a terminal window run:
halcmd show all | grep pwm > pwm,.txt
and then post pwm.txt here
or there's a hal or hardware issue. To determine whats going on,
can you run LinuxCNC, enable motion, and then in a terminal window run:
halcmd show all | grep pwm > pwm,.txt
and then post pwm.txt here
Please Log in or Create an account to join the conversation.
- Robin123
- Away
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
01 Jan 2026 12:53 #340834
by Robin123
Replied by Robin123 on topic 7i97t Mesaflash Problem
Happy New Year!
Attachments:
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 17532
- Thank you received: 5125
01 Jan 2026 17:00 #340840
by PCW
Replied by PCW on topic 7i97t Mesaflash Problem
36 bit IN TRUE hm2_7i97.0.pwmgen.00.enable <== x-enable
36 float IN -2.5 hm2_7i97.0.pwmgen.00.value <== x-output
36 s32 RW 1 hm2_7i97.0.pwmgen.00.output-type
36 float RW 10 hm2_7i97.0.pwmgen.00.scale
With these settings you would expect about -2.5V output of analog out 0
Possible reasons to not get about -2.5V
Looking at the wrong pins
output overloaded
5V 7I97T supply low
Damaged 7I97T
36 float IN -2.5 hm2_7i97.0.pwmgen.00.value <== x-output
36 s32 RW 1 hm2_7i97.0.pwmgen.00.output-type
36 float RW 10 hm2_7i97.0.pwmgen.00.scale
With these settings you would expect about -2.5V output of analog out 0
Possible reasons to not get about -2.5V
Looking at the wrong pins
output overloaded
5V 7I97T supply low
Damaged 7I97T
Please Log in or Create an account to join the conversation.
- Robin123
- Away
- New Member
-
Less
More
- Posts: 10
- Thank you received: 0
01 Jan 2026 18:04 #340847
by Robin123
Replied by Robin123 on topic 7i97t Mesaflash Problem
When I move the axis further using the LinuxCNC interface, the value keeps increasing, as if it were the value of the distance traveled... for example, -77... Is that supposed to happen? I'm also only getting 0.35V at the other PWM outputs, both with and without the power amplifier connected.
Please Log in or Create an account to join the conversation.
Time to create page: 0.081 seconds