Formatable codes output numeric values. The first two sets of columns in the formatable code are related and define the numeric field for the value that is output.The first set of columns define the inch output; the second set of columns define the metric output.********************** FORMATABLE CODES ******************** Inch Output Metric Output *************************************************************** The first and fourth columns in each set control whether or not the leading or trailing digits need to be filled with zeros. The first column is for filling the leading digits; the fourth column is for filling the trailing digits. Possible options are:Y (for Yes): fill all N (for No): do not fill any 1: fill the first digit if necessary A (for All): This option applies to trailing digits only. This option will not only fill the trailing digits after the value but the leading digits before it as well. The second and fifth columns in each set control the number of digits added to each side of the decimal point.The third column in each set controls whether or not the number has a decimal point or is output as a real (non-integer) number.Y: Output a decimal point N: Do not output a decimal point R: Output a decimal point only when required for real numbers (non-integer), and no decimal point for integer whole numbers Note: The output with R depends on the option chosen for Fill Trailing Digits. For example, if Fill Trailing is set to 1 or Y and Number of Trailing Digits is greater than 0, then the decimal point should still be output even for an integer/whole number value. The use of R makes sense only if Trailing Digits is > 0 and Fill Trailing = N.Example: X outputSuppose that X is defined as shown below.XAbsolute : X N 4 N Y 4 N 5 N Y 3 1 1 N 0 0For Inch output it has No decimal point and 4 trailing digits, and Yes to fill trailing digits. That would give X15000 in Inch. With metric there are only 3 trailing digits, so the X output would be X1500. If the value was .01 for X, then X100 would be output in Inch and X10 would be output in Metric.Note that the Y only fills the trailing digits to the right of the value. This is usually acceptable for most machines, because essentially what you are working with are scaled values. X100 means 100 ten-thousandths of an inch, while X10 means 10 thousandths of a millimeter.If your machine needs the leading digits ahead of the value filled such that there are always a minimum number of digits in the value, then set trailing digits to A for All.XAbsolute : X N 4 N A 4 N 5 N A 3 1 1 N 0 0With the above definition, a value of .01 for Inch would output X0100 and for Metric it would give X010.Example: Tool number outputFor T in the initial sample, there are 2 leading digits. So if the Tool Number were 1, the output in the NC code would be T01. If the desired output were to be T1 instead, it would require this change:ToolNumber : T N 2 N N 0 N 2 N N 0 0 - - - -Example: Return plane outputSuppose the post contained the following:RPlane : R N 4 Y N 4 N 5 Y N 3 1 1 N 0 0RPlane is used in drilling canned cycles to give the R value of the reference clearance return plane. With the above sample, if the RPlane value was .1, the output would be R.1, and if the RPlane was 1, then R1. would be output.But what if we do not want the decimal point just hanging out there on either end by itself because it makes it hard for the operator to read? We would not want to say Yes to fill all digits, because filling all 4 digits in Inch would give us R0000.1000 or R0001.0000. Here is where it is useful to specify 1 to just fill the first digit. If we had:RPlane : R 1 4 Y 1 4 1 5 Y 1 3 1 1 N 0 0Then a value of .1 would be output as R0.1 (instead of R.1) and a value of 1 would be output as R1.0 (instead of R1.). If the value was 1.1, then the output would be R1.1, and no zeros would be added because the first digit to either side of the decimal is already occupied.« Formatable Codes"