3.FP FUNCTIONS B-66284EN/01
- 314 -
[Example]
wrset[5421_2_8_0_9_200]
Data from which ten keys are input to the second axis of
axis type setting data number 5421(four byte type data) is
written, and this processing result is written in D200.
wrset[5410_0_8_1000_99_0_2]
Data 1000 is written in setting data number 5410(four byte
type data) on 2path side usual (It is not an axis type) 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 setting parameter number “datano”.
4 Incorrect axis number “type”.
Any data other than -1, 0 or (1,..,amount of controlled axes)
has been specified.
5 Invalid value of the setting parameter to be written.
For example, when any data other than 0,..,3 was attempted
to write for I/O device number, this return code is returned.
-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.42 Reading custom macro variable
16
i 18i 21i PMi-D PMi-H 30i 31i 32i
Support CNC
○ ○ ○ ○ ○ ○ ○ ○
○:available
-:unavailable
[Function name]
rdmacro
[Data type]
7: Floating-Point
[Format/with arguments]
rdmacro[number_pmc_address]
[Arguments]
number Custom macro variable number
Local variables ( #1,..,#33 )
Readable. The local variables which belong to the
macro program just being executed when the
application program calls this function are read.
Common variables ( #100,..,#149, #500,..,#531 )
Readable. In case that Custom macro common variable
addition option is added, #100,..,#199 and #500,..,#999
are available to be read.
System variables ( #1000,.. )
Readable.
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