12.11.2014 Views

August 2011 - Haas Automation, Inc.

August 2011 - Haas Automation, Inc.

August 2011 - Haas Automation, Inc.

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. When writing your program in the FANUC format it is important to<br />

not to have blank spaces or carriage returns (CR) in your DPRNT<br />

statement.<br />

DPRNT Program Example<br />

The following is an example of one way to program using the FANUC style.<br />

O0001<br />

G00 G17 G40 G49 G80 G90 G98<br />

T101 M06<br />

G54 X0 Y0 S1000 M03<br />

POPEN<br />

(Open FANUC serial port)<br />

DPRNT [ ]<br />

(Clear/Reset <strong>Haas</strong>)<br />

G04 P64<br />

DPRNT [ZG090] (Servo Control Step should now read “00” )<br />

G04 P64<br />

DPRNT [ZS000.000] (Loads Step Size 000.000 into Step 00)<br />

G04 P64<br />

DPRNT [ZF050.000] (Loads Feed Rate 50 units/sec into Step 00)<br />

G04 P64<br />

Mnn<br />

(Remote Cycle Start, moves to P000.0000, sends<br />

M-FIN)<br />

(Dwells to avoid DPRNT while M-FIN is still high)<br />

G04 P250<br />

G43 Z1. H01 M08<br />

G81 Z-.5 F3. R.1<br />

(Drills at: X0 Y0 P000.000)<br />

DPRNT [ ] (Make certain <strong>Haas</strong> Input Buffer is Clear )<br />

G04 P64<br />

#100 = 90. (Example of correct Macro substitution)<br />

DPRNT [ZS#100[33] ] (Loads Step Size 090.000 into Step 00)<br />

(Leading Zero converted to Space Param. must be off)<br />

G04 P64<br />

Mnn<br />

G04 P250<br />

X0<br />

G80<br />

PCLOS<br />

G00 Z0 H0<br />

M05<br />

M30<br />

(Remote Cycle Start moves to P090.000, sends M-FIN)<br />

(Drills at: X0 Y0 P090.000)<br />

(Cancels drill cycle)<br />

(Close FANUC serial port)<br />

Upload / Download<br />

The serial interface may be used to upload or download a program. All data is sent<br />

and received in ASCII code. Lines sent by the controller are terminated by a carriage<br />

return (CR) and line feed (LF). Lines sent to the controller may contain a LF,<br />

but it is ignored and the lines are terminated by a CR.<br />

Upload or download is started from Program mode with the G code displayed.<br />

96-0315 Rev M<br />

<strong>August</strong> <strong>2011</strong><br />

15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!