Control Panel Wiring

More
23 Aug 2019 15:08 #142971 by pl7i92
Replied by pl7i92 on topic Control Panel Wiring
the mesa card is a 7i92m
i use the pin16 is the relay to start M3 stop m5
the pwm goes to pin1
and the GND/0-10V goes to the VFD that is jumperd for external workes fine you may want to invert the pwm
# Spindel Forward M3  relay Green pin 16 Relay GPIO 05
setp hm2_7i92.0.gpio.005.is_output TRUE
setp hm2_7i92.0.gpio.005.invert_output TRUE
net spindle-cw => hm2_7i92.0.gpio.005.out 

#spindel vfd 
setp     hm2_7i92.0.pwmgen.pwm_frequency 400
setp hm2_7i92.0.pwmgen.00.scale 24000
setp hm2_7i92.0.pwmgen.00.out0.invert_output True
setp     hm2_7i92.0.pwmgen.pdm_frequency 6000000
net spindle-speed-cmd spindle.0.speed-out => hm2_7i92.0.pwmgen.00.value
net spindle-on spindle.0.on => hm2_7i92.0.pwmgen.00.enable
The following user(s) said Thank You: Dinuka_Shehan

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

More
23 Aug 2019 15:23 #142973 by pl7i92
Replied by pl7i92 on topic Control Panel Wiring
i know you woudt like to see a parport examle on the BOB i use a RAMP
loadrt pwmgen output_type=1
# load real time a limit2 and a near with names so it is easier to follow
loadrt limit2 names=spindle-ramp
loadrt and2 names=spindle-onatspeed
loadrt near names=spindle-near-speed
# add the functions to a thread
addf spindle-ramp servo-thread
addf spindle-near-speed servo-thread
addf spindle-onatspeed servo-thread

addf pwmgen.make-pulses base-thread
addf parport.0.write base-thread
addf parport.0.reset base-thread

addf stepgen.capture-position servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf stepgen.update-freq servo-thread
addf pwmgen.update servo-thread

# set the parameter for max rate-of-change
# (max spindle accel/decel in units per second)
setp spindle-ramp.maxv 1000
# hijack the spindle speed out and send it to spindle ramp in
#net spindle-cmd <= motion.spindle-speed-out => spindle-ramp.in
# the output of spindle ramp is sent to the scale in
net spindle-ramped <= spindle-ramp.out 
#=> scale.0.in

net spindle-cmd-rpm => pwmgen.0.value
net spindle-on <= motion.spindle-on => pwmgen.0.enable spindle-onatspeed.in0
net spindle-pwm <= pwmgen.0.pwm
setp pwmgen.0.pwm-freq 400.0
setp pwmgen.0.scale 24000.0
setp pwmgen.0.offset 0.0
setp pwmgen.0.dither-pwm true
net spindle-cmd-rpm     <= motion.spindle-speed-out => spindle-ramp.in
net spindle-cmd-rpm-abs <= motion.spindle-speed-out-abs => spindle-near-speed.in1
net spindle-cmd-rps     <= motion.spindle-speed-out-rps
net spindle-cmd-rps-abs <= motion.spindle-speed-out-rps-abs
#net spindle-cmd => spindle-near-speed.in1
net spindle-ramped => spindle-near-speed.in2
net spindle-onspeed spindle-onatspeed.in1 <= spindle-near-speed.out
net spindle-ready <= spindle-onatspeed.out => motion.spindle-at-speed
#net spindle-at-speed    => motion.spindle-at-speed
setp parport.0.pin-01-out-invert 1
net spindle-pwm     => parport.0.pin-01-out

ITS only a wait untill it ramps UP not to the VFD only internal to get a wait without using a input from the VFD to get spindle at speed
The following user(s) said Thank You: Dinuka_Shehan

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

More
23 Aug 2019 15:58 #142974 by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Control Panel Wiring
Any codes without vfd and pwm?
thank you for reply!

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

More
23 Aug 2019 16:02 #142975 by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Control Panel Wiring
do you use only this mesa card?

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

More
23 Aug 2019 17:13 #142980 by tommylight
Replied by tommylight on topic Control Panel Wiring
That small 5V relay is good, you can use that to turn the big relay on.
You are in SriLanka so here are a few tips that should help you to learn a lot of things with very litle money:
For coolant on the lathe you can use 12V pumps from old cars used for windshield water or if you need bigger there are gasoline pumps in the underside near the rear wheel.
Windshield wiper motors on old cars used DC brushed motors with reduction that have a lot of power and most of them had the rotor shaft on the back opened so you could add an encoder.
For linear motors you can use motors from satelite dishes, they are 8 or 10 or 12 inch of stroke and can push a lot. They also have a reed relay on the back with a small magnet to count revolutions.
Old photocopiers have a lot of smal DC motors, most with reduction, some with optical sensors on the back or front. Some have some large steppers, some have 40 to 80W servo motors with 100 or 200 or 240 ppr encoders.
Some washing machine motors can be powered from AC or DC power and do 6000 RPM.
Batery powered forklifts have some very strong DC brushed motors, but do not use the one for hydraulics they are not for normal use.
The following user(s) said Thank You: Dinuka_Shehan

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

More
23 Aug 2019 20:29 #143006 by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Control Panel Wiring
Whole lot of great ideas.
Last few days i was searching for a old photocopy machine but still not found!
Thank you for ideas

I appreciated it very much.
The following user(s) said Thank You: tommylight

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

More
23 Aug 2019 21:05 #143013 by tommylight
Replied by tommylight on topic Control Panel Wiring
You are welcomed, always.

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

More
26 Aug 2019 19:22 - 27 Aug 2019 10:10 #143246 by Dinuka_Shehan
Replied by Dinuka_Shehan on topic Control Panel Wiring
Never mind.
My English is next level shit SOMETIMES
Last edit: 27 Aug 2019 10:10 by Dinuka_Shehan.

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

More
27 Aug 2019 09:57 #143301 by Clive S
Replied by Clive S on topic Control Panel Wiring

Correct name for connectors/terminal blocks?:whistle: german guy mention here


Is this a statement or question?

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

More
27 Aug 2019 10:05 #143303 by tommylight
Replied by tommylight on topic Control Panel Wiring

Correct name for connectors/terminal blocks?:whistle: german guy mention here


Is this a statement or question?


:S

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

Time to create page: 0.234 seconds
Powered by Kunena Forum