My Haas machine errors out when I have 4 decimal places for my rotary axes. I'd like to keep the number of decimal places for my X,Y,Z moves to 4 decimal places & change my rotary moves to 3 decimal places. How do I do that?
Was this article helpful?
0 out of 0 found this helpful
Comments
The global setting for number of decimal places can be changed easily in the Universal Post Generator (UPG). Open up your source file (.SRC) in the UPG & browse to the Header tab. Ensure the Global Places>Right Places is set to 4 as shown in the image Global_Places_-_4DP.png
To set the rotary axes to have 3 decimal places, this can to be done in the EC Post Editor environment. Save & close your .SRC file in the UPG. To access the EC Post Editor, go to the File Menu in the UPG & select the EC Post Editor option. Open the machine specific .LIB file (not Mill.LIB) typically called the name of your post processor (eg HAAS VF3.LIB). Note you will need to use the All Files setting to see the file in the Open dialog box. Once opened browse in the Attributes list for :ATTRNAME=A & :ATTRNAME=B. These are the two attributes for your rotary axes. Add the two lines, :LEFT_PLACES=3 & :RIGHT_PLACES=3 as shown below
:ATTRNAME=A
:ATTRTYPE=POST
:ATTRVTYPE=DECIMAL
:ATTREMARK=Angle A
:CODETYPE=FORMAT
:ATTRCFUNC=CALC_ROT_ANGLE_A(A,MACH,INC_ROT_TILT_A,REG_A)
:WORD_ADDRESS_BEF=|B
:WORD_ADDRESS_AFT=|
:LEFT_PLACES=3
:RIGHT_PLACES=3
:MODAL=YES
:UNITFLAG=NON_CONVERT
:ATTREND
*-----------------------------------
:ATTRNAME=B
:ATTRTYPE=POST
:ATTRVTYPE=DECIMAL
:ATTREMARK=Angle B
:CODETYPE=FORMAT
:ATTRCFUNC=CALC_ROT_ANGLE_B(B,MACH,INC_ROT_TILT_B,REG_B)
:WORD_ADDRESS_BEF=|A
:WORD_ADDRESS_AFT=|
:LEFT_PLACES=3
:RIGHT_PLACES=3
:MODAL=YES
:UNITFLAG=NON_CONVERT
:ATTREND
Save & close the .LIB file. in the UPG go to File>Compile Source & point to the .SRC file. Click Compile. Your new post processor will be generated in the location defined in File>Preferences>CTL Path. Note the default location is C:\UPG\ctl.
https://hawkridgesystems.zendesk.com/attachments/token/7vBDMdtrGaCPfHtYAD5YPQr6o/?name=Global_Places_-_4DP.png
https://hawkridgesystems.zendesk.com/attachments/token/2Gdkg7yN6QRlXTeSM6599Dpa8/?name=Rotary_Decimal_Places.png
Please sign in to leave a comment.