
The following values are stored concretely. (These are same as format
of cnc_rdpmacro() function.)
Value to be
written mcr_val dec_val
---------------+---------------+--------
void 0 -1
0.000 0 3
0.0000001 1 7
0000.0001 1 4
00000.100 100 3
00001.000 1000 3
00010.000 10000 3
100000.00 10000000 2
99999999. 99999999 0
00123.000 123000 3
-00123.000 -123000 3
When "123." is written, "mcr_val=123000, dec_val=3" isn't
only available format like above but also "mcr_val=123,
dec_val=0" or "mcr_val=1230, dec_val=1", etc, are available.
"void" can be written.
Also expanded P-code macro variables (after #20000) which are used
as fixed integer are written as floating point variables.
The window internal routine converts floating format into fixed
integer format.
This function can write only P-code macro variables whose number are
equal to or more than 10000.
[Example]
The following program writes the specified value in the specified
P-code macro variable.
#include <data.h>
#include <fwindow.h>
/* number is variable number to be written. */
/* value is value to be written. */
/* dec is decimal digit number. */
short example( long number, long value, short dec )
{
short ret ;
ret = cnc_wrpmacro( number, value, dec ) ;
return ( ret ) ;
}