Communication Preparatory Commands Formatted Output - Autodesk Community

[Pages:3]Haas Parameter 91 92 93 94 95 96 97 98 99 100

O Code 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019

Haas Parameter 81 82 83 84 85 86 87 88 89 90

M Macro Call 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009

G Code Aliasing

.

M Code Aliasing

Setting an aliasing parameter to 0 disables aliasing for the associated subrouWLQH ,I DQ DOLDVLQJ SDUDPHWHU LV VHW WR D *FRGH DQG WKH DVVRFLDWHG VXEURXWLQH is not in memory, then an alarm will be given.

Programming

COMMUNICATION WITH EXTERNAL DEVICES - DPRNT[ ]

Macros allow additional capabilities to communicate with peripheral devices. One can do digitizing of parts, provide runtime inspection reports, or synchroQL]H FRQWUROV ZLWK XVHU SURYLGHG GHYLFHV 7KH FRPPDQGV SURYLGHG IRU WKLV DUH 323(1 '3517> @ DQG 3&/26

Communication Preparatory Commands POPEN and PCLOS are not required on the Haas mill. It has been included so that programs from different controls can be sent to the Haas control.

Formatted Output 7KH '3517 VWDWHPHQW DOORZV WKH SURJUDPPHU WR VHQG IRUPDWWHG WH[W WR WKH VHULDO SRUW $Q\ WH[W DQG DQ\ YDULDEOH FDQ EH SULQWHG WR WKH VHULDO SRUW 7KH IRUP RI WKH '3517 VWDWHPHQW LV DV IROORZV '3517 >WH[W! QQQQ>ZI@! @

'3517 PXVW EH WKH RQO\ FRPPDQG LQ WKH EORFN ,Q WKH SUHYLRXV H[DPSOH WH[W! LV DQ\ FKDUDFWHU IURP $ WR = RU WKH OHWWHUV

DQG WKH VSDFH :KHQ DQ DVWHULVN LV RXWSXW LW LV FRQYHUWHG WR D VSDFH 7KH QQQQ>ZI@! LV D YDULDEOH IROORZHG E\ D IRUPDW 7KH YDULDEOH QXPEHU FDQ EH DQ\ PDFUR YDULDEOH 7KH IRUmat [wf] is required and consists of two digits within square brackets. Remember that macro variables are real numbers with a whole part and a fractional SDUW 7KH ?UVW GLJLW LQ WKH IRUPDW GHVLJQDWHV WKH WRWDO SODFHV UHVHUYHG LQ WKH RXWSXW IRU WKH ZKROH SDUW 7KH VHFRQG GLJLW GHVLJQDWHV WKH WRWDO SODFHV UHVHUYHG IRU WKH IUDFWLRQDO SDUW 7KH WRWDO SODFHV UHVHUYHG IRU RXWSXW FDQQRW EH HTXDO WR ]HUR RU JUHDWHU WKDW HLJKW 7KXV WKH IROORZLQJ IRUPDWV DUH LOOHJDO >@ >@ >@ >@

QRW OHJDO IRUPDWV

A decimal point is printed out between the whole part and the fractional part. 7KH IUDFWLRQDO SDUW LV URXQGHG WR WKH OHDVW VLJQL?FDQW SODFH :KHQ ]HUR SODFHV DUH UHVHUYHG IRU WKH IUDFWLRQDO SDUW WKHQ QR GHFLPDO SRLQW LV SULQWHG RXW 7UDLOing zeros are printed if there is a fractional part. At least one place is reserved for the whole part, even when a zero is used. If the value of the whole part has

96-8000 Rev AN April 2012

Original Instructions

fewer digits than have been reserved, then leading spaces are output. If the YDOXH RI WKH ZKROH SDUW KDV PRUH GLJLWV WKDQ KDV EHHQ UHVHUYHG WKHQ WKH ?HOG is expanded so that these numbers are printed.

$ FDUULDJH UHWXUQ LV VHQW RXW DIWHU HYHU\ '3517 EORFN

'3517> @ ([DPSOHV

Code 1 1 '3517>; >@ = >@ 7 >@@ 1 '3517>

0($685(' ,16,'( ',$0 (7(5

@ 1 '3517>@ 1 1 '3517>; >@@

Output

; = 7 0($685(' ,16,'( ',$0(7(5

(no text, only a carriage return)

;

Execution '3517 VWDWHPHQWV DUH H[HFXWHG DW EORFN LQWHUSUHWDWLRQ WLPH 7KLV PHDQV WKDW WKH SURJUDPPHU PXVW EH FDUHIXO DERXW ZKHUH WKH '3517 VWDWHPHQWV DSSHDU LQ the program, particularly if the intent is to print out.

* LV XVHIXO IRU OLPLWLQJ ORRNDKHDG ,I \RX ZDQWHG WR OLPLW ORRNDKHDG LQWHUSUHtation to one block, you would include the following command at the beginning RI \RXU SURJUDP 7KLV DFWXDOO\ UHVXOWV LQ D WZR EORFN ORRNDKHDG

* 3

7R FDQFHO WKH ORRNDKHDG OLPLW FKDQJH WKH FRPPDQG WR * 3 * FDQQRW be used when cutter compensation is active.

Editing Improperly structured or improperly placed macro statements will generate an DODUP %H FDUHIXO ZKHQ HGLWLQJ H[SUHVVLRQV EUDFNHWV PXVW EH EDODQFHG

7KH '3517> @ IXQFWLRQ FDQ EH HGLWHG PXFK OLNH D FRPPHQW ,W FDQ EH GHOHWHG moved as a whole item, or individual items within the bracket can be edited. Variable references and format expressions must be altered as a whole entity. If you wanted to change [24] to [44], place the cursor so that [24] is highlighted, enter [44] and press the write key. Remember, you can use the jog handle to PDQHXYHU WKURXJK ORQJ '3517> @ H[SUHVVLRQV

Addresses with expressions can be somewhat confusing. In this case, the DOSKDEHWLF DGGUHVV VWDQGV DORQH )RU LQVWDQFH WKH IROORZLQJ EORFN FRQWDLQV DQ address expression in X:

* * ; >&26 >@@ <

&255(&7

Here, the X and brackets stand-alone and are individually editable items. It is possible, through editing, to delete the entire expression and replace it with a ?RDWLQJSRLQW FRQVWDQW

146

Original Instructions

96-8000 Rev AN April 2012

* * ; <

:521*

7KH DERYH EORFN ZLOO UHVXOW LQ DQ DODUP DW UXQWLPH 7KH FRUUHFW IRUP ORRNV DV follows:

* * ; <

&255(&7

1RWH WKDW WKHUH LV QR VSDFH EHWZHHQ WKH ; DQG WKH =HUR 5(0(0%(5 ZKHQ you see an alpha character standing alone it is an address expression.

FANUC-STYLE MACRO FEATURES NOT INCLUDED IN HAAS CNC

7KLV VHFWLRQ OLVWV WKH )$18& PDFUR IHDWXUHV WKDW DUH QRW DYDLODEOH RQ WKH +DDV control.

0 $OLDVLQJ 5HSODFH * 3QQQQ ZLWK 0QQ 352*6

*

Modal call in every motion block

*

Modal call in every motion block

*

Modal cancel

M98

$OLDVLQJ 7 FRGH 352* 9$5

#149, enable bit

M98

$OLDVLQJ 6 &RGH 352* 9$5

HQDEOH ELW

M98

$OLDVLQJ % &RGH 352* 9$5

#146, enable bit

SKIP/N

N=1..9

0LUURU LPDJH RQ ?DJ HDFK D[LV

Programming

#4201-#4320

1DPHV IRU 9DULDEOHV IRU 'LVSOD\ 3XUSRVHV $7$1 > @> @ %,1 > @ %&' > @ )83 > @ LN [ ] EXP [ ] $'3 > @ %3517 > @

Current block modal data Current servo deviation

$UFWDQJHQW )$18& YHUVLRQ &RQYHUVLRQ IURP %&' 72 %,1 &RQYHUVLRQ IURP %,1 72 %&' 7UXQFDWH IUDFWLRQ FHLOLQJ Natural logarithm %DVH ( ([SRQHQWLDWLRQ Re-Scale variable to whole number

7KH IROORZLQJ FDQ EH XVHG DV DOWHUQDWLYH PHWKRGV IRU DFKLHYLQJ WKH VDPH UHVXOWV IRU D IHZ RI WKH XQDYDLODEOH )$18& PDFUR IHDWXUHV

*272QQQQ

Searching for a block to jump in the negative direction, i.e. backwards through a program, is not necessary if you use unique N address codes.

A block search is made starting from the current block being interpreted. When the end of the program is reached, searching continues from the top of the program until the current block is encountered.

96-8000 Rev AN April 2012

Original Instructions

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download