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

 !*******************************************************************
 ! 
 ! Frame module for the Discrete Application
 !
 ! ----------------
 ! $Revision: 1.1 $ 
 ! ----------------
 ! Copyright (c) ABB Robotics Products AB 1996.  All rights reserved
 !
 ! Module name ..........: XX_TOOL - Application tool definitions
 !
 ! Application name .....: XX
 ! Application number ...: 1
 !
 ! Number of processes ..: 2
 ! Name of process 1 ....: XX_PROCESS1
 ! Name of process 2 ....: XX_PROCESS2
 !
 
 !
 ! data definitions
 !
  
 ! User defined data
 ! Definition of the procdata
 RECORD XXprocdata
   string XX_string;
 ENDRECORD
 
 ! Definition of the tooldata
 ! Tooldata contains the event times for the three time
 ! event hooks. The unit for the event times is second.
 RECORD XXtooldata
   num time_event1;
   num time_event2;
   num time_event3;
 ENDRECORD
 
 ! Definition of the intdata
 RECORD XXintdata
   daintdata internal;
 ENDRECORD

 ! Application descriptor
 VAR dadescapp XX_app_desc;
 
 ! Process descriptors
 VAR dadescprc XX_prc_desc{2};
 
 ! Application name
 CONST string XX_app_name := "XX";
 
 ! Process names
 CONST string XX_prc_name{2} := ["XX_PROCESS1", "XX_PROCESS2"];
 
 ! Process numbers
 CONST num XX_prc_no{2} := [1, 2];
 
 ! Number of processes in application XX
 CONST num XX_NO_OF_PROC := 2;

 ! Allocate user defined objects
 ! PROCDATA
 PERS XXprocdata XX_prc_data{2} := [["XX"], ["XX"]];
				      
 ! TOOLDATA
 PERS XXtooldata XX_tool_data{2} := [[0.2, 0.1, 0.05],
 				     [0.2, 0.1, 0.05]];
				      
 ! INTDATA
 PERS XXintdata XX_int_data{2} := [[[5, TRUE, TRUE, 1, 1, 0, 0,""]],
 				   [[3, TRUE, TRUE, 1, 1, 0, 0,""]]];

 !User data

ENDMODULE
