- Posts: 18115
- Thank you received: 5334
Pimping the mini-lathe
- PCW
- Offline
- Moderator
-
Less
More
6 years 3 months ago - 6 years 3 months ago #175897
by PCW
TB2 pins 2 and 3 are the PWM outputs (- and + respectively)
You need to update mesaflash to get the TB numbers:
github.com/LinuxCNC/mesaflash
Replied by PCW on topic Pimping the mini-lathe
Code:
TB2 2,3 25 IOPort PWM 0 PWM (Out)
TB2 4,5 26 IOPort PWM 0 Dir (Out)
TB2 7,8 27 IOPort QCount 0 Quad-A (In)
TB2 10,11 28 IOPort QCount 0 Quad-B (In)
TB2 13,14 29 IOPort QCount 0 Quad-IDX (In)
TB2 pins 2 and 3 are the PWM outputs (- and + respectively)
You need to update mesaflash to get the TB numbers:
github.com/LinuxCNC/mesaflash
Last edit: 6 years 3 months ago by PCW.
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 years 3 months ago #175899
by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
I only just installed mesaflash using the instructions for that github link. What do I need to do differently to get the most current version?
Is there any documentation on the PWM setup? I just found:
Basic PWM setup:
setp hm2_7i96.0.pwmgen.pwm_frequency 10000
setp hm2_7i96.0.pwmgen.00.scale 24000 # full scale is 24000 RPM
setp hm2_7i96.0.pwmgen.00.output-type 1 # standard PWM and direction
And was wondering what the outut type is for only PWM in only one direction? or do I just use this and ignore the direction part?
Is there any documentation on the PWM setup? I just found:
Basic PWM setup:
setp hm2_7i96.0.pwmgen.pwm_frequency 10000
setp hm2_7i96.0.pwmgen.00.scale 24000 # full scale is 24000 RPM
setp hm2_7i96.0.pwmgen.00.output-type 1 # standard PWM and direction
And was wondering what the outut type is for only PWM in only one direction? or do I just use this and ignore the direction part?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
6 years 3 months ago - 6 years 3 months ago #175900
by PCW
Replied by PCW on topic Pimping the mini-lathe
It sounds like you did not install the latest mesaflash (so you are using the old one)
after building mesaflash, did you run "sudo make install" ?
git clone github.com/LinuxCNC/mesaflash.git
cd mesaflash
make
sudo make install
And yes standard PWM (mode 1) is correct
after building mesaflash, did you run "sudo make install" ?
git clone github.com/LinuxCNC/mesaflash.git
cd mesaflash
make
sudo make install
And yes standard PWM (mode 1) is correct
Last edit: 6 years 3 months ago by PCW.
Please Log in or Create an account to join the conversation.
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 years 3 months ago #175901
by RotarySMP
Replied by RotarySMP on topic Pimping the mini-lathe
I followed the lines of the git instructions one by one, including make including the four list. When I repeat them
minilathe@minilathe:~$ git clone github.com/LinuxCNC/mesaflash.git
fatal: destination path 'mesaflash' already exists and is not an empty directory.
minilathe@minilathe:~$ cd mesaflash
minilathe@minilathe:~/mesaflash$ make
make: Nothing to be done for 'all'.
minilathe@minilathe:~/mesaflash$ sudo make install
[sudo] password for minilathe:
install -p -D --mode=0755 --owner root --group root mesaflash /bin/mesaflash
install -p -D --mode=0644 --owner root --group root mesaflash.1 /share/man/man1/mesaflash.1
minilathe@minilathe:~/mesaflash$
minilathe@minilathe:~$ git clone github.com/LinuxCNC/mesaflash.git
fatal: destination path 'mesaflash' already exists and is not an empty directory.
minilathe@minilathe:~$ cd mesaflash
minilathe@minilathe:~/mesaflash$ make
make: Nothing to be done for 'all'.
minilathe@minilathe:~/mesaflash$ sudo make install
[sudo] password for minilathe:
install -p -D --mode=0755 --owner root --group root mesaflash /bin/mesaflash
install -p -D --mode=0644 --owner root --group root mesaflash.1 /share/man/man1/mesaflash.1
minilathe@minilathe:~/mesaflash$
Please Log in or Create an account to join the conversation.
- tommylight
- Offline
- Moderator
-
Less
More
- Posts: 22011
- Thank you received: 7491
6 years 3 months ago #175903
by tommylight
Replied by tommylight on topic Pimping the mini-lathe
No need for flashing the 7i96, it was already set for the PWM on STEP4 / TB2
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
Less
More
- Posts: 18115
- Thank you received: 5334
6 years 3 months ago #175906
by PCW
Replied by PCW on topic Pimping the mini-lathe
"fatal: destination path 'mesaflash' already exists and is not an empty directory."
You might try
cd ~
rm -rf mesaflash
and refetch/rebuild
I just did this and I get the TB names
You might try
cd ~
rm -rf mesaflash
and refetch/rebuild
I just did this and I get the TB names
The following user(s) said Thank You: RotarySMP
Please Log in or Create an account to join the conversation.
Moderators: piasdom
Time to create page: 0.448 seconds