PathPilot controlled lathe toolchanger

More
5 years 9 months ago #195860 by smgvbest
way back when I mentioned the zbot code. this was incorrect. zbot is for the MILL tool changer.

for lathe it the lathe control board reads a PWM signal where
10% = Tool 1
20% = Tool 2
...
80% = Tool 8
90% = No Tool/Manual Tool

these are the 3 signals it uses from the hal file

# ChrgPump/Tool# 17 7 IOPort PWM 0 PWM (Out) # 500Hz 90 % duty cycle for charge pump / for tool #1 is 10%, 2 is 20%, 8 is 80%, 90% is non-ATC tool
# ATC Reference 7 10 IOPort None 0 Gpio (Out) hm2_[HOSTMOT2](BOARD).0.gpio.010.is_output
# ATC Forward 8 11 IOPort None 0 Gpio (Out) hm2_[HOSTMOT2](BOARD).0.gpio.011.out

on the ATC board its very simple
There is UVW going to the motor
24vdc in
and 9 Optically couple inputs/outputs
which enclude a Encoder, A+/A-.B+/B-,Z+/Z- this accounts for 6 of the 9
theres 2 relays for Forward/Reverse
I havent figured 3 of them out yet since I do not have a tormach tool changer

fyi the ZBOT is controlled via USB and is a HAL Component so you need the source code to see.

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

More
5 years 8 months ago #197611 by jonnydeen
Wish I had found this thread sooner, i have been pondering if there are any prerequisites or special considerations to adding an atc hal component. Specifically as pathpilot utilises the pwm signal.

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

More
5 years 8 months ago #197626 by micknucam
As an added precaution add a absolute encoder to the tool changer I just used a simple 3 bit binary code and an in position bit. I am busy finishing off my mx clone and ATC at the moment. If you need any info I will be glad to help.

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

More
5 years 8 months ago #197627 by jonnydeen
Much appreciated, I'm converting an avm cnc lathe with a baruffaldi RH150 6 position electric turret. I have a hal toolchanger component for a similar turret that I can modify but I was wondering if it's as straight forward as with linuxcnc. Are there other hoops to jump through in software/configurations?

Might just start another thread for this, I'd prefer not to hijack this one.
The following user(s) said Thank You: MrJTJinx

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

More
5 years 8 months ago - 5 years 8 months ago #197632 by MrJTJinx
PS. im working with JonnyDeen on his lathe conversion.
I have figured out the turret tool position and cn generate a pwm signal based on 10%, 20% etc up to 60% as jonnys turret is only a 6 tool changer - at some point a change will have to be made in PP to play with a 6 instead of an 8 changer. The plan is to build a breakout board to accept the ribbon cable from the mesa 7i95 and allow for machine wiring to be made to the board. The board will also house an Arduino Nano (not PIC) to control the turret, some steps have been made in that direction. it may have an issue with the PWM matching what PP expects 200ms ? typical pwm. a big issue is understanding the limit switches there is a frequency transmitted to mesa P3 pin 16 Door switch which represents the limit switch ie X limit, Y limit, door etc muxed on to a single pin.
does anyone know what the inputs 00 to 15 represent ie is 00 x, 01 y etc and is a single frequency transmitted when only 1 event is triggered or is it the same principle as BCD where an output is generated by an accumulation of events or is decremented from a fixed freq output. The plan would be to use a second Arduino nano to handle the limit switches and connect its output directly to mesa board P3-pin 16 via the constructed breakout board.

From hal file
Code:
# used to decode the signal from the lathe control board that encodes # the door and limit switches as a frequency loadrt freq2pin personality=0x0004 setp freq2pin.0.freq-width 200 setp freq2pin.0.input 0 setp freq2pin.0.stability-count 25 setp freq2pin.0.stability-width 20 setp freq2pin.0.freq-table-00 1800 setp freq2pin.0.freq-table-01 2000 setp freq2pin.0.freq-table-02 2200 setp freq2pin.0.freq-table-03 2400 setp freq2pin.0.freq-table-04 2600 setp freq2pin.0.freq-table-05 2800 setp freq2pin.0.freq-table-06 3000 setp freq2pin.0.freq-table-07 3200 setp freq2pin.0.freq-table-08 3400 setp freq2pin.0.freq-table-09 3600 setp freq2pin.0.freq-table-10 3800 setp freq2pin.0.freq-table-11 4000 setp freq2pin.0.freq-table-12 4200 setp freq2pin.0.freq-table-13 4400 setp freq2pin.0.freq-table-14 4600 setp freq2pin.0.freq-table-15 4800 addf freq2pin.0 servo-thread

what is the defaul frequency with zero triggers
and where are these inputs handled ie a python script/the application code

Much appreciated
J.
Last edit: 5 years 8 months ago by MrJTJinx.

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

More
5 years 8 months ago #197643 by micknucam
You don't need to use the second PWM i got rid of it and used an OR gate, this is my hal file but i don't have a tool changer attached !!
The following user(s) said Thank You: jonnydeen

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

Time to create page: 0.407 seconds
Powered by Kunena Forum