588,120 active members*
4,949 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2006
    Posts
    25

    Timeout for code to be executed

    hi everyone

    What im trying to do is set a timeout in my M6 script so that if i certain command is not executed within a certain time, the program is halted and ideally bring up an alarm.

    an example scenario would be during a tool change. Say the carousel gets jammed and doesnt reach the spindle within 10 seconds (which would be detected by a limit switch on the carousel slide), then the toolchange procedure would be halted and
    the machine stopped, an alarm condition activated for an operator to attend to the jam.

    The timer/timeout is what im struggling with

    thanks in advance

  2. #2
    Join Date
    Aug 2023
    Posts
    6
    Hi impi,
    Just have a look at this users M6 script https://github.com/Klaus-Michael/PlanetCNC_KMS_Stuff/tree/main/KMS-DIY-CNC/Scripts
    I think you will find a lot about what you need. M2 aborting several checks. And gcode like G9 or pause...

  3. #3
    Join Date
    Dec 2006
    Posts
    25

    Re: Timeout for code to be executed

    Thank you, will take a look

Similar Threads

  1. IF function executed thru O6001
    By JBMachad in forum Fanuc
    Replies: 0
    Last Post: 06-13-2023, 02:46 PM
  2. Edgecam PDI Problem (plugin is executed twice)
    By yangkaidi in forum EdgeCam
    Replies: 6
    Last Post: 09-13-2022, 02:01 AM
  3. TNGv2 Comments being executed
    By theRat in forum PlanetCNC
    Replies: 1
    Last Post: 02-26-2020, 10:31 AM
  4. Replies: 6
    Last Post: 03-15-2015, 03:11 AM
  5. Realtime timeout!
    By matthew6060 in forum Cincinnati CNC
    Replies: 4
    Last Post: 02-22-2009, 06:33 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
  •