%%%
  VERSION: 1
  LANGUAGE: ENGLISH
%%%
MODULE XX_PROC (SYSMODULE)

 !*******************************************************************
 ! 
 ! Frame module for the Discrete Application
 !
 ! ----------------
 ! $Revision: 1.1 $ 
 ! ----------------
 ! Copyright (c) ABB Robotics Products AB 1996.  All rights reserved
 !
 ! Module name ..........: XX_PROC - Application process definitions
 !				      and RAPID user hooks.
 !
 ! Application name .....: XX
 ! Application number ...: 1
 !
 ! Number of processes ..........:
 ! Name of process 1 ............: XX_PROCESS1
 ! Name of process 2 ............: XX_PROCESS2
 ! Process number of process 1 ..: 1
 ! Process number of process 2 ..: 2
 !
 
 !*******************************************************************
 !
 ! DaPrepPrcXX - Discrete application prepare process of application
 !	         XX.
 !
 ! DESCRIPTION:
 !   RAPID user sequence hook, will be called at the start of the 
 !   motions.
 !
 PROC DaPrepPrcXX(VAR dadescprc ProcDesc,
                   PERS num Status,
		   num ProcNo,
		   bool Par1,
		   string Par2)

   Status := DAOK;

 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaTmEvt1XX - Discrete application time event 1 of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user sequence hook, will be called at the first time event
 !   of the  motion.
 !
 PROC DaTmEvt1XX(VAR dadescprc ProcDesc,
                  PERS num Status,
		  num ProcNo,
		  bool Par1,
		  string Par2)

   Status := DAOK;

 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaTmEvt2XX - Discrete application time event 2 of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user sequence hook, will be called at the second time event
 !   of the motion.
 !
 PROC DaTmEvt2XX(VAR dadescprc ProcDesc,
                  PERS num Status,
		  num ProcNo,
		  bool Par1,
		  string Par2)

   Status := DAOK;
   		   
 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaTmEvt3XX - Discrete application time event 3 of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user sequence hook, will be called at the third time event
 !   of the motion.
 !
 PROC DaTmEvt3XX(VAR dadescprc ProcDesc,
                  PERS num Status,
		  num ProcNo,
		  bool Par1,
		  string Par2)


   Status := DAOK;
		   
 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaStartXX - Discrete application start of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user hook, will be called before the start signal is set
 !   by the kernel. This event is either executed at inposition 
 !   (default) or immediately after the third time event.
 !
 PROC DaStartXX(VAR dadescprc ProcDesc,
                 PERS num Status,
		 num ProcNo,
		 bool Par1,
		 string Par2)

   Status := DAOK;
 
 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaEndPrcXX - Discrete application end of application XX.
 !
 ! DESCRIPTION:
 !   RAPID users hook, will be called when receiving the process ready
 !   signal. This indicates a successful end of the process and should
 !   be the last process event hook.
 !
 PROC DaEndPrcXX(VAR dadescprc ProcDesc,
                  PERS num Status,
		  num ProcNo,
		  bool Par1,
		  string Par2)

   Status := DAOK;
  
 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaExtStopXX - Discrete application stop of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user hook, will be called when receiving the process 
 !   external stop signal.
 !
 PROC DaExtStopXX(VAR dadescprc ProcDesc,
                   PERS num Status,
		   num ProcNo,
		   bool Par1,
		   string Par2)

   Status := DAOK;
 
 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaTimoutXX - Discrete application timeout of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user hook, will be called when the process timeout has
 !   passed without receiving neither the ready signal not the stop
 !   signal.
 ! 
 PROC DaTimoutXX(VAR dadescprc ProcDesc,
                   PERS num Status,
		   num ProcNo,
		   bool Par1,
		   string Par2)

   Status := DAOK;
		   
 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaHoldPrcXX - Discrete application hold of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user hook, will be called when the process hold signal is
 !   set. Trigger on positive edge.
 !
 PROC DaHoldPrcXX(VAR dadescprc ProcDesc,
                   PERS num Status,
		   num ProcNo,
		   bool Par1,
		   string Par2)

   Status := DAOK;

 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaRlsPrcXX - Discrete application release of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user hook, will be called when the process hold signal is
 !   reset after a hold. Trigger on negative edge.
 !
 PROC DaRlsPrcXX(VAR dadescprc ProcDesc,
                  PERS num Status,
		  num ProcNo,
		  bool Par1,
		  string Par2)

   Status := DAOK;
		  
 ENDPROC
 
 
 !*******************************************************************
 !
 ! DaAbortPrcXX - Discrete application abort of application XX.
 !
 ! DESCRIPTION:
 !   RAPID user hook, will be called when the process abort signal is 
 !   set. Trigger on positive edge.
 !
 PROC DaAbortPrcXX(VAR dadescprc ProcDesc,
                 PERS num Status,
		 num ProcNo,
		 bool Par1,
		 string Par2)

   Status := DAOK;
		 
 ENDPROC

ENDMODULE
