Mitsubishi Electric MELDAS C6 Programming Manual page 221

Hide thumbs Also See for MELDAS C6:
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).
Workpiece coordinate shift amount
The workpiece coordinate system shift amount can be read using variables #2501 and #2601.
By substituting a value in these variables, the workpiece coordinate system shift amount can be
changed.
Axis
Workpiece coordinate
No.
system shift amount
1
2
, 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
#2501
#2601
213
13.5 User macro specifications
A234567
DIST
TOOL25
NUMBER
#(502) Data (-156.5) Name (TOOL25)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents