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.