585,974 active members*
4,219 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2010
    Posts
    0

    Cool Start/Resume button

    I have built two step motor type machines. Everything works well but i have to use either keyboard or mouse in order to run the program. I have placed the following lines in the custom .HAL file:

    net program-run => halui.program.run
    net program-run <= parport.0.pin-10-in

    Grounding pin 10 with a pusbutton produces the following error message:

    "cant do that (EMC-TASK-PLAN-RUN) in manual mode"

    How can I make this work? Also, can I use the same switch for >program-resume< ?

    Thanks for any information or suggestions!
    Best,
    Boje

  2. #2
    Join Date
    Nov 2005
    Posts
    496
    I believe you must be in auto mode before run and stop will work.
    look here:
    halui

  3. #3
    Join Date
    Nov 2010
    Posts
    0

    Question Stop/Resume Button

    Thank you for your suggestion. I still dont know how to put the macine in auto mode, exept clicking on the arrow or use the keyboard >R<.
    Could you give me an example line to put into HAL to do this. I dont have any IN pins left. Thank you..

  4. #4
    Join Date
    Nov 2005
    Posts
    496
    I would think connect your in pin to halui.auto-mode and to a one-shot timer and the one shot timer to program run.

    so the input sets the mode to auto and starts the timer.
    then the timer times out and sets program run.

Similar Threads

  1. MACH 3 cycle start button
    By Rick7702 in forum Mach Mill
    Replies: 26
    Last Post: 05-21-2013, 11:49 PM
  2. External Cycle Start button
    By Jerry Shorter in forum LinuxCNC (formerly EMC2)
    Replies: 2
    Last Post: 06-07-2010, 07:59 PM
  3. Start macro with input button
    By geahr in forum Mach Software (ArtSoft software)
    Replies: 4
    Last Post: 09-17-2009, 03:52 PM
  4. Can spindle start when you hit the Z-axis button?
    By moldcore in forum Milltronics
    Replies: 2
    Last Post: 04-26-2009, 02:14 PM
  5. Cycle Start button
    By kaleem1 in forum Mach Software (ArtSoft software)
    Replies: 7
    Last Post: 12-24-2005, 09:05 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
  •