7I43 Spindle output

More
02 Nov 2016 07:42 #82336 by soroosh.av
Hi all.

I'm using a 7I43 Messa board to control a milling machine. With some helps from you, now i have a three axis closed loop servo system machine, this is great, but i need an analogue output for spindle (open loop) and i have one free axis on 7I33 that i want to use it for analogue output. The problem is that i don't know how to configure it. I saw three methods for spindle control:
1.The simple way is to use 0_+-10 volt for speed and direction and a bit for enabling the drive.
2.Using 0_10 volts for speed and an enabling bit for drive and one bit for direction.
3.Using 0_10 volts for speed and one bit for enabling forward and another for enabling reverse.

I need second method for now but explaining all three methods would be very helpful in future.

I'll appreciate if you guide me how to manage this.

Please Log in or Create an account to join the conversation.

More
02 Nov 2016 14:08 #82347 by andypugh
Replied by andypugh on topic 7I43 Spindle output

2.Using 0_10 volts for speed and an enabling bit for drive and one bit for direction..


It should only take something like (and I am guessing pin names here, you will need to check against the actual pin-name. And you probably don't have outputs 095 and 096, so those need to suit your wiring)
net spindle-speed motion.spindle-speed-out-abs => hm2_7i43.0.pwmgen.03.value
setp hm2_7i43.0.pwmgen.00.scale 10000 
net amp-enable hm2_7i43.0.pwmgen.03.enable
net spindle-on motion.spindle-on => hm2_7i43.0.gpio.095.out
setp hm2_7i43.0.gpio.095.is_output 1
net spindle-reverse motion.spindle-reverse  => hm2_7i43.0.gpio.095.out
setp hm2_7i43.0.gpio.095.is_output 1
The following user(s) said Thank You: soroosh.av

Please Log in or Create an account to join the conversation.

More
03 Nov 2016 04:51 #82366 by soroosh.av
Replied by soroosh.av on topic 7I43 Spindle output
These codes are working for me:

loadrt abs count=1
addf abs.0 servo-thread
net spindle-speed motion.spindle-speed-out => abs.0.in
net spindle-speed-abs abs.0.out => hm2_7i43.0.pwmgen.03.value
setp hm2_7i43.0.pwmgen.03.scale 10000
net spindle-on hm2_7i43.0.pwmgen.03.enable
net spindle-on motion.spindle-on => hm2_7i43.0.gpio.042.out
setp hm2_7i43.0.gpio.042.is_output true
setp hm2_7i43.0.gpio.042.invert_output true
net spindle-reverse motion.spindle-reverse => hm2_7i43.0.gpio.043.out
setp hm2_7i43.0.gpio.043.is_output true
setp hm2_7i43.0.gpio.043.invert_output true

I found abs instruction in one of your last replies.
I got other methods too. Thanks for your help.

Please Log in or Create an account to join the conversation.

More
03 Nov 2016 09:43 #82368 by andypugh
Replied by andypugh on topic 7I43 Spindle output

I found abs instruction in one of your last replies.


You only need the "abs" as a way to get forwards and reverse separately from motion.

motion has the spindle-speed-out-abs pin which will save a little complexity in most cases

Please Log in or Create an account to join the conversation.

More
04 Nov 2016 19:20 #82445 by soroosh.av
Replied by soroosh.av on topic 7I43 Spindle output
Motion.spindle-speed-out-abs

This pin is not present in my configuration, I faced with an error.

Please Log in or Create an account to join the conversation.

More
04 Nov 2016 19:26 #82446 by andypugh
Replied by andypugh on topic 7I43 Spindle output

Motion.spindle-speed-out-abs
This pin is not present in my configuration, I faced with an error.


Which version are you using?

If you open a terminal and type "halcd show pin *spindle-speed*" what do you get?

Please Log in or Create an account to join the conversation.

More
05 Nov 2016 10:30 #82485 by soroosh.av
Replied by soroosh.av on topic 7I43 Spindle output
It's a very old version, 2.4.3.
Is there any way to upgrade it online, not installing from the beginning?

spindle speed pins are: speed-in, speed-out, speed-out-rps.

Please Log in or Create an account to join the conversation.

More
05 Nov 2016 12:23 #82491 by Todd Zuercher
Replied by Todd Zuercher on topic 7I43 Spindle output
Yes, but, it depends a bit on what your operating system is based on. If your os is based on Ubuntu 10.04 (most likely) then an update to the current supported version of 2.7 is not difficult. If your os is something else then it is advisable to replace the os with the one on the current live CD and start fresh, but back up and save your machine configuration files as they can still be reused and save you from having to rebuild your config from scratch.
One more note about keeping Ubuntu 10.04, if you intend to update to Master (the development branch) or 2.8 when it is eventually released Ubuntu 10.04 will not be supported by those next versions.
linuxcnc.org/docs/html/getting-started/updating-linuxcnc.html
Minor modifications to your config files were required for 2.6 and 2.7, they are covered in the 2.6 and 2.7 documentation.
The following user(s) said Thank You: soroosh.av

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum