Hello Guest it is April 27, 2025, 09:35:09 PM

Author Topic: Strange situation..  (Read 6312 times)

0 Members and 1 Guest are viewing this topic.

Strange situation..
« on: January 23, 2025, 01:25:32 PM »
Hi,i have an strange situation if im not undestand...

(sorry at all for my bad english,im italian )


I have this setup:
Mach3 turn
X axis for dia
Z axis for longitudinal
Y axis is for change tool

On progran,G-code run ok,x y z respond exactly,but im using a y to tool change axis but on g code it run,on macro not...
im think is an problem of macro...NO,im close turn,open mill,same setup and same macro,same port pin,input etc etc,but macro move a y axis exatly....

im not unsestand why....

is possible help me ??



Re: Strange situation..
« Reply #1 on: January 23, 2025, 03:05:38 PM »
Other question.....if im use a mill setup but on mill setup my macro run very whell,is possible use my machine as lathe ?? im think use a G51 x0.5 for convert radius to diameter,but all other operation ?? if im want operate one shaft dia 10,and make it a half sphere...for example:
G0 X0 Z2
G1 Z0 F0.02
G2 X10 Z-5 R5
ETC ETC

The machine run exactly or not ??

Offline Graham Waterworth

*
  • *
  •  2,779 2,779
  • Yorkshire Dales, England
Re: Strange situation..
« Reply #2 on: January 23, 2025, 05:35:41 PM »
In a Macro you have to run g-code in a command followed by a sleep loop e.g.

Code("G00 X10. Y10.")
While Ismoving()
Sleep(25)
Wend


If you post your macro we can look and advise.

Without engineers the world stops

Offline Graham Waterworth

*
  • *
  •  2,779 2,779
  • Yorkshire Dales, England
Re: Strange situation..
« Reply #3 on: January 23, 2025, 05:37:07 PM »
You can run 2 different machines from the same PC by creating a profile for each with the setting they need, you will have to swap the command cable too.
Without engineers the world stops
Re: Strange situation..
« Reply #4 on: January 29, 2025, 11:33:01 AM »
Hi,i have made a test;

I have make my macro for atc on Mach3Mill and screen 1024.set and it run perfectly...
The problem stat here:

1) Im close .Mill and create new profile clone from Turn With name Swiss
2) copy 1024.set and rename 1024.lset
3) open Swiss as turn and confirm it on Port and Pin,last window is Turn option...
4) load screen 1024.lset and it run perfectly

But the macro move all but noy Y axis,test it on program and Mdi mode....
But if im move Y axis on Mdi ,it run perfectly.

Im close all,open Mach3 directory and copy M6start macro form Mill and paste on Swiss profile.....situation not change

Im look one situation...on VB script open a M6start from swiss profile and folder,test it from Play button,it not read a Tool on spindle and new tool,i have writ OldTool = GetOEMDRO(1224) but it not change from 0,and NewTool = GetSelectedTool() not upload the request tool from program and Mdi

Is a different code from Mill and Turn dro code ?? im test 1224 ,824 but im not undestand
Thanks



Offline TPS

*
  •  2,574 2,574
Re: Strange situation..
« Reply #5 on: January 30, 2025, 10:38:34 AM »
but you know that the syntax for a toolchange ist different between mill and turn?

mill-> M6 T1
turn-> M6 T0101

anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Strange situation..
« Reply #6 on: January 31, 2025, 07:17:51 AM »
 :-[
i have work with tur and mill from 25 year ....on these last 6 year im work only with mill...i not have giustification.....sorry..it run thanks.