586,471 active members*
4,115 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2012
    Posts
    83

    Can you do a macro call (M) and pass a string somehow?

    Hi,

    I know you can use PQR variables or #variables, but is there a way to pass a string such as "HELLO" to a macro? Something similar to:

    M5001 "HELLO"

    or even

    M5001 ;"HELLO"

    if i could access this line in the script...

    Thanks,

    Alan

  2. #2
    Join Date
    Mar 2003
    Posts
    35538
    What do you want to do with the string?

    I think you can have the M5001 open a dialog box for text input. Would that work?
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

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

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

  3. #3
    Join Date
    Apr 2012
    Posts
    83
    Hi Gerry,

    I want to send a command string of some sort. Right now I have a macro like this:

    'Multipass Rectangle
    '#2000=X1; #2001=Y1; #2002=X2; #2003=Y2; #2004=Z1; #2005=Z2; #2006=ZPassDepth
    '#2007=ToolAdjustment (0 none, 1 inside, or 2 outside)
    '#1002=ZClear; #1003=PlungeRate; #1004=FeedRate; #1005=ToolDiam;

    #2000=1 #2001=2 #2002=4 #2003=1 #2004=0.0 #2005=-0.5 #2006=0.1 #2007=0 M5002

    But it would be nicer to have something more like this:

    M5002 "rect,(1,2),(4,1),(0,-0.5,0.1),inside"

    Thanks,

    Alan

  4. #4
    Join Date
    Mar 2003
    Posts
    35538
    But it would be nicer to have something more like this:

    M5002 "rect,(1,2),(4,1),(0,-0.5,0.1),inside"

    Thanks,
    Can't do that with Mach3.
    Gerry

    UCCNC 2017 Screenset
    http://www.thecncwoodworker.com/2017.html

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

    JointCAM - CNC Dovetails & Box Joints
    http://www.g-forcecnc.com/jointcam.html

    (Note: The opinions expressed in this post are my own and are not necessarily those of CNCzone and its management)

Similar Threads

  1. G65 macro call
    By ggborgen in forum Fanuc
    Replies: 19
    Last Post: 09-29-2014, 10:25 PM
  2. 18T dowload to pc no eob just long string
    By karlbushnell in forum Fanuc
    Replies: 6
    Last Post: 01-28-2011, 02:55 PM
  3. Zap String
    By Aplus in forum Bridgeport / Hardinge Mills
    Replies: 10
    Last Post: 11-04-2009, 05:01 AM
  4. +Newbie, CNC string winder build
    By brownebasses in forum CNC Machine Related Electronics
    Replies: 5
    Last Post: 11-21-2008, 07:38 PM
  5. 3 phase with idler and draw string only
    By gtslabs in forum CNC Machine Related Electronics
    Replies: 2
    Last Post: 06-19-2004, 10:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •