Hello Guest it is September 30, 2023, 06:22:12 AM

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.


Topics - mariusl

Pages: 1
1
Mach Screens / Screenset 2010 M3 not setting output
« on: June 07, 2019, 09:37:26 AM »
Hi
I am having problems where the M3 command does not set any output on Mach3. Sometimes it will work first time and always and other times it will do nothing. Not when I use the Spindle icon or a MDI command.
If I enter a spindle speed manually it shows -1  and then does not start obviously.

If I go into the setup and change nothing but use apply, it will switch the spindle on when the M3 is issued.

2
Mach SDK plugin questions and answers. / Manual for SDK
« on: March 16, 2019, 04:15:31 AM »
Hi
I have been searching but cannot find a manual for the SDK. I am under the impression that there was one some time ago. I need to know what functions and calls are available to work with. Especially with the engine.

3
Mach SDK plugin questions and answers. / Plugin Wizard / SDK with VS2017
« on: February 20, 2019, 01:16:53 AM »
Hi
Is it possible to use the SDK and PluginWizard with Visual Studio 2017 at all or must I install an older version of VS?

4
PoKeys / End switch on Db 25 LPT config
« on: February 07, 2019, 05:27:00 AM »
Hi
I am using a PoKeys57CNC ver 1.4 to replace the LPT port on an installation. I have the motors turning but cannot seem to get the homing switches active.
I do not use any limit switches but only use homing switches. I cannot find any reference to the "End switch X" that is referred to on the pinout diagram in the manual.
Any ideas on how to do this please?

5
General Mach Discussion / M40 and G31 does not save A axis values
« on: February 16, 2015, 03:39:54 PM »
Hi
I am running the 4th Axis Probe Master wizard to probe an item on the fourth axis (A). The routine works well but the M40 macro calls the OpenDigFile() routine that is used to write away the coordinates results of a G31 (straight probe) and this seems to only store the X,Y and Z values. If you probe a 4th axis item, the Y axis will remain at 0.0 and the A axis will change. It is however not recorded.
How does one go about to get the A axis value recorded in the output file?

6
General Mach Discussion / Where is the button scripts stored
« on: April 14, 2013, 02:44:11 AM »
Hi All,
Can anyone tell me where the button scripts for a given profile is stored please?

7
General Mach Discussion / Custom Homing Code
« on: April 05, 2013, 12:27:53 PM »
Hi all
I did this piece of code that is attached to the "Ref All Home" button. I have a tangential knife on the rotary (A) axis that has to be locked by a pin and then zeroed.
This code does not work on first startup of Mach. If I traversed the a axis once, then it will work. It seems to sit and wait for the first turn to complete but it does not turn at all. I think it hase something to do with feed rates.
Can someone help please?

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
While ismoving()
Wend

Code "G1 A0 F2000"
While ismoving()
Wend

ActivateSignal(Output2) 'set the pin
Sleep(500)

Code "G1 A-180 F2000"  ' turn the knife anti-clockwise for a half turn
While ismoving()
Wend

DoButton(11)  ' clear the DRO

Code "G1 A-180 F2000"  'turn the knife again to make sure of one full turn and lock-up
While ismoving()
Wend

DoButton( 11 )  ' do the mach referencing

SetDro(3,270) ' to head the knife in th eright direction
DeActivateSignal(Output2) ' unlock the pin
Code "G0 A0"
Code "G0 X-12"
Code "G0 Y102"
While ismoving()
Wend
DoButton( 8 )
DoButton( 9 )

8
VB and the development of wizards / Custom Homing code
« on: April 05, 2013, 07:36:56 AM »
Hi all
I did this piece of code that is attached to the "Ref All Home" button. I have a tangential knife on the rotary (A) axis that has to be locked by a pin and then zeroed.
This code does not work on first startup of Mach. If I traversed the a axis once, then it will work. It seems to sit and wait for the first turn to complete but it does not turn at all. I think it hase something to do with feed rates.
Can someone help please?

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
While ismoving()
Wend

Code "G1 A0 F2000"
While ismoving()
Wend

ActivateSignal(Output2) 'set the pin
Sleep(500)

Code "G1 A-180 F2000"  ' turn the knife anti-clockwise for a half turn
While ismoving()
Wend

DoButton(11)  ' clear the DRO

Code "G1 A-180 F2000"  'turn the knife again to make sure of one full turn and lock-up
While ismoving()
Wend

DoButton( 11 )  ' do the mach referencing

SetDro(3,270) ' to head the knife in th eright direction
DeActivateSignal(Output2) ' unlock the pin
Code "G0 A0"
Code "G0 X-12"
Code "G0 Y102"
While ismoving()
Wend
DoButton( 8 )
DoButton( 9 )
     





9
Hi,
I am new to Wizards, so please be patient. I Looked at some wizards and then created my own that output the following Gcode. Mach gets to line 3 and just get stuck there. What am I screwing up here?

Code: [Select]
F1800
G00 Z1
G00 X0 Y0
G01 Y0.5
G01 X199.5
G01 Y2.5
G01 X0.5
G01 Y4.5
G01 X199.5
G01 Y6.5
G01 X0.5
G01 Y8.5
G01 X199.5
G01 Y9.5
G01 X0.5
G00 X0 Y0
M30


And here is the VB that creates the code

Code: [Select]
Sub Main()
DoOEMButton (169)
FeedRough = Abs(GetOEMDRO(1070))
ToolDia = Abs(GetOEMDRO(1071))
ToolRad = ToolDia / 2

XPOS = GetOEMDRO(1072)
YPOS = GetOEMDRO(1073)

SafeZ = 1 'Abs(GetOEMDRO(1079))

Length = Abs(GetOEMDRO(1080))
Width = Abs(GetOEMDRO(1075))

StepDepth = Abs(GetOEMDRO(1076))
Clearance = StepDepth * 1.5

If FeedRough = 0 Then
    Code "(MSG,Feed Rate can't be zero)"
End If

If StepDepth = 0 Then
    Code "(MSG,Step down can't be zero)"
End If

If Length = 0 Then
    Code "(MSG,Length can't be zero)"
End If

If Width = 0 Then
    Code "(MSG,Width can't be zero)"
End If

OpenTeachFile "LaserPeenScan.tap"

XStart = XPOS
YStart = YPOS
XFinal = XPOS + Length
YFinal = YPOS + Width

XToolDown = XStart
YToolDown = YStart

PassNumber = 1
Code "F" & FeedRough

DepthofPass = StepDepth

PassType = 1

XStart = XPOS - Offset + ToolRad
YStart = YPOS + ToolRad
XFinal = XPOS + Length - ToolRad
YFinal = YPOS + Width - ToolRad

Code "G00 Z" & SafeZ
Code "G00 X" & XToolDown & " Y" & YToolDown

YpassNo = 0
Do
    YofPass = YStart + (ToolDia * StepDepth  * YpassNo)
    If (YofPass >= YFinal) Then
        Exit Do
    End If
    Code "G01 Y" & YofPass
    Code "G01 X" & XFinal
    PassType = PassType * -1
    YpassNo = YpassNo + 1
   
    YofPass = YStart + (ToolDia * StepDepth * YpassNo)
    If (YofPass >= YFinal) Then
        Exit Do
    End If
    Code "G01 Y" & YofPass
    Code "G01 X" & XStart
   
    PassType = PassType * -1
    YpassNo = YpassNo + 1
Loop
YofPass = YFinal
Code "G01 Y" & YofPass
If (PassType = 1) Then
    Code "G01 X" & XFinal
Else
    Code "G01 X" & XStart
End If

Code "G00 X" & XToolDown & " Y" & YToolDown

Code "M30"
CloseTeachFile

Call LoadTeachFile
End Sub

Main



Pages: 1