1
General Mach Discussion / Set G01 feedrate from a macro...
« on: April 23, 2021, 06:48:06 PM »
Hello all,
It's been a long time. I hope everyone is well. I've got a question regarding setting feedrates (as I'm sure you gathered from the subject).
Here's what I've got going on:
I've got a Visual Studio program managing a database of feeds and speeds based on material selection.
From Mach3, you select the material you are cutting and the feedrate is served from the database (no problem here).
Let's paint a picture of what I'm trying to do:
-----------------------------------------
G Code example:
G00X0.Y0.
M03G04P0.5
G01X10.M801
Y10.
X0.
Y0.
M05
------------------------------------------
------------------------------------------
Here's what I've tried in the "M801.m1s" file:
Code ("F50.") <---- No dice, feed doesn't change
SetFeedRate(50 / 60) <---- No dice, feed doesn't change
SetOEMDRO(818, 50) <---- No dice, feed doesn't change
SetParam("FeedRate", 50) <---- Haven't tried this?
--------------------------------------------
Any thoughts on what I'm doing wrong? It's driving me nuts!
Thanks all,
Chris
It's been a long time. I hope everyone is well. I've got a question regarding setting feedrates (as I'm sure you gathered from the subject).
Here's what I've got going on:
I've got a Visual Studio program managing a database of feeds and speeds based on material selection.
From Mach3, you select the material you are cutting and the feedrate is served from the database (no problem here).
Let's paint a picture of what I'm trying to do:
-----------------------------------------
G Code example:
G00X0.Y0.
M03G04P0.5
G01X10.M801
Y10.
X0.
Y0.
M05
------------------------------------------
------------------------------------------
Here's what I've tried in the "M801.m1s" file:
Code ("F50.") <---- No dice, feed doesn't change
SetFeedRate(50 / 60) <---- No dice, feed doesn't change
SetOEMDRO(818, 50) <---- No dice, feed doesn't change
SetParam("FeedRate", 50) <---- Haven't tried this?
--------------------------------------------
Any thoughts on what I'm doing wrong? It's driving me nuts!
Thanks all,
Chris