
B-66284EN/01 3.FP FUNCTIONS
- 315 -
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]
Reads the custom macro variable data stored in the CNC.
[Example]
rdmacro[100_9_200]
The data of common variable #100 is read, and this
processing result is written in D200.
rdmacro[1000_99_0_2]
The data of system variable #1000 on 2path side is read, 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 It has been failed to read custom macro variable because the
other application program has already started writing
custom macro variable. Or attempted to execute this
function while the other low-speed window function is
being executed.
Retry after completing currently executed window’s
process.
1.43 Writing custom macro variable
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
[Function name]
wrmacro
[Data type]
2: 2 bytes (signed)
[Format/with arguments]
wrmacro[number_data1_data2_pmc_address]
[Arguments]
number Custom macro variable number
Local variables ( #1,..,#33 )
Writable. The local variables which belong to the
macro program just being executed when the
application program calls this function are altered.
Common variables ( #100,..,#149, #500,..,#531 )
Writable. In case that Custom macro common
variable addition option is added, #100,..,#199 and
#500,..,#999 are available to be written.