
B-66244EN/03 3.FP FUNCTIONS
- 241 -
[Description]
Writes the custom macro variable data in the CNC.
Data1 and data2 are set as follows.
written value data1 data2
void 0 -1
0.000 0 3
0.0000001 1 7
00000.100 100 3
00001.000 1000 3
00010.000 10000 3
99999999. 99999999 0
-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.
[Example]
wrmacro[100_0_0_9_10]
Data is written in common variable #100 in the ten
keys input, and this processing result is written in D10.
wrmacro[1000_123456_2_99_0_2]
1234.56 is written in system variable # 1000 on 2path
side in the button control, and this processing result is
not notified.
[Value of processing result written in specified PMC area]
0 Successful.
2 Incorrect data block length "length".
3 Incorrect custom macro variable number "number".
5 Value of the custom macro variable is out of the limit.
6 There are no required options.
The related options;
- Custom macro.
- Custom macro common variable addition
(#100,..,#199, #500,..,#999).
-1 Attempted to execute this function while the other
low-speed window function is being executed.
Retry after completing currently executed window's
process.
1.44 Reading modal data
[Function name]
rdmodal
[Data type]
6: String
[Format/with arguments]
rdmodal[type_block_inp_pmc_address]