RobotStudio event

Error in Spotware module SWUSER.SYS


In RobotStudio and real robot
In robotware 5.13 and 5.14 the results were the same.

Error handling routine if user_recover = TRUE.
The error appears when I run a welding point without water:
SW_PREPARE_ERR

Error:
image

Declaration:
image

used in the same routine:image

Exclamation It is not clear
 where the error is.

My temporary solution wrong.
physical input signal.:
image
What is the correct solution.

See full module.
webwiz/3047/SWUSER.zip


alexsdm2011-09-26 21:28:23

Comments

  • Hello,

    If you don't already know the solution to this problem.
    You can add a proc call to the SwInitUserIO routine in the SwErrorRecover routine.
    That will solve the problem, the routine SwErrorRecover is no longer called from the weld task but from the robot task (T_ROB1) and the reference to the signals are lost, so a new init needs to be done.

    Example:

     

     PROC SwErrorRecover (num GunNum,
                         num ErrType,
                         string ErrText,
                        
    um CurrThickness,
                         INOUT num Status)

        VAR btnres answer;

     

        SwInitUserIO GunNum;

     

        TEST ErrType
            CASE SW_WELD_ERR:
              ...

     

     
    spotman
  • Thank you.That helps, and it's clear the behavior of RobotWare.But it should come as standard source.