Inadmissible instruction with interrupt

  • I am trying to interrupt my robotarm when it moves over the z axis however it keeps stuck at the interrupt command and it gives me the error message: Inadmissible instruction. below I have added my code. Is their anyone with some good advice on what to adjust, thank you in advance.


  • Where is TOOLM() DECL'd? Is it within the calling scope of your main routine? Show the TOOLM() code, the inadmissible instruction might be inside it.


    "KRC2" is vague. KRC2s had many different KSS versions.

  • Inside interrupts not everything is allowed, that is allowed outside of it in normal program sequences. E.g. you can not use Inline forms inside interrupts. So I would look for whats inside your interrupt routine.


    Fubini

  • thankyou for the feedback, i have added a a true statement to the $out[1] inside the toolm() however i still get the same error message....:loudly_crying_face:, also when i fully remove the command the error message still apprears

    Edited once, last by martenH ().

Advertising from our partners