Chapter 3
Programming the Crusader II CNC Mill
Note:
Statements in these instructions preceded by a dollar sign ($) are comments. |
Consider the following factors when writing a program:
Manual Data Input (MDI)
For programming via MDI from the controller console:
- The
mode must be active to be able to enter, insert, delete, or edit data in the Crusader's memory.
- To step through the memory, the
mode must be active; then
- to step forward, press ;
to step backward, press or
- to search for a specific block, use the numeric keypad and the
button.
- The button works just like a carriage return--
it means end-of-block (EOB).
- The
button inserts a blank block into the program by "shoving down" the displayed and following events.
The inserted blank block can then be programmed. Adding a statement works only in the
mode.
- The
button deletes the displayed event from the memory. Deleting a statement works only in the
mode.
- The
button clears the display of residual data, but does not index the memory to the next event.
Individual axis data can be cleared by depressing the appropriate axis button:
,
, or
.
Off-Line Programming
Programs input via RS 232-C serial port (microcomputer or DSI NC 2400 tape reader) must:
- Begin and end with a block containing only a percent symbol (%) and carriage return--
and no other characters--to open and close the Crusader's memory.
- Utilize the ASCII tape code (RS 358, even parity).
- Utilize the following RS 274-D format:
N4.0 G2.0 XYZIJK3.4 F2.1 M4.0 T4.0 EOB.
- In addition, S, C, D, LV, & E address words are used for Subroutine, Call, Do, Load Variable, and End.
These words must be preceded by G29.
- G29 is also used for LOADING tool length offset (TLO) data (e.g., G29 T1003 Z-2.375) but NOT
for activating TLOs.
- Spaces are ignored.
- Positive values are assumed.
- Leading and trailing zeros can be omitted (zero suppression).
- Use G00 to initiate rapid travel (100 IPM). It is modal.
- Use G01 to initiate linear feedrate motion. It is modal.
- The actual feedrate utilized will be the most recent one programmed.
- The default feedrate is 40 IPM.
- Feedrates (utilizing the address word F) can be programmed from 0.01 to 80.0 IPM with
leading and trailing zero suppression.
- Feed rates are modal.
Programming Tool Length Offsets (TLOs)
The first section of the program must be devoted to entering tool length offsets (TLOs).
See Chapter 11for the definition of TLO and various procedures for setting TLOs.
ANILAM FORMAT |
EVENT | COMMAND | COMMENT |
1 | TOOL 1001 | $ Says next block has T1's TLO |
2 | Leave blank | $ For operator to insert value |
3 | TOOL 1002 | $ Says next block has T2's TLO |
4 | Leave blank | $ For operator to insert value |
5 | TOOL 1003 | $ Says next block has T3's TLO |
6 | Leave blank | $ For operator to insert value |
7 | TOOL 1 | $ Activate T1's TLO |
8 | Rest of program |
EIA 274-D FORMAT |
N0010 | G00 G90 G70 | $ RPD ABS INCH |
$ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
$ TLOs _MUST_ be set by operator _PRIOR_ to program run |
$ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
N0011 | G29 T1001 Z-2 | $ Z-2 is a (dummy value) TLO spaceholder |
N0012 | G29 T1002 Z-2 | $ Each tool def. statement automatically creates |
N0013 | G29 T1003 Z-2 | $ a blank block for the TLO data. |
N0020 | T1 | $ Activates Tool #1's TLO. No G29 required. |
N0025 | Rest of program |
Copyright © 2003 George C. Stanton & Bill Hemphill
All Rights Reserved
Last updated on Feb. 8, 2003 by Bill Hemphill