585,705 active members*
4,130 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1

    Global Variables for Custom M Codes

    Using Centroid Acorn and CNCMill12

    I need a semi-persistent (holds value until controller shutdown) variable. I have a macro on the wireless MPG 'Macro2' button that prompts the user to enter a numeric value. I need to be able to call this value from a custom M code (M31) that will be called during NC programs.

    I've tried #101 type variables but those are only local and are discarded at end of macro run. I've also tried #9931 and #9420 (unused system parameters) but those give me a read only error and don't seem accessible from the macros.

    I've also tried using the diameter offset in library (my setup doesn't use them) via G10 D3 R8.0 but I don't know how to read this parameter in another program I can only set it (if someone knows how this would solve my problem).

    So my question is what is the best way to do this? Or what system parameters can I use that I can write to?

    Thanks

  2. #2
    Join Date
    Aug 2018
    Posts
    621

    Re: Global Variables for Custom M Codes

    Have you tried asking this question on the Centroid forum? I don't understand what you are trying to do, but I'm sure if you asked this question on their forum you will get a answer pretty quickly. Most of the users don't check cnc zone since the centroid forum is pretty dedicated and there's some very experienced users on there. Sorry I can't be more help to you I. I'm sure eventually someone will chime in on here but you will more than likely get a immediate response on the centroid forum.

Similar Threads

  1. help using custom M codes and M-FIN on haas
    By josh591 in forum Haas Mills
    Replies: 8
    Last Post: 08-26-2017, 02:40 PM
  2. CUSTOM M-CODES IN PATHPILOT
    By IMT in forum Tormach PathPilot™
    Replies: 2
    Last Post: 10-29-2016, 05:50 PM
  3. custom name variables
    By deadlykitten in forum Okuma
    Replies: 13
    Last Post: 07-19-2016, 08:24 PM
  4. Global variables
    By Normsthename in forum Solidworks
    Replies: 3
    Last Post: 03-18-2011, 07:21 PM
  5. Custom G codes in Custom G codes
    By stevo1 in forum Fanuc
    Replies: 7
    Last Post: 09-09-2008, 08:32 PM

Tags for this Thread

Posting Permissions

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