![Mitsubishi Electric M700V Series Скачать руководство пользователя страница 348](http://html.mh-extra.com/html/mitsubishi-electric/m700v-series/m700v-series_programming-manual_238523348.webp)
13. Program Support Functions
13.5 User Macro Specifications
336
Variable name setting and quotation
Any name (variable name) can be given to common variables #500 to #519. It must be composed
of not more than 7 alphanumerics and it must begin with a letter. Do not use "#" in variable names.
It causes an alarm when the program is executed.
Format
SETVN n [ NAME
1
, NAME
2
, • • • • • • • ] :
n
: Head number of variable to be named
NAME1
: #n name (variable name)
NAME2
: #n + 1 name (variable name)
Variable names are separated by a comma (,).
Detailed description
(1) Once variable names have been set, they will not be cleared even when the power is switched
off.
(2) Variables in programs can be quoted by their variable names. In cases like this, the variables
should be enclosed in square parentheses.
(Example 1)
G01X [#POINT1] ;
[#NUMBER] = 25 ;
(3) The variable numbers, data and variable names appear on the screen of the setting and
display unit.
(Example 2)
Program ...... SETVN500 [A234567, DIST, TOOL25] ;
[Common variables]
#500 -12345.678 A234567
#501 5670.000 DIST
#502 -156.500 TOOL25
#518 10.000 NUMBER
Common variable #(502) Data (-156.5) Name (TOOL25)
(Note)
At the head of the variable name, do not use the characters determined by the NC for
use in arithmetic commands, etc. (e.g. SIN, COS).