585,762 active members*
4,355 visitors online*
Register for free
Login
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2005
    Posts
    34

    Running under Mach3

    If I understand correctly, the array persist.UserData[] is used to pass data to KMotion about Mach3. Amoung the data is button presses, or at least the HOME buttons.

    Again, if I understand correctly persist.UserData[5] contains data about the press of the HOME buttons, with bit 0 representing the X axis, bit 1 representing the Y axis and bit 2 representing tne Z axis.

    I have a couple of questions about this process.

    1. Is there a list of all bits/bytes in persist.UserData[] that represent data from Maxh3, the list showing the bit/byte location and the meaning.

    2. How is a bit within persist.UserData[] reset. IOWs, if byte 5, bit 0 is set to indicate that the X Home button has been presed, how is it reset?

  2. #2
    Join Date
    May 2006
    Posts
    4045

    Re: Running under Mach3

    Hi netboss,

    The persist.UserData[5] variable isn't directly related to key presses. Whenever Mach3 decides homing should be performed for whatever reason it sends a message to the plugin which includes what it calls a "flags" variable which it sets to specify which axis or axes should be homed. Our plugin then places the "flags" value into any KFLOP persist.UserData[] variable of your choice and invokes any C Program of your choice into any KFLOP Thread of your choice. The C Program should read the variable to decide which axes it should home. You may specify the Variable, Program, and Thread to be used when homing in the Mach3-Dynomotion Plugin Configuration Screen.

    The persist.UserData[] variables are actually 32-bit integers not bytes.

    There isn't any need to reset the variables. They will be overwritten with new data for any future purpose.

    HTH
    Regards
    TK
    http://dynomotion.com

Similar Threads

  1. Running VFD under Mach3
    By jlmccuan in forum Shopmaster/Shoptask
    Replies: 8
    Last Post: 09-13-2014, 07:05 PM
  2. Mach3 running only 75% of feedrate
    By DirtBound in forum Machines running Mach Software
    Replies: 3
    Last Post: 06-08-2013, 10:38 AM
  3. Mach3 running on XP or Win2000. Which is better
    By JC50 in forum Mach Software (ArtSoft software)
    Replies: 1
    Last Post: 03-10-2011, 11:00 PM
  4. Running Mach3 on a little Acer One
    By felixthecat728 in forum Machines running Mach Software
    Replies: 7
    Last Post: 01-09-2010, 05:57 PM
  5. running mach3
    By woodman08 in forum Machines running Mach Software
    Replies: 4
    Last Post: 02-26-2008, 05:21 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
  •