Declaration Statements - FORMAT

FORMAT is the name of the declaration statement and must be the first word on the line. The name of the format type must follow the word FORMAT, be enclosed in parentheses and be preceded and followed by a space. The variable(s) which are being defined follow, separated by spaces. System variables appearing in the FORMAT statement, will be assigned this format type instead of the default.

Example:

FORMAT (USER_1) XPOS XLIST [500] X_CURPOS $X;

In this example, the format type USER_1 is assigned to:

XPOS

User defined variable

XLIST[500]

Array of 500 User defined variables

X_CURPOS

System variable (with a default COORDINATES format)

$X

Tools/Cycles User defined variable.

Instead of USER_1, one of the 18 format options listed below can be used.

Available Format Types:

0. Character
1. Coordinates
2. Angles
3. Feed
4. Spindle_speed
5. Dwell
6. Sequencing
7. Tool
8.-17.User_[1-10]
18. Real

Character format may also be declared as a format type although it is not defined in the DFPost stage. All variables assigned the Character format type are modal, by default. The maximum number of characters in a string is 20.

Format Options Defined for Each Format Type

1. Max. digits for integer part

< >

2. Max. digits for fractional part

< >

3. Min. digits for integer part

< >

4. Min. digits for fractional part

< >

5. Leading zeroes

<NO,YES>

6. Trailing zeroes

<NO,YES>

7. Character for the + sign

< >

8. Character for the - sign

< >

9. Character for decimal point

< >

10. Use decimal point for whole numbers question

<NO,YES>

11. Representation of value 0

< >

12. Modal value question

<NO,YES>

 

Notes:

  • The DFPOST FORMAT "REAL" has been changed.

    In the DFPOST, the Min/Max number of digits is "9" (9,9,... is the most accurate number that can be defined in the DFPOST).

    To allow the output of the full range of double-precision numbers, the REAL FORMAT is defined internally as 14,14,1,1,.....

    The Min/Max number of digits that appear in the DFPOST has no effect on the FORMAT of REAL, however, all the other parameters (e.g. leading zeroes, modal) influence the REAL FORMAT.

    It is recommended to define the REAL format as:
    ....,YES,YES, _,.,YES,0.0,NO

  • 0 G Max. digits G Min. digits G 9

  • - Max number of digits:

integer:

number requiring more digits than specified, will not be created and an error will appear.

fractional:

digits after this place will be rounded.

 - Min number of digits:

all the places from the last digit (not "0") to the "Min number of digits" are filled with BLANKS.

 - Leading/Trailing zeroes:

if equal to YES, instead of the BLANKS mentioned above, ZEROES will be written.

format

number

output \J "A" A "," ;

4,3,2,2,YES,YES

A=1.5

A01.50,

4,3,2,2,NO ,NO

A=1.5

A 1.5 ,

4,3,4,3,YES,YES

A=1.5

A0001.500,

  • Although it is possible to define an 18 digit number, only the first 14 non zero digits are taken into account.

Example:

The number 012345678.123456789 is represented internally as 12345678.123457...

  • Variables that are used for calculations, or in expressions, should be defined using the accepted characters:

1. Max. digits for integer part

< >

2. Max. digits for fractional part

< >

3. Min. digits for integer part

< >

4. Min. digits for fractional part

< >

5. Leading zeroes

<NO,YES>

6. Trailing zeroes

<NO,YES>

7. Character for the + sign

+ ( or nothing )

8. Character for the - sign

-

9. Character for decimal point

.

10. Use decimal point for whole numbers question

YES

11. Representation of value 0

0.0

12. Modal value question

<NO,YES>

  • Integer number should be defined with trailing zeroes YES.

Some functionality may be dependent on the product package. Contact your Reseller if you require a license.