Mitsubishi Electric M700V Series Programming Manual page 348

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

13. Program Support Functions
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
n
NAME1
NAME2
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] ;
(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] ;
(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).
, NAME
, • • • • • • • ] :
1
2
: Head number of variable to be named
: #n name (variable name)
: #n + 1 name (variable name)
[#NUMBER] = 25 ;
[Common variables]
#500
-12345.678
#501
5670.000
#502
-156.500
#518
10.000
Common variable
336
13.5 User Macro Specifications
A234567
DIST
TOOL25
NUMBER
#(502) Data (-156.5) Name (TOOL25)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents