

1.
----------------------------------------------------------------------------
| Command     : ncset_units                                                |
----------------------------------------------------------------------------
| Description : The command is used for setting the CURRENT working units. |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| units               | inch, mm                     |                     |
----------------------------------------------------------------------------


2.
----------------------------------------------------------------------------
| Command     : ncset_cur                                                  |
----------------------------------------------------------------------------
| Description : The command is used for setting the CURRENT entity name    |
|               that are used for all the other line mode commands.        |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| job                 | existing job   name          |                     |
----------------------------------------------------------------------------
| step                | existing step  name          |                     |
----------------------------------------------------------------------------
| layer               | existing layer name          |                     |
----------------------------------------------------------------------------
| ncset               | existing ncset name          |                     |
----------------------------------------------------------------------------


3.
----------------------------------------------------------------------------
| Command     : ncset_create                                               |
----------------------------------------------------------------------------
| Description : The command is used for creating a new ncset entity.       |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| name                | legal entity name            |                     |
----------------------------------------------------------------------------


4.
----------------------------------------------------------------------------
| Command     : ncset_delete                                               |
----------------------------------------------------------------------------
| Description : The command is used for deleting an existing NCset.        |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| name                | existing NCset name          |                     |
----------------------------------------------------------------------------


5.
----------------------------------------------------------------------------
| Command     : ncset_rename                                               |
----------------------------------------------------------------------------
| Description : The command is used for renaming an existing NCset.        |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| name                | existing NCset name          |                     |
----------------------------------------------------------------------------
| new_name            |                              |                     |
----------------------------------------------------------------------------


6.
----------------------------------------------------------------------------
| Command     : ncset_copy                                                 |
----------------------------------------------------------------------------
| Description : The command is used for copying an existing NCset.         |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| name                | existing NCset name          |                     |
----------------------------------------------------------------------------
| target_name         |                              |                     |
----------------------------------------------------------------------------


7.
----------------------------------------------------------------------------
| Command     : ncset_page_open                                            |
----------------------------------------------------------------------------
| Description : The command is used for opening the package's window.      |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------


8.
----------------------------------------------------------------------------
| Command     : ncset_page_close                                           |
----------------------------------------------------------------------------
| Description : The command is used for closing the package's window.      |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------


9.
----------------------------------------------------------------------------
| Command     : ncd_set_machine                                            |
----------------------------------------------------------------------------
| Description : The command is used for setting the drill machine name, and|
|               some other parameters.                                     |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| machine             | existing machine name        |                     |
----------------------------------------------------------------------------
| thickness           |                              |                     |
----------------------------------------------------------------------------


10.
----------------------------------------------------------------------------
| Command     : ncd_set_params                                             |
----------------------------------------------------------------------------
| Description : The command is used for setting several NCset parameters.  |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| format              | excellon1, excellon2,        |                     |
|                     | sm1000, sm3000, pda,         |                     |
|                     | hitachi, wessel, posalux,    |                     |
|                     | trudrill                     |                     |
----------------------------------------------------------------------------
| zeroes              | none, leading, trailing      |                     |
----------------------------------------------------------------------------
| units               | inch, mm                     |                     |
----------------------------------------------------------------------------
| tool_units          | inch, mm                     |                     |
----------------------------------------------------------------------------
| nf1, nf2            | 1-5                          | numbering format    |
----------------------------------------------------------------------------
| decimal             | yes, no                      | decimal output      |
|                     |                              | coordinates         |
----------------------------------------------------------------------------
| modal_coords        | yes, no                      |                     |
----------------------------------------------------------------------------
| single_sr           | yes - for single S&R use a   |                     |
|                     |       step & repeat block    |                     |
|                     | no                           |                     |
----------------------------------------------------------------------------
| sr_zero_set         | yes - use the G93 command    |                     |
|                     |       before the S&R block   |                     |
|                     | no                           |                     |
----------------------------------------------------------------------------
| repetitions         | Repetitions mode: S&R,       |                     |
|                     |   subroutines, etc.          |                     |
----------------------------------------------------------------------------
| incremental         | yes, no                      |                     |
----------------------------------------------------------------------------
| optimize            | yes, no                      |                     |
----------------------------------------------------------------------------
| iterations          | >= 1                         | number of opt.      |
|                     |                              | iterations          |
----------------------------------------------------------------------------
| reduction_percent   | >= 0.0                       |                     |
----------------------------------------------------------------------------
| break_sr            | yes, no                      | break step & repeat |
|                     |                              | indicator           |
----------------------------------------------------------------------------
| xspeed, yspeed      | >= 0.001 inches per minute   |                     |
----------------------------------------------------------------------------
| rout_layer          |                              |                     |
----------------------------------------------------------------------------
| fixed_tools         | yes - the system assigns     |                     |
|                     |       fixed tools according  |                     |
|                     |       a tools table in the   |                     |
|                     |       machine file           |                     |
|                     | no - no fixed assignment     |                     |
----------------------------------------------------------------------------
| tools_assign_mode   | increasing_size,             |                     |
|                     | decreasing_size,             |                     |
|                     | increasing_count,            |                     |
|                     | decreasing_count             |                     |
----------------------------------------------------------------------------


11.
----------------------------------------------------------------------------
| Command     : ncd_register                                               |
----------------------------------------------------------------------------
| Description : The command is used for setting the regsitration values.   |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| angle               | 0, 90, 180, 270              |                     |
----------------------------------------------------------------------------
| mirror              | no, yes                      |                     |
----------------------------------------------------------------------------
| xoff, yoff          |                              | offset values       |
----------------------------------------------------------------------------
| version             | 1 - 8                        | coordinates version |
----------------------------------------------------------------------------
| xorigin,yorigin     |                              |                     |
----------------------------------------------------------------------------
| xscale, yscale      | scale factor (def = 1.0)     |                     |
|                     | 0.95 >= factor <= 1.05       |                     |
----------------------------------------------------------------------------
| xscale_o, yscale_o  | scale anchor coordinates     |                     |
|                     | relative to the STEP         |                     |
----------------------------------------------------------------------------


12.
----------------------------------------------------------------------------
| Command     : ncd_start_end                                              |
----------------------------------------------------------------------------
| Description : The command is used for setting start/end coupon params.   |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| split               | 1,2                          | split number        |
----------------------------------------------------------------------------
| start               | no, yes                      | Start drills        |
----------------------------------------------------------------------------
| end                 | no, yes                      | End   drills        |
----------------------------------------------------------------------------
| dist_t              | Distance between pad centers |                     |
|                     | or spacing between contours  |                     |
----------------------------------------------------------------------------
| min_dist            | >= 0                         | Distance between    |
|                     |                              | holes (Mils/microns)|
----------------------------------------------------------------------------
| min_hits            | If number of drills less than 'min_hits' in this   |
|                     | size, the coupon for this size will not be drilled.|
----------------------------------------------------------------------------
| min_size            | If tool size (Mils/microns) less than 'min size',  |
|                     | the coupon for this size will not be drilled.      |
----------------------------------------------------------------------------
| max_size            | If tool size (Mils/microns) greater than 'max size'|
|                     | the coupon for this size will not be drilled.      |
----------------------------------------------------------------------------
| x1,y1,x2,y2         |                              | bounding box of the |
|                     |                              | coupon in panel     |
|                     |                              | coordinates         |
----------------------------------------------------------------------------


13.
----------------------------------------------------------------------------
| Command     : ncd_end                                                    |
----------------------------------------------------------------------------
| Description : The command is used for setting the end coupon params,     |
|                separate from the start.                                  |
|   Note: To use this command, call ncd_start_end first to define the      |
|         start coupon. Using this command on its own is meaningless.      |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| split               | 1,2                          | split number        |
----------------------------------------------------------------------------
| x1,y1,x2,y2         |                              | bounding box of the |
|                     |                              | coupon in panel     |
|                     |                              | coordinates         |
----------------------------------------------------------------------------


14.
----------------------------------------------------------------------------
| Command     : ncd_order                                                  |
----------------------------------------------------------------------------
| Description : The command is used for setting step & repeat order.       |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| split               | 1, 2 (split number)          |                     |
----------------------------------------------------------------------------
| sr_line,sr_nx,sr_ny | step & repeat entry (for all |                     |
|                     | parameters : >= 1)           |                     |
|                     | 0 - for the step overlay     |                     |
----------------------------------------------------------------------------
| serial              | 1, 2, 3,,,- order from start |                     |
|                     |-1,-2,-3,,,- order from end   |                     |
|                     | 0 - no specific order        |                     |
----------------------------------------------------------------------------
| full                | yes - the step should be     |                     |
|                     |       fully drilled,including|                     |
|                     |       ALL the tools          |                     |
|                     | no - the drills are drilled  |                     |
|                     |      according to the global |                     |
|                     |      tools sequence          |                     |
----------------------------------------------------------------------------
| optional            | yes - indicates that the step|                     |
|                     |       should have the '/'    |                     |
|                     |       character for optional |                     |
|                     |       drill                  |                     |
|                     | no - regular mode            |                     |
----------------------------------------------------------------------------


15.
----------------------------------------------------------------------------
| Command     : ncd_order_def                                              |
----------------------------------------------------------------------------
| Description : The command is used for setting the default step & repeat  |
|               order, which is based on the step attributes :             |
|               'out_drill_order', and 'out_drill_full'.                   |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| split               | 1, 2 (split number)          |                     |
----------------------------------------------------------------------------


16.
----------------------------------------------------------------------------
| Command     : ncd_table_open                                             |
----------------------------------------------------------------------------
| Description : The command is used for opening the NCD tool table         |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------


17.
----------------------------------------------------------------------------
| Command     : ncd_table_close                                            |
----------------------------------------------------------------------------
| Description : The command is used for closing the NCD tool table         |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------


18.
----------------------------------------------------------------------------
| Command     : ncd_table_reset                                            |
----------------------------------------------------------------------------
| Description : The command is used for reseting a temporary nc-table, that|
|               is set by the 'ncd_table_set' command.                     |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------


19.
----------------------------------------------------------------------------
| Command     : ncd_cre_drill                                              |
----------------------------------------------------------------------------
| Description : The command creates the drill and NC files.                |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------


20.
----------------------------------------------------------------------------
| Command     : ncd_auto_all                                               |
----------------------------------------------------------------------------
| Description : The command must be called after the machine name was set, |
|               and it automatically sets the whole NC-set. This is done   |
|               based on the machine file parameters, and on the user      |
|               defined hooks.                                             |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| create_drill        | yes - create the drill files |                     |
|                     | no  - only set the params    |                     |
----------------------------------------------------------------------------


21.
----------------------------------------------------------------------------
| Command     : ncd_ncf_export                                             |
----------------------------------------------------------------------------
| Description : The command is used for exporting the drill file from the  |
|               NC-set.                                                    |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| stage               | drill stage (1, 2, 3)        |                     |
----------------------------------------------------------------------------
| split               | split number (1, 2)          |                     |
----------------------------------------------------------------------------
| dir                 | directory path               |                     |
----------------------------------------------------------------------------
| name                | file name                    |                     |
----------------------------------------------------------------------------


22.
----------------------------------------------------------------------------
| Command     : ncd_report                                                 |
----------------------------------------------------------------------------
| Description : The command is used for ncd report                         |
|                                                                          |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| path                | directory path               |                     |
----------------------------------------------------------------------------


23.
----------------------------------------------------------------------------
| Command     : ncd_tools_table                                            |
----------------------------------------------------------------------------
| Description : The command is used for getting a summary tools table.     |
|               The tool counts are divided according to the steps.        |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| stage               | drill stage (1, 2, 3)        |                     |
----------------------------------------------------------------------------
| split               | split number (1, 2)          |                     |
----------------------------------------------------------------------------
| path                | pathname of the output file  |                     |
----------------------------------------------------------------------------


24.
----------------------------------------------------------------------------
| Command     : ncd_get_current                                            |
----------------------------------------------------------------------------
| Description : The command is used for getting the current ncset name     |
|               with job/step/layer context. Used in scripts.              |
----------------------------------------------------------------------------
| Response    : a 4 element array: ( job step layer ncset )                |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
----------------------------------------------------------------------------


25.
----------------------------------------------------------------------------
| Command     : ncd_cre_layer                                              |
----------------------------------------------------------------------------
| Description : The command creates a step layer that contains all the     |
|               drills of the specified stages + splits.                   |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| stage               | drill stage (1, 2, 3)        |                     |
----------------------------------------------------------------------------
| split               | split number (1, 2)          |                     |
----------------------------------------------------------------------------
| layer               | output layer name            |                     |
----------------------------------------------------------------------------
| profile_outline     | yes - add the profile        |                     |
|                     |       outline                |                     |
|                     | no  - no profile             |                     |
----------------------------------------------------------------------------
| transform           | yes - perform layer transformation                 |
|                     | no  - not perform (default)                        |
----------------------------------------------------------------------------
| type                | drills - drills              |                     |
|                     | path   - drills path         |                     |
----------------------------------------------------------------------------


26.
----------------------------------------------------------------------------
| Command     : ncd_table_set                                              |
----------------------------------------------------------------------------
| Description : The command is used for adding table entries.              |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
| shape               | hole, slot                   |                     |
----------------------------------------------------------------------------
| type                | plate, nplate, via           |                     |
----------------------------------------------------------------------------
| size                | drill size (diameter)        |                     |
----------------------------------------------------------------------------
| touch_copper        | no, yes                      | relevant only if the|
|                     |                              | 'type' is 'nplate'  |
----------------------------------------------------------------------------
| flag                | >= 0                         |                     |
----------------------------------------------------------------------------
| count               | number of drills             |                     |
----------------------------------------------------------------------------
| min_tol, max_tol    | allowed tolerances           |                     |
----------------------------------------------------------------------------
| slot_len            | total slots length (inches)  |                     |
----------------------------------------------------------------------------
| finish_size         | finish hole size (diameter)  |                     |
----------------------------------------------------------------------------
| des                 | designator (free text)       |                     |
----------------------------------------------------------------------------
| tool_size           |                              |                     |
----------------------------------------------------------------------------
| pilot               | no, yes                      | indicates if the    |
|                     |                              | entry represents a  |
|                     |                              | pilot drill         |
----------------------------------------------------------------------------
| parent              | serial number of the pilot   |                     |
|                     | holes parent (first is 0)    |                     |
----------------------------------------------------------------------------
| mode                | regular, nibble, rout        |                     |
----------------------------------------------------------------------------
| spindle_speed       | in rpms                      |                     |
----------------------------------------------------------------------------
| feed_rate           |                              |                     |
----------------------------------------------------------------------------
| nibble_type         | machine - done by the machine|                     |
|                     | sw - broken by the system    |                     |
----------------------------------------------------------------------------
| max_hits            | maximal number of hits per   |                     |
|                     | bit                          |                     |
----------------------------------------------------------------------------
| stage               | drill stage (1, 2, 3)        |                     |
----------------------------------------------------------------------------
| rout_mode           | sep - separate rout layer    |                     |
|                     | same - same nc file          |                     |
----------------------------------------------------------------------------
| tool_order          | Predefined fix tool order  (0,1,2...) 0-undefined  |
----------------------------------------------------------------------------
| tool_num            | Predefined fix tool number (0,1,2...) 0-undefined  |
----------------------------------------------------------------------------
| cool_spread	      | Cool spread value	     |			   |
----------------------------------------------------------------------------


27.
----------------------------------------------------------------------------
| Command     : ncd_table_apply                                            |
----------------------------------------------------------------------------
| Description : The command is used for applying the nc-table that was     |
|               created by the line mode command - 'ncd_table_set'.        |
----------------------------------------------------------------------------
| Response    : None                                                       |
============================================================================
| Parameter           | Legal values                 | Comment             |
----------------------------------------------------------------------------
