Hello Guest it is March 19, 2024, 06:47:33 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.


Messages - TPS

101
General Mach Discussion / Re: GOTO Z problem
« on: June 15, 2023, 03:00:15 AM »
what is selected at

Config -> Safe_Z settings ?

102
this code:

Code: [Select]
While Ismoving()
  Sleep(20)
Wend
after the references
will "pause" the macro until movement is finished

https://www.machsupport.com/forum/index.php?action=dlattach;topic=12740.0;attach=17815
https://cnc4you.co.uk/resources/VBScript-Commands.pdf

103
this is a example how to read  the offset's from the profile.xml

Code: [Select]
Set xmlDoc = CreateObject("MSXML.DomDocument")
xmlDoc.Load "c:\Mach3\Mach3Mill.xml"
Set nodeslist = xmlDoc.selectNodes("/profile/Preferences/M0RefHome")

XHomeOffset =nodeslist(0).text
MsgBox XHomeOffset

Set xmlDoc = nothing

104
if you have a look to the DRO list:

https://www.machsupport.com/forum/index.php?action=dlattach;topic=6657.0;attach=18779

you will find them from 150 upwards

105
General Mach Discussion / Re: Can someone give me a hand?
« on: June 01, 2023, 03:41:37 AM »
you can also easy calculate the calculate the step's/per.

example:

steppers have 200 pulses per revolution. ( 360 degrees divided by 1.8 degrees = 200 )
Micro stepping = 10. So 200 X 10=2000
Motor to screw gearing is 1-1. So 2000 X 1=2000
Screw lead is .200 of an inch.
screw will have to turn 5 rounds to move the nut 1".
1.0 divided by 0.200=5.
So 2000 X 5=10000.

106
General Mach Discussion / Re: Can someone give me a hand?
« on: May 31, 2023, 05:26:51 AM »
try this code:

Code: [Select]
G00 G49 G40.1 G17 G80 G50 G90 G61
G20
(2 1/2 Axis Pocketing)
M6 T1
M03 S2400
G00 Z0.1250
X-0.0089 Y-0.0607
G01 Z0.0500  F25.0
Z0.0250  F10.0
X-0.0239 Y-0.0577 Z0.0223  F2.7
X-0.0442 Y-0.0442 Z0.0180
X-0.0577 Y-0.0239 Z0.0137
X-0.0625 Y0.0000 Z0.0094
X-0.0577 Y0.0239 Z0.0051
X-0.0442 Y0.0442 Z0.0008
X-0.0239 Y0.0577 Z-0.0035
X0.0000 Y0.0625 Z-0.0078
X0.0239 Y0.0577 Z-0.0121
X0.0442 Y0.0442 Z-0.0164
X0.0577 Y0.0239 Z-0.0207
X0.0625 Y0.0000 Z-0.0250
G17
G02X-0.0625I-0.0625J0.0000 F15.0
X0.0625I0.0625J0.0000
G01 X0.1250
G03X-0.1250I-0.1250J0.0000
X0.1250I0.1250J0.0000
G01 X0.1875
G02X-0.1875I-0.1875J0.0000
X0.1875I0.1875J0.0000
G01 X0.2500
G03X-0.2500I-0.2500J0.0000
X0.2500I0.2500J0.0000
G01 X0.3125
G02X-0.3125I-0.3125J0.0000
X0.3125I0.3125J0.0000
G01 X0.3750
G03X-0.3750I-0.3750J0.0000
X0.3750I0.3750J0.0000
G01 X0.3529 Y-0.0383 Z0.0192  F2.7
Z0.0442  F25.0
G00 Z0.1250
M5 M9
M30

107
ok example (in mm):

G90 mode
G1 X100 will move the X-Axis to 100mm in workpice coordinates

G91 mode
G1 X100 will move the X-Axis + 100mm, if it is at 50mm in workpice coordinates it will go to 150mm in workpice coordinates


for a test you can enter G90 in MDI line an run than your macro.



108
i think your machine was in incremental distance mode (G91) and not in absolute distance mode (G90)
when you run the macro.

109
Brains Development / Re: Execution M00 for Brains
« on: May 20, 2023, 01:16:55 PM »
no, you have to create a macrofile in your macrofolder (normaly C:\Mach3\macros\ your profile name) with
the name M123.M1S, plain Textfile (notepad or simular), then copy the posted code into the file.

the GCode will call the Macro:

g1y-20
g0y-15
M123
g0a40

and the code in the macro will "wait"/"pause" until Input1  goes OFF and ON again.

110
Brains Development / Re: Execution M00 for Brains
« on: May 20, 2023, 10:18:31 AM »
so you will only need a simple macro.

for example m123.m1s

Code: [Select]
If IsActive (Input1) Then
      Sleep(100) 'wait for input to go off
End If
Sleep(100)
If Not IsActive (Input1) Then
      Sleep(100) 'wait for input to go on again
End If


and GCode would look like:

Code: [Select]
m3
m7
f300
g0a0
g1y-20
g0y-15
m123
g0a20


g1y-20
g0y-15
m123
g0a40

.....

then macine wil go to position an wait for Input1 to be OFF and ON again