587,362 active members*
3,616 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2014
    Posts
    106

    User interface signals Macro

    Hi Everybody,

    I have a question about Macro Programming. I have no background in this but an familiar with the commands and variables. So how would I continuously monitor a user input say #1000. So I am watching this user input that is wired to a pressure switch. When this input changes state the #1000 will change from 0 to 1. Then I want the current running CNC program to stop, Jump to another program to move Z to home, stop the spindle and put machine in safe position then Trigger an Estop through probably an M- Code at the end of the safe program.

    What I don't understand is can you write macro commands within normal part programs?

    Do Macro commands have to be within O9000 series programs? Or can I put parts programming then a few lines of Macro type programming then more part programming.

    How do I write a loop to do this? Monitoring the input continuously while the part program is running.

    I understand sequences like IF-THEN, IF-GOTO, WHILE-DO END.

    Thanks

  2. #2
    Join Date
    Feb 2006
    Posts
    1792

    Re: User interface signals Macro

    You can insert macro statements in any program at any position.
    Even the MDI program can have macro statements.

    We are here to answer specific questions. It is not possible to explain macro programming completely, starting from page-1.
    Therefore, please study the operators' manual or some textbook on macro programming. Discuss what you could not quite understand.

  3. #3
    Join Date
    Jul 2010
    Posts
    118

    Re: User interface signals Macro

    read more about INTERRUPTION TYPE CUSTOM MACRO for your application

  4. #4
    Join Date
    Jan 2014
    Posts
    106
    Quote Originally Posted by norbert.barnard View Post
    read more about INTERRUPTION TYPE CUSTOM MACRO for your application
    Norbert,
    Thanks for the reply. I did find the UINT for interrupt macro.

Similar Threads

  1. System Variables for Interface Signals
    By JMS4287 in forum Fanuc
    Replies: 15
    Last Post: 05-20-2022, 04:50 PM
  2. Replies: 1
    Last Post: 06-16-2015, 05:32 PM
  3. Replies: 2
    Last Post: 05-10-2014, 09:12 AM
  4. Has anyone done a touchy user interface for the lathe yet?
    By frontrange in forum LinuxCNC (formerly EMC2)
    Replies: 0
    Last Post: 04-09-2014, 01:00 AM
  5. Get Gooey: The new Haas user interface?
    By Donkey Hotey in forum Haas Mills
    Replies: 15
    Last Post: 04-09-2008, 04:47 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
  •