Create Charge Rule

Source file: create-charge-rule.htm

A charge rule is a JavaScript snippet that defines the location, quantity, and types of products that you plan to insert into each hole in a blast. The aim of the charge rule is to fill the hole with particular products using the following information:

  • Charge rule parameters

  • Hole length, geometry, and custom properties

  • Blast product catalogue

When you apply a charge rule to a set of holes, BlastLogic automatically creates a charge sheet that operators can access on the BlastLogic Tablet. Prior to confirming the application of a charge rule, BlastLogic will display a charge plan preview. This will contain information in a tabular format, as well as a 2D hole view for the selected hole. After you successfully apply a charge rule, BlastLogic will automatically publish the rule for future use.

Creating a charge rule

You can create charge rules using one of the following methods:

  • Blank

    The Blank charge rule allows you to create a charge rule from scratch.

  • Assisted

    The Assisted charge rule provides you with options that BlastLogic uses to build the charge rule.

To enter the charge rule creation panel, use either of the following paths:

  • On the Charging tab, in the Design group, go to Create Charge Rule, and select either Blank or Assisted from the drop-down.

    Or

  • Right-click on the charge rules container in the project explorer, go to Create Charge Rule in the context menu, and select either Blank charge rule... or Assisted charge rule....

Blank

The blank charge rule allows you to create a charge rule from scratch.

To create a blank charge rule, follow these steps:

  1. Enter the Create Charge Rule panel by one of the paths listed above.

  2. Enter the name and, optionally, the description of the new charge rule in the corresponding fields.

    Tip:  BlastLogic will use the name you enter to uniquely identify the charge rule. The name must be different from all other existing charge rules. Using a naming convention when you create charge rules will make it easier to find them later.

  3. Go to the Parameters tab and click Edit parameters....

    Important:  The Parameters tab allows you to set blast products as general parameters. This step is crucial as setting these products as parameters allows you to access them in the charge rule script via the params objects.


    The Edit Charge Rule Parameters panel will appear.

  4. Click to add a new parameter.

    BlastLogic will give the new parameter default names in the Identifier and Label fields.

  5. Enter the required information into the Identifier, Label, and Description fields.

    Note:  The identifier must contain only letters, digits, and underscores.

  6. If required, select the Tablet editing checkbox for the charge rule parameter to appear on the BlastLogic Tablet.

  7. Select the property type using the Type drop-down. There are nine types to choose from in BlastLogic:

    • Blast product. This type contains information on blast products that you can use to fill holes.

    • Blast product family. These types contain information on a group of blast products. This group is known as a blast product family and typically contains one product with a set of varying densities.

    • Boolean. You can turn these types on or off via a checkbox.

    • Float. These types must have a range set as greater than a given value, less than a given value, in between two values, or all values. You must also define the dimension and units of float types.

    • Interval label. These types contain the interval labels you wish to include in the rule.

    • Load table. These types add load tables to the rule. Load tables allow you to set load designs in tabular form.

      Note:  When you add a Load table parameter, BlastLogic will add another tab for you to configure on the left-hand side of the Create Charge Rule panel. Assisted charge rules have this parameter and tab added by default. See Load table tab for details.

    • Select. These fields display a table in which you can enter each possible value for the field. These values will be shown in a drop-down list for the field and you can only select one value at a time.

    • Multi-select. These fields are the same as Select fields, except you can select multiple values from the drop-down list.

    • String. These types can be either a single line or a multiple line string. Single line strings can have one or more hints to store commonly entered values.

  8. Specify the additional options. You can also set the following fields, depending on the selected type:

    • Blast product field options

      Set the products by filtering using the Filter by products or Filter by types radio buttons and drop-downs.

    • Blast product family field options

      Set the product family by filtering using the Filter by families or Filter by types radio buttons and drop-downs. To filter by families, enter the required family and delay using the Family and Delay columns and drop-downs.

    • Float field options

      Range, dimension, and unit can be defined when the Float type is selected. To set the range of the parameter, select one of four range definitions (Range, Less than or equal, Greater than or equal, or All finite values), and enter the required values. To set the Dimension and Unit, use the corresponding drop-downs.

    • Interval label field options

      Set the label for the interval using the Interval label choices drop-down.

    • Multi-select and Select field options

      The label associated with a particular value can be assigned when Multi-select or Select type is chosen.

    • String field options

      You can set commonly entered values in the Hint column. Optionally, select the Multiple lines radio button for a multiple line string. You cannot define hints when Multiple lines is selected.

  9. Optionally, use the following actions to edit the parameters:

    • To remove a parameter, select the parameter and click .

    • To clone a parameter, select the parameter and click .

    • To reorder the parameters, select the parameter you wish to move and click the or arrow.

  10. After adding the required parameters, click OK.

    The parameters you added will appear in the Parameters tab in the Create Charge Rule panel. You can edit them as required.

  11. Apply a script to your charge rule using one of the following tabs:

    • Script builder

      Or

    • Script

    Tip:  Use the What-if Analysis section to visualise the charge application within a hole in a 2D preview. The section does not create a new hole or modify an existing hole; instead, it uses the values selected in the Copy values from drop-down to visualise how the charge rule would be applied.

  12. Save the new charge rule by clicking OK or Apply.

    Note:  The new charge rule does not exist in the database until you save it for the first time. If you decide you do not want to save the new charge rule, click Cancel.

Assisted

The procedure for creating an assisted charge rule is similar to that for creating a blank charge rule, with the following differences:

  • When you enter the Create Charge Rule panel for an assisted charge rule, BlastLogic automatically fills the Name and Description fields. You can enter a custom name and the description as required.

  • The assisted charge rule automatically sets up standard parameters, enabling additional options in the Script Builder to help you create the charging logic.

  • The Create Charge Rule panel for an assisted charge rule includes the Load table parameter and Load table tab by default (see Load table tab below for details).

See also:  Creating a blank charge rule

Load table tab

There are two tables in the load tables tab: the Interval lengths table and the Decks table. Each row in the Interval lengths table defines a range of interval lengths using the From and To columns. Each range has an associated list of decks that is applied when the interval length falls within that range. You can define these deck lists in the Decks table.

The interval length is the length of the region of the hole to which the load table is applied. If the load table is applied to the entire hole, the interval length is equal to the hole length. If it is applied to only part of the hole, the interval length is equal to the length of that portion.

Use the Load table tab to fill holes based on the interval length of the region to which the load table is applied, as follows:

  1. Enter the required length intervals into the Interval lengths table.

    You can define the interval boundaries using the From and To columns.

    Note:  The last row of this table always has a blank To value as BlastLogic applies it to all the remaining holes with a length greater than or equal to the From value of that row.

  2. Specify the decks for each interval by selecting the interval and adding the required information into the Decks table. The table contains the following fill method headings:

    • Product: The type of product you wish to add.

    • Quantity: The quantity of the product you wish to add.

    •  Amount: The amount of the product you wish to add.

    • Maximum: The maximum length of the deck you wish to use.

    There are six different ways to specify the size of a deck, as provided in the Quantity drop-down:

    • Variable ratio

      The ratio of the deck to be filled with the specified product. Ratio values for non-explosive decks are considered ratios of length, whereas ratio values for explosive decks are considered ratios of mass.

      Note:   Variable length decks can optionally use the Maximum column. This column defines the maximum length of a given deck. The remainder of the hole should be covered by other deck options as specified above, including at least one variable length deck with no maximum.

    • Fixed length

      The deck is always a specified length in the hole, with the length given in metres. The sum of all fixed length decks must not exceed the minimum length specified in the Interval lengths table.

    • Fixed volume

      The deck always takes up a specified volume in the hole. BlastLogic calculates the length of this deck based on the diameter of the hole when you apply the charge rule.

    • Fixed mass

      The deck will always be a specified mass. BlastLogic automatically calculates the length of the deck based on the density of the chosen blast product and the diameter of the hole when you apply the charge rule.

      Note:  This option is not available for products with an undefined density.

    • Target powder factor

      The deck will always be specified by meeting a target powder factor, determined by the products density and the current hole diameter. This value is on a per-deck basis, independent of any other explosive deck.

      Note:  This option is only applicable for explosive decks with a valid density.

    • Length above water

      The top of this deck will extend to the specified distance above the wet part of the hole. By default, the length above water decks will use the wet-sides measurement of the hole as the reference water level. However, a charge rule script can choose to calculate its own value to use as this water level.

      The decks specified as Length above water also contain the following properties:

      • Cannot be placed on top of variable length decks.

      • If the hole is dry, BlastLogic will exclude these decks from the resulting charge plan.

      • BlastLogic will reduce the length of the deck if either of the following occurs:

        • There is insufficient space remaining in the hole.

          Or

        • The blast product is explosive and the target explosive mass has been reached.

      Example 

      In the screenshot above, the Quantity column is set to Variable ratio with the Amount column set to 1.000. This corresponds to each product having a variable mass ratio of 1:1 in the hole. You can view this in the 2D hole preview.

      You can view the density of each material in the Blast Product Catalogue. To open it, navigate to the Home tab, go to the Setup group, and click Blast Product Catalogue. In this view, you can see that BlastLogic has increased the amount of AFO85, due to its lower density. For more information, see Blast Product Catalogue.

    Note:  After you fill in the required parameters in the Load table tab, BlastLogic creates a simple script in the Script builder tab. In this tab, you can view and edit the preselected options to generate a new script if you desire. Alternatively, fill out the charge rule script manually in the Script tab, using the JavaScript programming language. The script is responsible for calculating a set of decks that completely fill the hole with the required blast products. See Script builder and Script for more information.

See also:  Edit Charge Rule

Loading a charge rule

To load a charge rule from the Server, see the Load Charge Rules or Load Charge Rules From Holes sections of the Load topic.

Cloning an existing charge rule

After publishing a charge rule, you can only modify its name and description. BlastLogic prevents further editing to preserve the charge rule settings for historical accuracy.

To make changes to an existing charge rule, you must make an editable copy of the charge rule by cloning it. The cloned charge rule contains exactly the same information, parameters and rules as the original, but you can modify all aspects of it.

To clone a charge rule, follow these steps:

  1. In the project explorer, in the charge rules container, double-click on the charge rule you wish to change. The Edit Charge Rule Defaults panel will appear.

  2. Select Clone.... BlastLogic will display the same panel but with a cloned version of the charge rule, named Copy of <charge rule name>.

    Note:   Alternatively, clone a charge rule by right-clicking on the charge rule, located in the charge rules container in the project explorer, and select Clone from the context menu.

Note

This tab will only appear if you have defined a load table parameter in the Parameters tab. To add a load table, select Edit parameters... and click to add a new parameter. Enter the appropriate information into the parameter fields and select Load table from the Type drop-down. Click OK to save the parameter.