;
; Roland configuration file 
;
;
; History
;
; Who When     What
; === ======== ========================================
; BEM 01/04/94 Written
; BEM 13/05/94 Modified header to remove @ command
; TM  07/02/96 Modified - added pause command
; TM  07/02/96 Modified - Additional XY feedrates
; bem 21/03/00 Added DESCRIPTION and FILE_EXTENSION fields
; bem 01/03/05 Modified from roland JWX rotary
; ps  04/05/05 variable spindle speed added
;
; NOTE: this file needs to be sent to the Roland printer 
;       driver as a 'raw' print file
; 
DESCRIPTION = "Roland JWX Indexer (*.prn)"
;
FILE_EXTENSION = "prn"
;
; Set units used in file - MM
;
UNITS = MM
;
;
; ------------------------------------------------------------------
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Set up default formating for variables
;
; Feed Rate
;
; Roland use mm/s for output feed rate so divide by 60
; this is ame as * (1/60)
;
FORMAT = [F|@||1.1|0.0166]
;
; Tool moves in x,y and z
;
; Roland uses positions in 0.01 of a mm
;
FORMAT = [X|@|X|1.0|100]
FORMAT = [Y|@|Y|1.0|100]
FORMAT = [Z|@|Z|1.0|100]

; Home tool positions 
FORMAT = [XH|@|X|1.0|100]
FORMAT = [YH|@|Y|1.0|100]
FORMAT = [ZH|@|Z|1.0|100]
FORMAT = [AH|@|A|1.4]
;
; Set up program header
;
; Reset all values to default except P1 and P2
;
START = ";;^DF;!MC0;V50.0;^PA;!ZM0;!ZEY-4250;!ZEA0.0;!RC[S];!MC1;!ZEY0;!ZE[YH][ZH][RH];"
;
; Commands output when a rotary index takes place
;
ROTARY_A_INDEX = "!VZ50.0;!ZE[ZH];"
ROTARY_A_INDEX = "!ZEY-3000;"
ROTARY_A_INDEX = "!ZE[AH];"
ROTARY_A_INDEX = "!ZE[YH];"
;
;
; Set feed rate used for rapid moves 50mm/s = 3000mm/min
;
RAPID_FEED_RATE = 300
;
; Set up data output on change of feed rate
;
; Program moves
;
FIRST_RAPID_RATE_MOVE  = "!VZ50.0;!ZE[X][Y][Z];"
;
FIRST_FEED_RATE_MOVE  = "!VZ[F];!ZE[X][Y][Z];"
FEED_RATE_MOVE  = "!ZE[X][Y][Z];"
;
; End of file - go home and stop spindle
;
END = "!VZ50.0;!ZE[ZH];"
END = "!ZEY-3000;"
END = "!ZEA0.0;"
END = "!ZE[YH];"
END = "!MC0;^DF;"
