Hello Guest it is October 21, 2021, 01:24:18 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TPS

21
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 01:10:01 PM »
this with the cycle start must be smoothstepper specific.

i use Buttons 22-24 on my machines (CSLAB controller) within macros and do not have to press cycle start.

22
General Mach Discussion / Re: Mach3 macro homing
« on: July 02, 2021, 03:37:24 AM »
have you tryed to use G28.1 insteed of G28

G28 is a Return to home Position
G28.1 is a Reference Axis

23
General Mach Discussion / Re: Mach3 macro homing
« on: June 26, 2021, 03:09:16 AM »
here is a piece of code that i am using on one of my machines:

Code: [Select]
Sub Main()
' -------------------------------------------------------------------------------
' TPS 26.06.2021 
' do a referece 
' new version with OEM Led's
' -------------------------------------------------------------------------------
'quit if file is loaded
If IsLoading() Then
    GoTo Ende
End If

Message ("automatic reference started")

'reference Z
Message ("Z-axis reference")
DoOemButton(1024) 'Ref Z
Sleep(500)
While GetOemLed(809) = true
    Sleep(200)
    If GetOemLed(800) Then
        Sleep(500)
        Message"error while referencing"
        End
    End If
Wend

Sleep(500) 'wait
Message (" ") 'clear status line
Sleep(200) 'wait
Exit Sub
 '--------------------------------------------------------------------------------

Ende:   
End Sub     

it is for z-axis because i have no c-axis.
it runs from VB-Editor and also due g-code call.

in your case it would be oembutton(1027) and oemled(812) for c-axis.

24
General Mach Discussion / Re: Mach3 macro homing
« on: June 25, 2021, 01:36:46 AM »
witch Motion Controller are you usining?

25
General Mach Discussion / Re: Mach3 macro homing
« on: June 14, 2021, 01:13:53 AM »
sorry, missed your answer.

for the Moment the only idea i have is, that Mach may be corrupted.
i would try to install a fresh copy.

26
General Mach Discussion / Re: Mach3 macro homing
« on: June 11, 2021, 01:58:10 AM »
sounds strange. witch Version of Mach3 are you using?

27
General Mach Discussion / Re: Mach3 macro homing
« on: June 10, 2021, 11:21:42 AM »
you can try to do a

RefCombination(32)

insteed of

DoOEMButton(1027)

maybe it helps

28
FAQs / Re: my plasma convert all angles to arcs
« on: June 10, 2021, 02:21:43 AM »
Config -> General Config -> IJ Mode -> inc

maybe?

29
General Mach Discussion / Re: scripting
« on: June 09, 2021, 06:26:59 AM »
basicly OEMTriggers are used like regular input's but they Special functionalty

1st. you can assign in Config->System hotkeys oemcodes to a OEMtrigger witch will be done once if OEMTrigger comes true

2nd. you can define a triggermacro by SetTriggerMacro(number)

normaly done this way.

-add for example in Config->General Config ->Initialisation string  M333, that means every time you reset M333.M1s is called

-within M333.M1s add the VB code SetTriggerMacro(334)

-assign in Config->System hotkeys oemcodes to a OEMtrigger the code 301 witch means run triggermacro

so every time the OEMTrigger Comes True the VB Code within M334.M1S will run once.

hope i was able to explain the Basics of OEMTriggers in my bad bavarian english. 


30
General Mach Discussion / Re: scripting
« on: June 09, 2021, 04:56:38 AM »
not 100% sure but i think you can just type in 245 in the buttonpress window in the brain without using the Dropdown list.