- Posts: 17524
- Thank you received: 0
Linuxcnc 2.9.4 and Mesa 7i97T
8 months 3 weeks ago #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
Please Log in to join the conversation.
8 months 3 weeks ago #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 to join the conversation.
8 months 3 weeks ago #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 to join the conversation.
8 months 3 weeks ago #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 to join the conversation.
8 months 3 weeks ago #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 to join the conversation.
8 months 3 weeks ago #342461
by Nkbhvid
Replied by Nkbhvid on topic Linuxcnc 2.9.4 and Mesa 7i97T
Here is pwm.txt - only analog=0
Attachment not found
Please Log in to join the conversation.
8 months 3 weeks ago #342475
by PCW
Replied by PCW on topic Linuxcnc 2.9.4 and Mesa 7i97T
OK those settings should result is a +1.0V output
(as they do here)
Possible reasons for a very different output voltage:
1. Measuring wrong pins ( analog output 0 would be measured from TB3 pin 4 to TB3 pin 3)
2. Marginal 5V supply to 7I97T
3. Problem with the voltmeter
4. Damaged 7I97T analog output driver
5. 7I97T analog output connected to shorted load
(as they do here)
Possible reasons for a very different output voltage:
1. Measuring wrong pins ( analog output 0 would be measured from TB3 pin 4 to TB3 pin 3)
2. Marginal 5V supply to 7I97T
3. Problem with the voltmeter
4. Damaged 7I97T analog output driver
5. 7I97T analog output connected to shorted load
Please Log in to join the conversation.
8 months 3 weeks ago #342601
by Nkbhvid
I think my voltage spikes seemed to disappear when I connected the board.So now im ready for the next step in my "simple retrofit machine"
Note: Using POSIX realtime2573Stopping realtime threadsUnloading hal componentsNote: Using POSIX realtimeI have tried several things but now it seems that im stuck with this message.Any ideas?I attach report, hal and ini
Replied by Nkbhvid on topic Linuxcnc 2.9.4 and Mesa 7i97T
Attachment not found
- only one motor standing on the table waiting for action
- enable directly to the Rexroth DKC11.3 drive
Note: Using POSIX realtime2573Stopping realtime threadsUnloading hal componentsNote: Using POSIX realtimeI have tried several things but now it seems that im stuck with this message.Any ideas?I attach report, hal and ini
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
8 months 3 weeks ago #342605
by PCW
Replied by PCW on topic Linuxcnc 2.9.4 and Mesa 7i97T
You have basic7i97.hal in your .ini file but I think
you wanted main. hal there instead.
That's why you get this error:
CANNOT FIND FILE FOR:basic7i97.hal
you wanted main. hal there instead.
That's why you get this error:
CANNOT FIND FILE FOR:basic7i97.hal
Please Log in to join the conversation.
8 months 3 weeks ago #342608
by Nkbhvid
Replied by Nkbhvid on topic Linuxcnc 2.9.4 and Mesa 7i97T
Thanks - of course -so simple i should have noticed it myself
Next error after changing name of hal in ini:
Debug file information:
Note: Using POSIX realtime
hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
./main.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth
./main.hal:9: /usr/bin/rtapi_app exited without becoming ready
./main.hal:9: insmod for hm2_eth failed, returned -1
2077
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Why "temporarily" unavailable?
Next error after changing name of hal in ini:
Debug file information:
Note: Using POSIX realtime
hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
./main.hal:9: waitpid failed /usr/bin/rtapi_app hm2_eth
./main.hal:9: /usr/bin/rtapi_app exited without becoming ready
./main.hal:9: insmod for hm2_eth failed, returned -1
2077
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Why "temporarily" unavailable?
Please Log in to join the conversation.
Time to create page: 0.068 seconds
