Linuxcnc 2.9.4 and Mesa 7i97T
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 17638
- Thank you received: 5160
04 Feb 2026 15:40 - 04 Feb 2026 15:40 #342391
by PCW
Replied by PCW on topic Linuxcnc 2.9.4 and Mesa 7i97T
7I97 analog outputs are generated from PWM
which requires some setup:
---PWM Generator signals/setup---
setp hm2_7i97.0.pwmgen.pwm_frequency 75000
setp hm2_7i97.0.pwmgen.00.output-type 1 #PWM pin0
setp hm2_7i97.0.pwmgen.00.offset-mode 1 # offset mode so 50% = 0
setp hm2_7i97.0.pwmgen.00.scale 10
setp hm2_7i97.0.pwmgen.00.enable true
setp hm2_7i97.0.pwmgen.00.value 1.0
which requires some setup:
---PWM Generator signals/setup---
setp hm2_7i97.0.pwmgen.pwm_frequency 75000
setp hm2_7i97.0.pwmgen.00.output-type 1 #PWM pin0
setp hm2_7i97.0.pwmgen.00.offset-mode 1 # offset mode so 50% = 0
setp hm2_7i97.0.pwmgen.00.scale 10
setp hm2_7i97.0.pwmgen.00.enable true
setp hm2_7i97.0.pwmgen.00.value 1.0
Last edit: 04 Feb 2026 15:40 by PCW. Reason: fix scale
Please Log in or Create an account to join the conversation.
- Nkbhvid
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
04 Feb 2026 15:47 #342395
by Nkbhvid
Replied by Nkbhvid on topic Linuxcnc 2.9.4 and Mesa 7i97T
OK I figured it out almost
The analog pins are PWMs
But if i put this into my HAL:
setp hm2_[MESA](BOARD).0.pwmgen.00.dither true
setp hm2_[MESA](BOARD).0.pwmgen.00.output-type 1 #PWM pin0
setp hm2_[MESA](BOARD).0.pwmgen.00.offset-mode 1 # offset mode so 50% = 0
setp hm2_[MESA](BOARD).0.pwmgen.00.scale 10
setp hm2_[MESA](BOARD).0.pwmgen.00.value 1.0
I get 4.2 volt
Why? I have just double-checked 10/1 = 1
The analog pins are PWMs
But if i put this into my HAL:
setp hm2_[MESA](BOARD).0.pwmgen.00.dither true
setp hm2_[MESA](BOARD).0.pwmgen.00.output-type 1 #PWM pin0
setp hm2_[MESA](BOARD).0.pwmgen.00.offset-mode 1 # offset mode so 50% = 0
setp hm2_[MESA](BOARD).0.pwmgen.00.scale 10
setp hm2_[MESA](BOARD).0.pwmgen.00.value 1.0
I get 4.2 volt
Why? I have just double-checked 10/1 = 1
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 17638
- Thank you received: 5160
04 Feb 2026 22:15 #342416
by PCW
Replied by PCW on topic Linuxcnc 2.9.4 and Mesa 7i97T
Do you get near 0V on the analog output
when the 7I97T is powered but LinuxCNC is not running?
when the 7I97T is powered but LinuxCNC is not running?
Please Log in or Create an account to join the conversation.
- Nkbhvid
- Offline
- New Member
-
Less
More
- Posts: 19
- Thank you received: 0
04 Feb 2026 23:11 #342425
by Nkbhvid
Replied by Nkbhvid on topic Linuxcnc 2.9.4 and Mesa 7i97T
Yes
The multimeter gave a jump to 0.5 volt in a glimpse . I don’t know for how long since the meter was set to store highest
I just tried to repeat the test.
This time the 0 was dead 0
Could it have any impact on the result that I also had the 24 v on the enable pin at the same time in the first test?
The multimeter gave a jump to 0.5 volt in a glimpse . I don’t know for how long since the meter was set to store highest
I just tried to repeat the test.
This time the 0 was dead 0
Could it have any impact on the result that I also had the 24 v on the enable pin at the same time in the first test?
Please Log in or Create an account to join the conversation.
- PCW
-
- Online
- Moderator
-
Less
More
- Posts: 17638
- Thank you received: 5160
04 Feb 2026 23:30 #342426
by PCW
Replied by PCW on topic Linuxcnc 2.9.4 and Mesa 7i97T
Not sure, sounds like the PWM is not setup properly
Can you run your test (where you expect 1V)
and in a terminal type
halcmd show all | grep pwm > pwm.txt
and post pwm.txt here
Can you run your test (where you expect 1V)
and in a terminal type
halcmd show all | grep pwm > pwm.txt
and post pwm.txt here
Please Log in or Create an account to join the conversation.
Time to create page: 0.250 seconds