Fanuc Series 15i/150i-MA (Programming) Operators Manual

17.CUSTOM MACRO PROGRAMMING B-63324EN/03
- 584 -
NOTE
1 If an unregistered variable name is specified, a
PS0098 alarm is issued.
2 If an invalid value (such as a negative value) is
specified as suffix n, a PS0099 alarm is issued.
- Naming of common variables
By specifying a variable name set with the SETVN command described
later, common variable read and write operations are enabled. When
specifying a common variable name, use the format [# common
variable name] for [#VAR500].
[Example]
X[#POS1] Y[#POS2]; :Position specification using variable
names
[#POS1] = #100+#101; :Assignment statement execution using a
variable name
#[100+[#ABS]] = 500; :Same as above (variable number
specification)
#500 = [1000+[#POS2]*10]; : Reading of a variable by variable name
specification

Leave a Reply

Your email address will not be published. Required fields are marked *