Need Help! Testing a Mach3 macro


Results 1 to 6 of 6

Thread: Testing a Mach3 macro

  1. #1
    Member
    Join Date
    Feb 2016
    Location
    United Kingdom
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Testing a Mach3 macro

    I wish to test any macro that I have written on my [offline] office machine
    Mach3 licenced but no physical machine attached
    If I issue a G31 probe then the counters start to roll
    I would like to press a key sequence or whatever to simulate the probe touch / hardware interrupt
    Has anyone done this, how is it possible?
    How do you test a G31 in a macro when it is offline
    Thanks for any advice

    Similar Threads:


  2. #2
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Testing a Mach3 macro

    If you are using the parallel port, and have the driver installed, click the emulate button and assign the keystroke in ports and pins, input pins, probe input.

    This only works with the parallel port driver.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

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

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


  3. #3
    Member
    Join Date
    Feb 2016
    Location
    United Kingdom
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Testing a Mach3 macro

    Quote Originally Posted by JW149 View Post
    ger21 If you are using the parallel port, and have the driver installed, click the emulate button and assign the keystroke in ports and pins, input pins, probe input.
    This only works with the parallel port driver.
    Thanks for comment
    My office machine has neither parallel port nor driver but my workshop machine has both.
    But then I can already test my scripts in the workshop using the real CNC
    If I put the emulated key in the office pc ports/pins then I see that the digitize light shows when it is pressed
    This behaviour ceases when I run the VBscript editor, shame
    Is my only option to buy another breakout board and add printer parallel port to my office machine and reinstall Mach3?



  4. #4
    Member ger21's Avatar
    Join Date
    Mar 2003
    Location
    Shelby Township
    Posts
    35538
    Downloads
    1
    Uploads
    0

    Default Re: Testing a Mach3 macro

    If your office PC has a 32 bit version of Windows 7 or older, you just need to install the Mach3 parallel port driver.

    If it's a 64 bit OS, then there's no way to make it work.

    Gerry

    UCCNC 2017 Screenset
    [URL]http://www.thecncwoodworker.com/2017.html[/URL]

    Mach3 2010 Screenset
    [URL]http://www.thecncwoodworker.com/2010.html[/URL]

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

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


  5. #5
    Member
    Join Date
    Feb 2016
    Location
    United Kingdom
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Testing a Mach3 macro

    Thanks for that. Also I do have WIn7/64 but I do also have the inbuilt WinXP/32 virtual machine activated, so that seems a good route to follow. I will install Mach3+driver in the WinXP/32 VM and retest.



  6. #6
    Member
    Join Date
    Feb 2016
    Location
    United Kingdom
    Posts
    6
    Downloads
    0
    Uploads
    0

    Default Re: Testing a Mach3 macro

    Following my previous comment
    Installation of Mach3 on the WInXP virtual machine fails with critical error in kernel32.dll
    I see that the VM dll is different to the genuine XP so I substitute that, still has critical failure
    So Mach3 will not install on a VM it seems
    A Mach3 install exists for WIn7 so I tried that and it works, and reports that it has installed the driver, and drivertest.exe reports "system excellent"
    Starting this version reports "driver installed" but reset maintains that "limit switch triggered"
    In posts+pins I change input-pins XYZ-home from X to 'tick' but did not solve problem (no idea what I was doing really, just a guess)
    Are 'limit switches' and 'home' the same thing?
    In diagnostics the pin1 lights are: off on on on on off on, also m1 limit m2 home and m3home are lit
    If I put XYZ-home back to 'X' then in diagnostics m1-limit and m1-home are lit, others are off
    The 'digitize' light comes on if I press the simulated key for probe touch
    If you have any more comment I would like to hear because I have no plan B, thanks for your input so far



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Testing a Mach3 macro

Testing a Mach3 macro