1851
SmoothStepper USB / Re: SMOOTH STEPPER SAVED FILES
« on: March 27, 2018, 11:19:11 AM »
have a look for the link in Reply #5
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.
I know that there is a Start and stop Macro, I already have the "M6Start" file,
Do i also need a stop Macro? or is it in my Start macro already?
also I think I need to add some Tab pages to my Mach3, Do you have the links for them?
My Spindle should have the required Solenoid, I am planning to use CC (Chinese) or HSD (Italian)
'get the filename for digfile from user
Sub Main()
If NOT Isloading() then
Dim FNum, FName ' Declare variables.
'get Filename from user
Begin Dialog TextBoxSample 16,30,180,96,"enter digfilename"
OKButton 132,20,40,14
Text 8,8,132,8,"filename without extension:"
TextBox 8,20,100,12,.TextBox1
Text 8,44,132,8,"file will be in c:\Mach3\GCode"
End Dialog
Dim Dlg1 As TextBoxSample
Dialog Dlg1
SetUserLabel(255, Dlg1.TextBox1)
'open the to file errase all existing data
FNum = FreeFile ' Determine next file number.
FName = "C:\Mach3\GCode\" + GetUserLabel(255) + ".nc"
Open FName For Output As FNum ' Open file.
Close ' Close all files.
SetUserDro(1166,1)
End If
End Sub
Sub Main()
Dim FNum, FName ' Declare variables.
'wait for axis standstill
WaitForMove
'open the file for output data data
FNum = FreeFile ' Determine next file number.
FName = "C:\Mach3\GCode\" + GetUserLabel(255) + ".nc"
Open FName For Append As FNum ' Open file.
Print #FNum, cStr(GetDro(0)) & "," & CStr(GetDro(1)) & "," & CStr(GetDro(2))
Close ' Close all files.
End Sub
'global Sub's
Sub WaitForMove ()
While IsMoving()
Sleep(5)
Wend
End Sub
You could program it to 40,000 ppr or 160,000 count per rev but why?
this profile is completly empty.I'm guessing that means the profile doesn't actually save til you exit the program? Or am I supposed to do something I didn't do to not have a blank profile?
The two profiles I've used were the standard Mill one that comes with the download and the New one that appears to be empty. The only thing I did with the new profile was set the motor outputs as that's all I need to focus on until I have them working.