
3.FP FUNCTIONS B-66284EN/01
- 316 -
System variables ( #1000,.. )
Writable for only changeable variables.
data1 Variable value converted into integer. (0 is specified at
the ten keys input.)
data2 Digit number after decimal point. (0 is specified at the
ten keys input.)
pmc Kind of PMC address for processing result notification
5 : R
9 : D
12 : E (PMC-SB7, PMC for Series 30i)
99 : Processing result is not notified
address PMC address where processing result is written (The
area in two bytes is used from the specified address)
Please specify 0 when you specify 99 for a kind of the
PMC address.
[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, “data1=123000, data2=3” isn’t only
available format like above but also “data1=123, data2=0” or
“data1=1230, data2=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).