There is a way to drop trailing zeros for decimal values but it requires
that a logic expression with a format function be placed in the template
file at every location that a value may be output.

For example: 

@LINE
< #DCOMP#EXC D#DOFF>< #MOV>#EXLN
#IF(#INT(#XPOS)<>#XPOS)<< X#XPOS>>#ELSE<< X#FMT(#XPOS(T3,0))>>#EXLN
#IF(#INT(#YPOS)<>#YPOS)<< Y#YPOS>>#ELSE<< Y#FMT(#YPOS(T3,0))>>#EXLN
#IF(#INT(#ZPOS)<>#ZPOS)<< Z#ZPOS>>#ELSE<< Z#FMT(#ZPOS(T3,0))>>#EXLN
< F#FEED>


Note: The #FMT() function will override the SMF file format setting and
force the variable to be output to the specified format for a single
occurrence only. The #FMT statement will not change the SMF setting itself.

Format Expression:
D3.4 10.75
T3.4 107500
L3.4 01075
F3.4 0107500
P3.4 10.7500
E3.4 010.7500

Here is an example of 2 formats where trailing digits are dropped from the
value to be output. 

D3.0 10.
T3.0 10
L3.0 010
F3.0 010
P3.0 10.
E3.0 010.

The use of these formats will not automatically check for a decimal value
and will only output whole numbers. That is why they must be used in
conjunction with a logic expression.

=============================================
 Fred Lauzus, CAM Programming Coordinator
 High Steel Structures, Incorporated
 mailto:[EMAIL PROTECTED] http://www.highsteel.com
=============================================
 



-----Original Message-----
From: Gregg Olson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 7:49 PM
To: Kevin Barry
Cc: [EMAIL PROTECTED]
Subject: Re: [mfg-smartcam] Co-ordinate format


Kevin,

Sorry to say, there is no way to specify a seperate whole integer output
format
in addition to the decimal output format.   This was something that never
made
it into the product.

--gregg

Kevin Barry wrote:

> Hi everyone
>
> I am new to this user group. This may have been answered before.
>
> I want to output the code using whole numbers (integers) instead of having
> the decimal point and a trailing zero.
>
> I use V9.1 of Advanced 3D Machining and Advanced Turning.
> I program 3 Okuma's and they do not require decimal points.
> I have not been successful in outputing concise code.
>
> I want X0 Y10 Z5 instead of X0.0 Y10.0 Z5.0
>
> There is too many useless characters output at the moment and I want to
cut
> this down.
>
> Thanking you
> Kevin Barry
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
>
> ======================================================================
> To find out more about this mailing list including how to unsubscribe,
> send the message "info mfg-smartcam" to [EMAIL PROTECTED]
> ======================================================================

--

Gregg Olson
Development Manager
SDRC CAM Products


======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================
======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to