EasyManua.ls Logo

Tormach 1100MX - Subroutine Parameters Reference; Named Parameters Reference; Expressions; Binary Operators Reference

Tormach 1100MX
270 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
10: PROGRAMMING
l 5261-5270: Coordinate System 3, G56 (X Y Z A B C U V W
R)
l 5281-5290: Coordinate System 4, G57 (X Y Z A B C U V W
R)
l 5301-5310: Coordinate System 5, G58 (X Y Z A B C U V W
R)
l 5321-5330: Coordinate System 6, G59 (X Y Z A B C U V W
R)
l 5341-5350: Coordinate System 7, G59.1 (X Y Z A B C U V
W R)
l 5361-5370: Coordinate System 8, G59.2 (X Y Z A B C U V
W R)
l 5381-5390: Coordinate System 9, G59.3 (X Y Z A B C U V
W R)
l 5399: Result of M66 – check or wait for input
l 5400: Current tool number
l 5401-5409: Tool offset (X Y Z A B C U V W)
l 5410: Current tool diameter
l 5411: Current tool front angle
l 5412: Current tool back angle
l 5420-5428: Current position including offsets in current
program units (X Y Z A B C U V W)
Subroutine Parameters Reference
Subroutine parameters are specifically reserved for call
arguments. By definition, these are parameters #1-#30 and are
local to the subroutine.
Named Parameters Reference
Named parameters work like numbered parameters, but are
easier to read and remember. All parameter names are
converted to lowercase and have spaces and tabs removed.
Named parameters must be enclosed with < > marks.
#<named parameter here> is a local named parameter.
By default, a named parameter is local to the scope in which it
is assigned.
You can’t access a local parameter outside of its subroutine.
This is so two subroutines can use the same parameter names
without fear of one subroutine overwriting the values in
another.
#<_global named parameter here> (i.e., name
starting with an underscore) is a global named parameter.
They are accessible from within called subroutines and may
set values within subroutines that are accessible to the caller.
As far as scope is concerned, they act just like regular numeric
parameters. They are not made persistent by storage in a file.
The global parameters _a, _b, _c, . . . _z are reserved for
special use. Do not use these parameters.
E X A M P L E S
l #<_endmill_dia> = 0.049 is a declaration
of named global variable.
l
#<_endmill_rad> = [#<_endmill_
dia>/2.0] is a reference to previously declared
global variable.
l
o100 call [0.0] [0.0] [#<_inside_
cutout>-#<_endmill_dia>] [#<_Zcut>]
[#<_feedrate>] is mixed literal and named
parameters.
10.6.2 Expressions
An expression is a set of characters starting with a left bracket
([) and ending with a right bracket (]). Located between the
brackets are numbers, parameter values, binary operators,
functions, and other expressions. An expression is evaluated to
produce a number. An example of an expression is:
[1 + acos[0] - [#3 ** [4.0/2]]]
All expressions on a line are evaluated when the line is read
and before anything on the line is executed.
Read the following sections for reference:
Binary Operators Reference 191
Functions Reference 192
Binary Operators Reference
Binary operators only appear inside expressions. There are
three types of binary operators: mathematical, logical, and
relational.
There are four basic mathematical operations: addition (+),
subtraction (-), multiplication (*), and division (/). In addition,
the modulus operation (MOD) finds the remainder after
division of one number by another number. The power
operation (**) of raising the number on the left of the
operation to the power on the right. There are three logical
operations: non-exclusive or (OR), exclusive or (XOR), and
logical and (AND).
©Tormach® 2020
Specifications subject to change without notice.
Page 191 Tormach 1100MX Operator's Manual (Version 0720A)
For the most recent version, see tormach.com/support

Table of Contents