20
96-5047 rev L June 2005
RS 232 Command Blocks:
DPRNT[ ]
Clear / Reset receive buffer
DPRNT [ZGnn ]
Loads G-code nn into step no. 00, “0”is a place holder
DPRNT[ ZSnn.nnn ]
Loads Step Size nnn.nnn into Step no. 00
DPRNT[ ZFnn.nnn ]
Loads Feed Rate nnn.nnn into Step no. 00
DPRNT[ZLnnn]
*Loads Loop Count into Step no. 00
DPRNT[ZH]
Return home immediatley without M-FIN
DPRNT [ZB]
*Activates Remote Cycle Start without M-FIN
DPRNT [B]
*Activates Remote Cycle Start without M-FIN regardless of Haas Servo Control
Parameter 21 setting
*Not for general use in this application.
NOTES:
1.
Use of “ Z “ above assumes Haas Servo Control Parameter 21 = 6.
2.
Leading and trailing “0” must be included ( Correct: S045.000, Wrong: S45).
3.
When writing your program in the FANUC format it is important not to have blank spaces or
carriage returns (CR) in your DPRNT statement.
DPRNT PROGRAM EXAMPLE
The following is an Example of one way to program the FANUC.
O0001
G00 G17 G40 G49 G80 G90 G98
T101 M06
G54 X0 Y0 S1000 M03
POPEN
( OPEN FANUC SERIAL PORT)
DPRNT [ ]
( CLEAR /RESET HAAS)
G04 P64
DPRNT [ZG090]
( SERVO CONTROL STEP SHOULD NOW READ “00“ )
G04 P64
DPRNT [ZS000.000]
( LOADS STEP SIZE 000.000 INTO STEP 00)
G04 P64
DPRNT [ZF050.000]
( LOADS FEED RATE 50 UNITS / SEC INTO STEP 00)
G04 P64
Mnn
(REMOTE CYCLE START, MOVES TO P000.0000, SENDS M-FIN)
G04 P250
(DWELLS TO AVOID DPRNT WHILE M-FIN IS STILL HIGH)
G43 Z1. H01 M08
G81 Z-.5 F3. R.1
(DRILLS AT: X0 Y0 P000.000)
DPRNT [ ]
(MAKE CERTAIN HAAS INPUT BUFFER IS CLEAR )
G04 P64
#100 = 90.
(EXAMPLE OF CORRECT MACRO SUBSTITUTION)
DPRNT [ZS#100[33] ]
( LOADS STEP SIZE 090.000 INTO STEP 00)
(LEADING ZERO CONVERTED TO SPACE PARAM. MUST BE OFF)
G04 P64
Mnn
(REMOTE CYCLE START MOVES TO P090.000, SENDS M-FIN)
G04 P250
X0
(DRILLS AT: X0 Y0 P090.000)
G80
(CANCELS DRILL CYCLE)
PCLOS
(CLOSE FANUC SERIAL PORT)
G00 Z0 H0
M05
M30
Summary of Contents for HRT 160
Page 9: ...8 96 5047 rev L June 2005 HRT210SHS MACHINE DIMENSIONS ...
Page 55: ...54 96 5047 rev L June 2005 9 HRT ASSEMBLY DRAWINGS ...
Page 58: ...57 96 5047 rev L June 2005 ...
Page 59: ...58 96 5047 rev L June 2005 ...
Page 61: ...60 96 5047 rev L June 2005 ...
Page 62: ...61 96 5047 rev L June 2005 ...
Page 63: ...62 96 5047 rev L June 2005 ...
Page 64: ...63 96 5047 rev L June 2005 ...