Hello Guest it is March 19, 2024, 02:58:59 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

1851
VB and the development of wizards / Re: work break button
« on: March 26, 2018, 12:18:59 PM »
code for the button to get a filname where to write to:

Code: [Select]
'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



code for the button witch saves the actual coordinates:
Code: [Select]
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


what you realy looking for is digitizing.

digitizing wizard and search function is your friend.



1852
You could program it to 40,000 ppr or 160,000 count per rev but why?

just to see, that it is also not working.

1853
General Mach Discussion / Re: Only X-axis motor is working
« on: March 26, 2018, 12:06:46 PM »
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.

thats was i your "new" Profile:

<?xml version="1.0"?>

-<profile>


-<Preferences>

<Syskey1>0</Syskey1>

<DefDir>C:\Mach3</DefDir>

<Profile>TheNew</Profile>

<NewPath>0</NewPath>

<BR>0.0</BR>

<BG>0.0</BG>

<BB>0.0</BB>

<FR>0.0</FR>

<FG>0.0</FG>

<FB>1.0</FB>

<RR>1.0</RR>

<RG>0.0</RG>

<RB>0.0</RB>

<AR>0.7</AR>

<AG>0.2</AG>

<AB>0.7</AB>

<ER>1.0</ER>

<EG>1.0</EG>

<EB>0.0</EB>

<MatRed>0.0</MatRed>

<MatGreen>0.1</MatGreen>

<MatBlue>0.1</MatBlue>

<Running>1</Running>

<FirstRun>1</FirstRun>

</Preferences>

</profile>

and as i said, there is nothing (what is witch mach related)

--->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.

and set step' per vel and acc for every axis in motortunig

1854
General Mach Discussion / Re: Low voltage on stepper port issues
« on: March 25, 2018, 04:55:19 AM »
not realy,

because for example pin 6/7 will stll be connected to the same optocouples of the board (physicaly).

to do this test you have to swap Pins at the 25pol. Sub D (LPT Card or board side does not matter).

1855
General Mach Discussion / Re: Only X-axis motor is working
« on: March 25, 2018, 04:43:49 AM »
this profile is completly empty.

1856
General Mach Discussion / Re: Scripter Compile Error bites again :(
« on: March 24, 2018, 11:58:58 AM »
ok Problem found.

M84 uses the Outputs for spindle controll witch are configured directly.
i am using them only virtualy and do the control in M3/M4/M5.

thank you

1857
General Mach Discussion / Re: Low voltage on stepper port issues
« on: March 24, 2018, 10:57:37 AM »
you can check the direct signals from the parallel port (pin 6/7 from 25pole Sub D), with oszilloscope.


1858
General Mach Discussion / Re: Low voltage on stepper port issues
« on: March 24, 2018, 10:33:41 AM »
breakoutboard

1859
General Mach Discussion / Re: Low voltage on stepper port issues
« on: March 24, 2018, 10:29:36 AM »
so have swapped the Z wires on your BOB, and it worked fine.
-means Motor Controller and Motor and motro wiring is ok.

so what else is left as the bob ?

 

1860
General Mach Discussion / Re: Low voltage on stepper port issues
« on: March 24, 2018, 10:04:22 AM »
so it Looks lick you have a bad Card with no Options left, then to replace it.