586,000 active members*
5,046 visitors online*
Register for free
Login
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2022
    Posts
    107

    Activate optional Pause in Expr.txt

    Is it possible to enable optional pause in expr.txt while gcode is running?

    I have a temperature sensor which should enable optional pause if it is getting too hot, so the gcode may stop at the next optional pause, which is set in gcode at certain positions.

    I have used the following code for e-stop on critical temperature:
    if(and(_sx_tool_temperature == 1 , and(_sx_hasError == 0 , GT(_hw_aux2, _sx_tool_temperature_critical))), exec(_sx_hasError = 1, cmd('Machine.Emergency_Stop'), msg('Temperaturwarnung Kritisch')));

    But I'd like to enable optional pause on lover value but don;t know how to write the part "cmd('Machine.Emergency_Stop')"... to enable optional pause instead.

  2. #2
    Join Date
    Mar 2017
    Posts
    1312

    Re: Activate optional Pause in Expr.txt

    Command name for optional pause is:
    Machine.Override.Pause_Optional

  3. #3
    Join Date
    Mar 2017
    Posts
    1312

    Re: Activate optional Pause in Expr.txt

    I've also made new parameter:
    _pause_optional
    so that setting this will be even easier. to set

  4. #4
    Join Date
    Jan 2022
    Posts
    107

    Re: Activate optional Pause in Expr.txt

    Thank you for _pause_optional

    With Machine.Override.Pause_Optional i was only able to togle the pause, but without knowing the actual state, that didn't make sens.
    But with new _pause_optional parameter that would be no problem.

    Looking forward for the next update.

Similar Threads

  1. [TNGv2] - Expr.txt
    By PlanetCNC in forum PlanetCNC
    Replies: 14
    Last Post: 05-29-2023, 06:20 PM
  2. TNGv2 Expr.txt usage
    By theRat in forum PlanetCNC
    Replies: 12
    Last Post: 08-07-2020, 10:57 AM
  3. Replies: 10
    Last Post: 06-14-2019, 05:22 PM
  4. How to activate the optional stop
    By dingo0722 in forum Haas Mills
    Replies: 4
    Last Post: 01-25-2011, 04:16 PM
  5. hardeware pause pause detected?????
    By Conquest1224 in forum Commercial CNC Wood Routers
    Replies: 1
    Last Post: 05-08-2007, 04:06 AM

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
  •