Professional Documents
Culture Documents
PROGRAM SUMMARY The blasthole data that is loaded should have the following
variables present:
This program is used to load standard blasthole data into File 9.
The blasthole data is usually created by the BHSMERG utility BHS# blasthole identifier. Must be no more than 4
or by program M507BHS. characters. System defined format is A4.
Other data such as grades and geology may be loaded for each
blasthole. If there are fields that will not be stored, they must be
skipped over with an nX format specification on the FMT2 line
INPUT: CALCS: in the run file.
- PCF - Load blastholes into File 9
- ASCII file of and 12 File 12 is loaded at the same time as File 9 and the minimum
blastholes (optional) - OR - and maximum coordinates of the shot are stored in File 12. This
-Update existing blasthole information will be appended to any existing data in File 12
data
unless IOP2=1. In this case, File 12 will be overwritten and any
existing data lost.
Input data that is less than the minimum value for the item will
be stored by the program as missing values. Input data that is
OUTPUT: greater than the maximum value for the item will be truncated
to the maximum value.
- Survey File 12
- Blasthole File 9
- Prnter Output File HOW TO RUN M500BHS TO STORE DATA
M500BHS is normally accessed from the MS-Compass menu
under the ASSAY OPS submenu using procedure PBH500.DAT.
As with standard MineSight programs, M500BHS may be run
REQUIREMENTS AND CONSIDERATIONS directly from the command line with the appropriate run file.
Program M500BHS will read blasthole data from the run file or
a separate file and then load Files 9 and 12. This allows you to
use blastholes that have been generated outside of MineSight.
You may also create an ASCII file of blastholes with M507BHS,
modify them and load them back into the blasthole files with
M500BHS.
A single line of text that will be printed at the top of each page of printer output from the run.
NOTE: If IOP3=1, the specified boundaries can be in a separate file. Use one of the following command
lines:
CMD = INCL LOCPT FILE filename(to include points within the boundary) OR
CMD = EXCL LOCPT FILE filename(to exclude points within the boundary)
FMT1 = (*) FREE-FIELD OR (...SPECS...) for fixed fields on the shot header lines.
FMT2 = (*) FREE-FIELD OR (...SPECS...) for fixed fields on the blasthole data lines.
NOTE: If you specify a FMT1 statement, the first format field must be A6 for the SHOT#, and the PB#,
AUX# and DATE fields must be integer fields. If you specify a FMT2 statement, the first format field
must be A4 for BHS#, and the rest should be real format fields.
END
If the specified boundaries are to be added at the end of the run file rather than a separate file, then use the following format:
where 0 0 ends the input or input ends on end-of-file. Boundary points MUST close. The maximum number of boundary points
allowed is 2000.
USR = ABC
COM
COM B H D A T A L O A D F U N C T I O N
COM
PUT09 = BHS# REF# ELEV. EAST NORTH TOTCU ASCU MOLY ORE
FMT2 = (1X,A4,F3.0, F7.0,2F10.2, 2F6.3,F7.4,F4.0)
END
8699 16 1 19870701 BLAST#8699 Shot header line
101 14 3450. 96529.00 99776.70 0.110 0.000 0.0170 0 Blasthole assay lines
102 14 3450. 96512.50 99795.30 0.090 0.000 0.0160 0
103 14 3450. 96498.13 99810.90 0.110 0.000 0.0200 0
104 14 3450. 96481.50 99831.50 0.150 0.000 0.0270 0
105 14 3450. 96465.00 99849.10 0.190 0.000 0.0390 0
USR = ABC
COM
COM B H D A T A L O A D F U N C T I O N
COM
PUT09 = BHS#REF#ELEV.EASTNORTHTOTCUASCUMOLYLEADORE
FMT1 = (*)
FMT2 = (*)
END
1. A common error is a mismatch between the FMT1 line and the PUT09 line in the run file. Make sure you have specified enough
format fields to account for all items on the PUT09 line. Dont forget to specify the first format field as A4 for the BHS#. Check
that your format matches the data that is being read in.
3. If IOP6=0, M500BHS only allows you to load a shot to Files 9 and 12 once. If you would like to load duplicate shot#s use
IOP6=1. If you would like to reload a shot that has already been loaded, the shot must first be deleted with M502FSB, then
reloaded with M500BHS. If you are updating the shot, use M502BHX.
RUN FILE: The blasthole data that is loaded should have the following
- Blasthole labels variables present:
- Area selection
BHS# blasthole identifier. Must be no more than 4
characters. System defined format is A4.
Other data such as grades and geology may be updated for each
OUTPUT: blasthole. If there are fields that will not be stored, they must be
skipped over with an nX format specification on the FMT2 line
- Update Files 9 and 12
in the run file.
Input data that is less than the minimum value for the item will
not be stored by the program as missing values if IOP4 = 0 and
a value already exists for this item. This allows you to load assay
data as soon as it is received from the assay lab, regardless as to
whether particular assay items are included in the file. If, for
example, the lab sends fire assay data on one day, and AA
another, we are now able to load these items independently of
each other without overwriting the data previously stored into
File 9.
A single line of text that will be printed at the top of each page of printer output from the run.
FMT2 = (*) FREE-FIELD OR (...SPECS...) for fixed fields on the blasthole data lines
END
USR = ABC
COM
COM BH DATA UPDATE FUNCTION
COM
UPD09 = BHS# ELEV. EAST NORTH TOTCU ASCU MOLY LEAD ORE
FMT1 = (*)
END
1. A common error is a mismatch between the BLASTHOLE# in the ASCII input file and File 9. Make sure that all of the BHS#
in the input file exist in File 9.
RUN FILE: List File 12 shot index with data unit numbers on the
- Blasthole selection report. No reference is made to File 9. (IOP6=1)
- Item selection
- Area selection Dump File 9 blasthole data in BHS point format used
in modeling.(IOP6=1)
A single line of text that will be printed at the top of each page of printer output from the run.
IOP1 = M12 FOR FILE 12 REF -OR- IOP1 = M09 FOR FILE 9
IOP2 = N12 FOR FILE 12 REF -OR- IOP1 = N09 FOR FILE 9
IOP3 = -1 LIST ALL BHS REGARDLESS OF LOCATION
= 0 LIST BHS WITHIN PROJECT LIMITS
= 1 LIST BHS WITHIN SPECIFIED BOUNDARY
NOTE: If IOP3=1, the specified boundaries can be in a separate file. Use one of the following command
lines:
CMD = INCL LOCPT FILE filename (to include points within the boundary) OR
CMD = EXCL LOCPT FILE filename (to exclude points within the boundary)
NOTE: You are limited tp 20 items on the GET09 line unless you specify a FMT1. If using FMT1, you
may report up to 99 items.
FMT1 = Format for output data (required if reporting more than 20 items).
NOTE: Specify fields the BHS#, the UNIT, and every item on the GET09 line.
If you use the Default FMT3, the item labels may not align properly with the columns of data specified
using the FMT1 statement. We recommend that the FMT3 statement should be compatible with FMT1.
END
If the specified boundaries are to be added at the end of the run file rather than a separate file, then use the following format:
where 0 0 ends the input or input ends on end-of-file. Boundary points must close. The maximum number of boundary points
allowed is 2000.
USR = ABC
END
USR = ABC
END
USR = ABC
END
1. If you limit the blasthole data by ITMn = label-09 RANGE, OMIT or TABLE, the label-09 must be
specified on the GET line.
M507BHS creates a sequential ASCII file from the blas- Blasthole data that has already been stored into File 9 may
thole files 9 and 12 be dumped into an ASCII file in preparation for condensing
or creating a new file 9. Once data is in an ASCII file,
special editing or changes can be made with the editor on
your computer system.
PROGRAM FLOW DIAGRAM
M507BHS will dump existing blasthole data from Mine-
RUN FILE:
Sight File 9 under control of File 12. You can specify
- Optional selection the output format to the ASCII file with a FMT1 line, but the
- Output format program will generate a default format.
The first two data fields output from M507BHS include the
blasthole number and the pushback number. The blasthole
INPUT: CALCS: number should be given an alphanumeric format of A4, and
the pushback number should be given an integer format
- PCF - Select data specification of I5.
- File 9 - Create ASCII file
- File 12
The next three data fields output normally contain the
ELEV., EAST and NORTH coordinates of the blastholes. If
this data will be used to create a File 9, ELEV. precedes
EAST which precedes NORTH, by convention. These fields
are followed by assays and geology, as applicable.
OUTPUT: The ASCII output file contains a header line before the
actual blasthole data. This is the standard blasthole format
- ASCII output file that is generated during the merge function of blasthole
- Printer Output File preparation.
A single line of text that will be printed at the top of each page of printer output from the run.
NOTE: You are limited to 20 items on the GET09 line unless you specify a FMT1. If you are using
FMT1, you may report up to 99 items.
FMT1 = Format for output data (required if reporting more than 20 items)
Specify fields for the BHS#, the Pushback# (ref#), and every item on the GET09 line.
If the specified boundaries are to be added at the end of the run file rather than a separate file, then use the following format:
where 0 0 ends the input or input ends on end-of-file. Boundary points must close. The maximum number of boundary points
allowed is 2000.
USR =
COM
CALCULATION OF COMPOSITES
Limiting Angle
Two types of fixed length composites can be calculated with M501V1: vertical and horizontal. The limiting angle controls which
method is used for a hole. By default, the limiting angle is:
NOTE: If you choose a non-default limiting angle in M501V1 (PAR4), then you must remember to include this
value in your M505V1 (PAR1) and M516V1 (PAR13) runfiles.
Vertical Composites
If the dip angle of a drillhole is greater than the limiting angle, a vertical composite is calculated. The vertical bench height (DZ) is
used as the control for compositing. The weight used in compositing is the calculated vertical length of each sample interval, not the
slope length of the interval.
Horizontal Composites
When the dip angle of a drillhole is less than the limiting angle, a horizontal composite is calculated. This prevents long vertical
composites being generated for near-horizontal drillholes. The E-W direction block size (DX) is used as the control for compositing.
The weight used in compositing is the calculated horizontal length of each sample interval, not the slope length of the interval.
Once the compositing calculation is begun with either the vertical or horizontal method, it will be used for the entire hole regardless
of subsequent surveys. There may be times when you will want to specify a limiting angle to prevent horizontal compositing of a few
holes that are close to, but less than the default angle. You should check for any holes that have surveys that are close to the limiting
angle and decide if they should be composited horizontally or vertically.
Note about using the DHID option in the composite file (File 9) without the survey file (File 12):
Starting with the 2001 update you can store drillhole labels with composites in files 9 and 8. To use this option, you must reserve two
full-word items in file9. By default, MineSight programs expect those items to be named DHID1 and DHID2, but you can name
them differently. These items are similar to DLAB1 and DLAB2 in the survey file (File 12). To initialize a full-word item enter min
= max = 0., and precision = 1.
NOTE: A 10-character drillhole ID is coded and packed into two words. The actual DH ID can be retrieved only programmatically,
and you must direct MineSight programs to retrieve DHID from file9. The option to use DHID from file9 directly was added to all
the relevant procedures.
1. NTRY is an integer argument specifying entry control as follows: NTRY=1 for subroutine initialization. The call is
made after program initialization but before any drillhole data is accessed.
NTRY=2 for each drillhole interval within the current survey data unit. Interval data is subject to ITM restrictions as are
survey data units. Collar survey data units are also subject to boundary restrictions.
NTRY=4 for user calculations at the end of all survey data units for the current drillhole.
NTRY=5 for user calculations at the end of all drillholes (or end of run).
NTRY=6 same as NTRY=2 but in the optional second pass of the data. It follows an NTRY of 4 for each drillhole.
2. IDHN is an integer argument containing the current drillhole reference number. IDHN is zero for NTRY=l and
NTRY=5.
In addition to other system common blocks, the following common block data is available:
/BUF/B12(1024), B09(1024)
1. B12 is an array containing the File 12 record in which the current survey data unit is located. See the /USR/ common
block for information of addressing data units.
2. B09 is an array containing the File 9 record in which the current interval data unit is located. Most words in B12 are
accessible directly although you may have to equivalence a floating point array to avoid conversion problems. File 9
data is usually packed in array B09 so, unless you understand MineSight packing schemes, you are advised to keep
your paws off this array.
/USR/K09GET, L09GET, K09PAK, L09PAK, LOC09, J09, K09, L09, K12GET, L12GET,
K12PAK, L12PAK, LOC12, J12, K12, L12
1. K09GET is the integer subscript for information in the ITM common block for the first File 9 GET item. Arrays of
interest are ITM(3,99), RDAT(99) and IDAT(99).
4. L09PAK is the subscript for the last File 9 PAK item. If you use UPD09 in your run file, then GET subscripts will fall
within the range of the PUT subscripts.
5. LOC09 is the base subscript of the current interval data unit and is addressed by B09 (LOC09 + 1).
7. K09 is the first data unit number of interval data for the current survey data unit.
8. L09 is the last data unit number for the current survey data unit.
THE REMAINING INTEGERS ARE THE SAME AS ABOVE BUT APPLICABLE TO File 12.