Sei sulla pagina 1di 3

C Skeleton for USER 508 subroutine

C=======================================================================

C See the Technical 600 Section of the doc for a complete

C description of Argument List and COMMON Block variables.

C Use command file bldusr (BLDUSR.BAT on PC) to build your user

C subroutine program. Instructions are in the command file.

C Note that NTRY=6,7,8 occur only if IOP4=1. See M508V1 doc.

C=======================================================================

SUBROUTINE USR508 ( NTRY, IDH )

CHARACTER ADH*10

COMMON / EXTRA1 / ADH

COMMON / SYS / XDUM(100), IOP(40), PAR(40), XDUM2(104),

1 ICR, IPR, LCR, LPR, XDUM3(5), IOLEV, XDUM4(89)

DIMENSION IPCF(512)

COMMON / F10 / PCF(512), XDUMD(142)

EQUIVALENCE ( PCF(1), IPCF(1) )

COMMON / ITM / ITM(3,99), NIC(5,40), ITEMS, NICNO,

1 LWRD(99), NBIT(99), LBIT(99),

2 VMIN(99), CODE(99), ROND(99),

3 VMAX(99), MAXV(99), RDAT(99),


4 IDAT(99)

COMMON / USR / K09GET, L09GET, K09PUT, L09, XDUM0(12)

C=======================================================================

GOTO ( 100, 200, 300, 400, 500, 600, 700, 800 ), NTRY

C..................................................... NTRY=1 (Init)

C here once at the beginning of the run

100 CONTINUE

GOTO 900

C..................................................... NTRY=2 (1st AI)

C here after data for each composite is read

200 CONTINUE

GOTO 900

C..................................................... NTRY=3 (1st SRV)

C here after data for the last composite

C in the current survey is read.

300 CONTINUE

GOTO 900

C..................................................... NTRY=4 (1st DH)

C here after data for the last composite

C in the current drillhole is read.

400 CONTINUE

GOTO 900
C

C..................................................... NTRY=5 (END)

C here once at the end of the run

500 CONTINUE

GOTO 900

C..................................................... NTRY=6 (2nd AI)

C here after data for each composite is read (IOP4=1)

600 CONTINUE

GOTO 900

C..................................................... NTRY=7 (2nd SRV)

C here after last composite in the current

C survey interval is read (IOP4=1)

700 CONTINUE

GOTO 900

C..................................................... NTRY=8 (2nd DH)

C here after last composite in the current

C drillhole is read (IOP4=1)

800 CONTINUE

GOTO 900

C..................................................... Return

900 CONTINUE

RETURN

END

Potrebbero piacerti anche