Hello Guest it is March 28, 2024, 06:32:12 PM

Author Topic: speed setting with setup string  (Read 4573 times)

0 Members and 1 Guest are viewing this topic.

speed setting with setup string
« 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
think of the trees-- use both sides of the computer paper

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: speed setting with setup string
« Reply #1 on: October 01, 2016, 11:36:56 AM »
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. :)
Re: speed setting with setup string
« Reply #2 on: October 02, 2016, 05:32:21 AM »
Thanks Dave--

Can anyone comment on whether the S word is recognised in the initialization string ?

This may be what I am missing?
fred
think of the trees-- use both sides of the computer paper
Re: speed setting with setup string
« Reply #3 on: October 02, 2016, 06:47:10 AM »
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 

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: speed setting with setup string
« Reply #4 on: October 02, 2016, 07:07:10 AM »
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.
PEACE

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: speed setting with setup string
« Reply #5 on: October 02, 2016, 07:09:56 AM »
Nice, learn something every day :)

Offline ger21

*
  • *
  •  6,295 6,295
    • View Profile
    • The CNC Woodworker
Re: speed setting with setup string
« Reply #6 on: October 02, 2016, 07:40:57 AM »
I use an F word in my Initialization string as well, so it doesn't always start at F6.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: speed setting with setup string
« Reply #7 on: October 02, 2016, 07:45:49 AM »
Thank you all-

( I sometimes use the f word for other things )
think of the trees-- use both sides of the computer paper

Offline Tweakie.CNC

*
  • *
  •  9,196 9,196
  • Super Kitty
    • View Profile
Re: speed setting with setup string
« Reply #8 on: October 02, 2016, 08:11:21 AM »
 ;D

Tweakie.
PEACE

Offline RICH

*
  • *
  •  7,427 7,427
    • View Profile
Re: speed setting with setup string
« Reply #9 on: October 02, 2016, 10:21:17 AM »
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