Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started by: Fred_evans on October 01, 2016, 11:30:09 AM
-
Hello Chaps
in "general config" there is a field that is called initialization string
If I add S1000 to this setup string does that mean that when I activate
or toggle the "spindle" button that the spindle motor should turn at
the speed of 1000 rpm??
thanks
fred
-
It might but i don't know if the S word is recognised in the init string.
Another way....
Create a Macro in your profile/macros folder, lets call it M1901.m1s
In it put SetSpinSpeed(1000) and a return (enter)
then in the init string add a space and then M1901
Try that, might do it. :)
-
Thanks Dave--
Can anyone comment on whether the S word is recognised in the initialization string ?
This may be what I am missing?
fred
-
in my post processor there is a gcode instruction that looks like s(s)
which translates in the gcode file to S12000
if I tell my tool to use 12000rpm
regards
-
Thanks Dave--
Can anyone comment on whether the S word is recognised in the initialization string ?
This may be what I am missing?
fred
The S word is indeed recognized in the initialization string for Mach3.
Tweakie.
-
Nice, learn something every day :)
-
I use an F word in my Initialization string as well, so it doesn't always start at F6.
-
Thank you all-
( I sometimes use the f word for other things )
-
;D
Tweakie.
-
I use a macro in the initialization to set the state of the machine so it is always consistent on start-up.
Here is an example of one and of course one can modify to suite for your machine and desires.
APPENDIX “C” – INITIALIZATION MACRO
This is a macro that can be used to “reset” the lathe to a user preferred state. The macro should be reviewed and then modified for the users working preference. The macro must be placed in the proper turn profile folder and can be used as an Initialization String, called in a program or implemented via the MDI line.
To modify the macro use the VB script editor available in Mach. See Section 10.9 in the “Using Mach3 Turn Manual” for additional info on macros.
This is the macro:
' ( M1111.M1S Macro )
' ( Needs to be installed in C:\Mach3\Macros\Mach3Turn Folder)
' ( Basic Default Location or as needed )
' ( Change it as you need to )
' ( For MM Units Replace G20 with G21 )
' ( For CV Mode Replace G61 with G64 )
Code "G18" ' Set X,Z Plane
Code "G20" ' Set INCH Units Mode
Code "G40" ' Cancel Cutter Radius Comp.
Code "G49" ' Cancel Tool Length Offset
Code "G50" ' Re-Set All Scale Factors To 1.0
Code "G61" ' Set Exact Stop Mode
Code "G69" ' Cancel G68 Rotate Coordinate System
Code "G80" ' Cancel Canned Cycle Mode
Code "G90" ' Set ABS Mode
Code "G91.1" ' Set IJ's INC Mode
Code "G94" ' Set Feed Per Minute Mode
Code "M30" ' Program End and Rewind G-Code
RICH