EasyManua.ls Logo

Janome JR2000N Series - VARIABLE, COMMENT, SYSTEM CONTROL; Variable Declaration and Assignment: declare, let

Janome JR2000N Series
99 pages
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...
Features II JS/JSR4400N SCARA Robot
JSG GANTRY Robot
JR2000N Desktop Robot
90
VARIABLE, COMMENT, SYSTEM CONTROL
Variable Declaration and Assignment: declare, let
A variable that is activated only in point job data containing a declare command and a user-defined
function (defined in the Customizing mode) is referred to as a local variable.
When a local variable is declared, it is necessary to set the variable type and the identifier. The
identifier is used as a variable name and the variable type can be selected from either the numeric
type or the string type.
A local variable can also be declared as an up to three-dimensional array.
The let command assigns the right-hand operand (numeric value, variable value, or evaluation of
string expression) to the left-hand operand. When this command is input, only an expression is
displayed.
Command Category Command Parameter Job
declare
Variable Type,
Variable Name
Local variable declaration
Variable, Comment,
System Control
let Expression
Assign right-hand operand to the left-hand
operand.
e.g. declare command
declare numeric abc
declare string def
Numeric variable abc declaration
String variable def declaration
e.g. let command
count = 0
count = count + 1
count = in - out
total = nin * 365
tsuki = total / 12
fullname=name1 & name2
Assign 0 to the variable count.
Add 1 to the variable count.
Assigns the difference of the value of out subtracted from
the value of in to the variable count.
Assigns the product of 365 multiplied by the value of nin to
the variable total.
Assigns the quotient of the value of total divided by 12 to
the variable tsuki.
Assigns the string composed of name1 and name2 to the
variable fullname.

Table of Contents

Related product manuals