News:

  • June 25, 2026, 01:21:24 PM

Login with username, password and session length

Author Topic: Unexpected behavior in AXSCRIPT when E-stop is reset  (Read 6923 times)

BRF_MAS

  • Newbie
  • *
  • Posts: 1
Unexpected behavior in AXSCRIPT when E-stop is reset
« on: January 30, 2023, 07:00:04 PM »
Hello, everyone-

We are stuck on a project with a logic issue and would greatly appreciate some guidance from the greater group.

Please see attached screenshot of the AXSCRIPT in question.

When step 7 is running and E-stop is set and reset, the script will continue executing step 7 through 10.  However, when step 10 is running and the E-stop is set and reset, the script starts back at step 1.

How do we ensure that the script continues to execute through step 10, rather than restart at step 1 after the E-stop is reset following a stop event?

Any thoughts would be greatly appreciated.

Thank you!

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6161
  • Yes Pinky, Do-more will control the world!
Re: Unexpected behavior in AXSCRIPT when E-stop is reset
« Reply #1 on: January 31, 2023, 10:21:15 AM »
It's not happening exactly the way you are thinking. When you drop the enable and re-enable, it always disables the axis and then restarts the box at step 1, but because your moves are absolute, it looks like it is picking up where it left off.

If you want to suspend the move and recontinued, consider using the .Suspend flag in the Axis structure. You don't need to change the enable state of the box, just set/clear .Suspend.

If you want a real ESTOP, you need to use the .MasterEnable flag in the Axis structure. This kills and faults the axis instantly. You will need to reconfig/rehome the axis following the fault, but that is a real ESTOP.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO