Hello Guest it is September 19, 2019, 04:25:33 PM

Author Topic: Bridgeport Knee Mill Conversion?  (Read 159092 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #450 on: September 04, 2016, 09:13:48 AM »
Then maybe  try with oemdro 100, it is on the standard screen as it is the  4th Encoder DRO.
Hood

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Bridgeport Knee Mill Conversion?
« Reply #451 on: September 04, 2016, 09:38:57 AM »
OK, Done and it seems to work ok, I still have to press stop before the macro will run again though.

Now what :)

previously you said:

One oddity - after running the macro once and ok'ing the tool-table etc, the macro will not run again unless the Stop button is pressed?
I tried putting an "End" command on the last line but no change, i added a DoOEMButton(1003) and it works perfectly.
No idea whats going on there but hey-ho ;)

Hey-ho indeed - I strongly suggest you/we get to the bottom of WHY - rather than just appling a kludge and moving on.

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Bridgeport Knee Mill Conversion?
« Reply #452 on: September 04, 2016, 09:53:10 AM »
Ok, thats good advice, but I have no idea how to find out why it will not release until stop is pressed, there is no "Terminating Script..." message etc.

All i can figure out is that it works if Stop is pressed first??

Having said that, I need to test again since moving to a UserDRO instead of the Oem803 one i was using, it may just be the DRO causing the hang.

Will have to test this tomorrow night as there was an issue with the DRO chosen which is being fixed now, this will give me a DRO that is totally isolated from the general Mach system so should be safe.

I am doubtful though as I am pretty sure it was  the same when I had the code cut down so far there was no DRO at all - it just read the value and poked it straight into the tool table.

Will find out tomorrow hopefully.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Bridgeport Knee Mill Conversion?
« Reply #453 on: September 04, 2016, 10:05:48 AM »
so we simplify even further.

Switch OFF the macropump - and make SURE it's OFF.

then run my one liner button code and see what happens. i.e. type a value into the A DRO and see if:

a) that goes into the tool table (again opened manually after the button press).
b)change the value manually in the A DRO and see if you can run the button again or whether it's "blocked" still.

Problem is of course - you've now got rid of the A DRO so we're in the mess of changing more than one thing at a time. See where I'm going with this? still thrashing Dave... ;)

EDIT: BTW - did I read somewhere that you're running macros from button macros or did I imagine that?
« Last Edit: September 04, 2016, 10:10:06 AM by stirling »

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Bridgeport Knee Mill Conversion?
« Reply #454 on: September 04, 2016, 10:31:54 AM »
I can easily change back to the std screen set so thats ok, will kill the pump and try the cut-down code again.

Yes, this screen-set uses macro calls on most buttons.
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Bridgeport Knee Mill Conversion?
« Reply #455 on: September 04, 2016, 10:59:34 AM »
Yes, this screen-set uses macro calls on most buttons.

How are the macros called? is it with the "code" call e.g.

code "M666"

Offline Hood

*
  •  25,849 25,849
  • Carnoustie, Scotland
    • View Profile
Re: Bridgeport Knee Mill Conversion?
« Reply #456 on: September 04, 2016, 11:09:44 AM »


How are the macros called? is it with the "code" call e.g.

code "M666"


That proves it, always knew you were the Deil  Ian



Hood

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Bridgeport Knee Mill Conversion?
« Reply #457 on: September 04, 2016, 11:15:59 AM »
 >:D

Offline Davek0974

*
  •  2,577 2,577
    • View Profile
    • DD Metal Products Ltd
Re: Bridgeport Knee Mill Conversion?
« Reply #458 on: September 04, 2016, 11:42:51 AM »
Yes, this screen-set uses macro calls on most buttons.

How are the macros called? is it with the "code" call e.g.

code "M666"


I can only presume as the buttons are not editable :)
Bridgeport Mill, Mach3 V062, CSMIO-IP/A controller, AC Servo Drives

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: Bridgeport Knee Mill Conversion?
« Reply #459 on: September 04, 2016, 11:59:40 AM »
no - what I'm getting at is prompted by this from Hood

One other thing, why did you have your screen button call a macro rather than just have the script in the button?
Unlikely it would make a difference but was just curious.

Hood

This implies you are calling a FILE based macro from within a screen button macro script