/**********************************************************************/
/*                                                                    */
/*  File name : appli.H                                               */
/*  Date      : 08/07/98 15:57:14                                     */
/*  ----------------------------------------------------------------  */
/*  ISaGRAF project name : blinkseq                                   */
/*                                                                    */
/**********************************************************************/

/* Global variables of the various programs */

/* Programs */

#define _SCC_PROGQLD	0X0001
#define _SCC_PROGIL	0X0002
#define _SCC_PROGST	0X0003
#define _SCC_PROGFBD	0X0004

/* Booleans */

#define _SCC_QLD0	0X0001
#define _SCC_QLD1	0X0002
#define _SCC_QLD2	0X0003
#define _SCC_QLD3	0X0004
#define _SCC_IO0000_04	0X0005
#define _SCC_IO0000_05	0X0006
#define _SCC_IO0000_06	0X0007
#define _SCC_IO0000_07	0X0008
#define _SCC_IL0	0X0009
#define _SCC_IL1	0X000A
#define _SCC_IL2	0X000B
#define _SCC_IL3	0X000C
#define _SCC_IO0001_04	0X000D
#define _SCC_IO0001_05	0X000E
#define _SCC_IO0001_06	0X000F
#define _SCC_IO0001_07	0X0010
#define _SCC_ST0	0X0011
#define _SCC_ST1	0X0012
#define _SCC_ST2	0X0013
#define _SCC_ST3	0X0014
#define _SCC_IO0002_04	0X0015
#define _SCC_IO0002_05	0X0016
#define _SCC_IO0002_06	0X0017
#define _SCC_IO0002_07	0X0018
#define _SCC_FBD0	0X0019
#define _SCC_FBD1	0X001A
#define _SCC_FBD2	0X001B
#define _SCC_FBD3	0X001C
#define _SCC_IO0003_04	0X001D
#define _SCC_IO0003_05	0X001E
#define _SCC_IO0003_06	0X001F
#define _SCC_IO0003_07	0X0020
#define _SCC_CBOO00000001	0X0028
#define _SCC_CBOO00000000	0X0029
#define _SCC_TMPB1	0X002F
#define _SCC_TMPB4	0X0039
#define _SCC_TMPB3	0X003A
#define _SCC_TMPB2	0X003B
#define _SCC_TMA020000	0X003E
#define _SCC_TMA020001	0X003F
#define _SCC_TMA020002	0X0040
#define _SCC_TMA020003	0X0041
#define _SCC_TMA020004	0X0042
#define _SCC_TMA020005	0X0043
#define _SCC_TMA020006	0X0044
#define _SCC_TMA020007	0X0045
#define _SCC_TMA020008	0X0046
#define _SCC_TMA020009	0X0047
#define _SCC_TMA02000A	0X0048
#define _SCC_TMA02000B	0X0049
#define _SCC_TMA02000C	0X004A
#define _SCC_TMA02000D	0X004B
#define _SCC_TMA02000E	0X004C
#define _SCC_TMA02000F	0X004D
#define _SCC_TMA020010	0X004E
#define _SCC_TMA020011	0X004F
#define _SCC_TMA020012	0X0050
#define _SCC_TMA020013	0X0051
#define _SCC_TMA020014	0X0052
#define _SCC_TMA020015	0X0053
#define _SCC_TMA020016	0X0054
#define _SCC_TMA020017	0X0055
#define _SCC_TMA020018	0X0056
#define _SCC_TMA020019	0X0057
#define _SCC_TMA02001A	0X0058
#define _SCC_TMA02001B	0X0059
#define _SCC_TMA02001C	0X005A
#define _SCC_TMA02001D	0X005B
#define _SCC_TMA02001E	0X005C
#define _SCC_TMA02001F	0X005D
#define _SCC_TMA020020	0X005E
#define _SCC_TMA020021	0X005F
#define _SCC_TMA020022	0X0060
#define _SCC_TMA020023	0X0061
#define _SCC_TMA020024	0X0062
#define _SCC_TMA020025	0X0063
#define _SCC_TMA020026	0X0064
#define _SCC_TMA020027	0X0065
#define _SCC_TMA020028	0X0066
#define _SCC_TMA020029	0X0067
#define _SCC_TMA02002A	0X0068
#define _SCC_TMA02002B	0X0069
#define _SCC_TMA02002C	0X006A
#define _SCC_TMA02002D	0X006B
#define _SCC_TMA02002E	0X006C
#define _SCC_TMA02002F	0X006D
#define _SCC_TMA020030	0X006E
#define _SCC_TMA020031	0X006F
#define _SCC_TMA020032	0X0070
#define _SCC_TMA020033	0X0071
#define _SCC_TMA020034	0X0072
#define _SCC_TMA020035	0X0073
#define _SCC_TMA020036	0X0074
#define _SCC_TMA020037	0X0075
#define _SCC_TMA020038	0X0076
#define _SCC_TMA020039	0X0077
#define _SCC_TMA02003A	0X0078
#define _SCC_TMA02003B	0X0079
#define _SCC_TMA02003C	0X007A
#define _SCC_TMA02003D	0X007B
#define _SCC_TMA02003E	0X007C
#define _SCC_TMA02003F	0X007D
#define _SCC_TMA020040	0X007E
#define _SCC_TMA020041	0X007F
#define _SCC_TMA020042	0X0080
#define _SCC_TMA020043	0X0081
#define _SCC_TMA020044	0X0082
#define _SCC_TMA020045	0X0083
#define _SCC_TMA020046	0X0084
#define _SCC_TMA020047	0X0085
#define _SCC_TMA020048	0X0086
#define _SCC_TMA020049	0X0087
#define _SCC_TMA02004A	0X0088
#define _SCC_TMA02004B	0X0089
#define _SCC_TMA02004C	0X008A
#define _SCC_TMA02004D	0X008B
#define _SCC_TMA02004E	0X008C
#define _SCC_TMA02004F	0X008D
#define _SCC_TMA020050	0X008E
#define _SCC_TMA020051	0X008F
#define _SCC_TMA020052	0X0090
#define _SCC_TMA020053	0X0091
#define _SCC_TMA020054	0X0092
#define _SCC_TMA020055	0X0093
#define _SCC_TMA020056	0X0094
#define _SCC_TMA020057	0X0095
#define _SCC_TMA020058	0X0096
#define _SCC_TMA020059	0X0097
#define _SCC_TMA02005A	0X0098
#define _SCC_TMA02005B	0X0099
#define _SCC_TMA02005C	0X009A
#define _SCC_TMA02005D	0X009B
#define _SCC_TMA02005E	0X009C
#define _SCC_TMA02005F	0X009D
#define _SCC_TMA020060	0X009E
#define _SCC_TMA020061	0X009F
#define _SCC_TMA020062	0X00A0
#define _SCC_TMA020063	0X00A1
#define _SCC_TMA020064	0X00A2
#define _SCC_TMA020065	0X00A3
#define _SCC_TMA020066	0X00A4
#define _SCC_TMA020067	0X00A5
#define _SCC_TMA020068	0X00A6
#define _SCC_TMA020069	0X00A7

/* Analogs */

#define _SCC_CANA00000002	0X0005
#define _SCC_CANA00000003	0X0006
#define _SCC_CANA00000001	0X0007
#define _SCC_CANA00000004	0X0008
#define _SCC_CANA00000000	0X0009
#define _SCC_FBL_RET	0X000A
#define _SCC_TMPI2	0X000B
#define _SCC_TMPR1	0X000C
#define _SCC_TMPI1	0X000D
#define _SCC_TMA030000	0X000E
#define _SCC_TMA030001	0X000F
#define _SCC_TMA030002	0X0010
#define _SCC_TMA030003	0X0011
#define _SCC_TMA030004	0X0012
#define _SCC_TMA030005	0X0013
#define _SCC_TMA030006	0X0014
#define _SCC_TMA030007	0X0015
#define _SCC_TMA030008	0X0016
#define _SCC_TMA030009	0X0017
#define _SCC_TMA03000A	0X0018
#define _SCC_TMA03000B	0X0019
#define _SCC_TMA03000C	0X001A
#define _SCC_TMA03000D	0X001B
#define _SCC_TMA03000E	0X001C
#define _SCC_TMA03000F	0X001D
#define _SCC_TMA030010	0X001E
#define _SCC_TMA030011	0X001F
#define _SCC_TMA030012	0X0020
#define _SCC_TMA030013	0X0021
#define _SCC_TMA030014	0X0022
#define _SCC_TMA030015	0X0023
#define _SCC_TMA030016	0X0024
#define _SCC_TMA030017	0X0025
#define _SCC_TMA030018	0X0026
#define _SCC_TMA030019	0X0027
#define _SCC_TMA03001A	0X0028
#define _SCC_TMA03001B	0X0029
#define _SCC_TMA03001C	0X002A
#define _SCC_TMA03001D	0X002B
#define _SCC_TMA03001E	0X002C
#define _SCC_TMA03001F	0X002D
#define _SCC_TMA030020	0X002E
#define _SCC_TMA030021	0X002F
#define _SCC_TMA030022	0X0030
#define _SCC_TMA030023	0X0031
#define _SCC_TMA030024	0X0032
#define _SCC_TMA030025	0X0033
#define _SCC_TMA030026	0X0034
#define _SCC_TMA030027	0X0035
#define _SCC_TMA030028	0X0036
#define _SCC_TMA030029	0X0037
#define _SCC_TMA03002A	0X0038
#define _SCC_TMA03002B	0X0039
#define _SCC_TMA03002C	0X003A
#define _SCC_TMA03002D	0X003B
#define _SCC_TMA03002E	0X003C
#define _SCC_TMA03002F	0X003D
#define _SCC_TMA030030	0X003E
#define _SCC_TMA030031	0X003F
#define _SCC_TMA030032	0X0040
#define _SCC_TMA030033	0X0041
#define _SCC_TMA030034	0X0042
#define _SCC_TMA030035	0X0043
#define _SCC_TMA030036	0X0044
#define _SCC_TMA030037	0X0045

/* Timers */

#define _SCC_CTMR000003E8	0X0002
#define _SCC_TMPT1	0X0003
#define _SCC_TMA050000	0X0004
#define _SCC_TMA050001	0X0005
#define _SCC_TMA050002	0X0006
#define _SCC_TMA050003	0X0007
#define _SCC_TMA050004	0X0008
#define _SCC_TMA050005	0X0009
#define _SCC_TMA050006	0X000A
#define _SCC_TMA050007	0X000B
#define _SCC_TMA050008	0X000C
#define _SCC_TMA050009	0X000D
#define _SCC_TMA05000A	0X000E
#define _SCC_TMA05000B	0X000F
#define _SCC_TMA05000C	0X0010
#define _SCC_TMA05000D	0X0011

/* Messages */

#define _SCC_TMPM1	0X0001
#define _SCC_TMA060000	0X0002
#define _SCC_TMA060001	0X0003
#define _SCC_TMA060002	0X0004
#define _SCC_TMA060003	0X0005
#define _SCC_TMA060004	0X0006
#define _SCC_TMA060005	0X0007
#define _SCC_TMA060006	0X0008
#define _SCC_TMA060007	0X0009
#define _SCC_TMA060008	0X000A
#define _SCC_TMA060009	0X000B
#define _SCC_TMA06000A	0X000C
#define _SCC_TMA06000B	0X000D
#define _SCC_TMA06000C	0X000E
#define _SCC_TMA06000D	0X000F
#define _SCC_TMA06000E	0X0010

/* Function blocks */

#define _SCC_STD_R_TRIG	0X0004

#define _SCC_STD_BLINK	0X0013
