Math - YASKAWA XTRAWARE - V3.0 Manual

Supporting xtradrive versions 3.04 - 3.23
Table of Contents

Advertisement

Example
The program has two nesting levels:
Explanation
First level: Loop_2 and Loop_3.
Second level: Loop1.
Ten movements to the positive side will occur (first loop marked by
LABEL 2), then ten to the negative side (second loop marked by
LABEL 3). The two sets of movements will be repeated 5 times
(2nd nesting level that contains the two 1st nesting level loops).
See Also
LABEL

MATH

Table explanation
Group
Variables
Syntax
MATH <Result> <R Operator> <Variable> <Operation> <Value>
Op. Code
134
Modes
Immediate; Sequential; Program
Description
Sets the value of the specified <variable> to the result of a
mathematical operation on two elements. If the result is a fraction,
it will be rounded downward to the nearest integer.
Syntax
Result
Arguments
R Operator
Variable
XtraWare User Manual
The result of the calculation will be
stored in the <Result> variable. Any of
the read/write system variables can be
specified. See Chapter 9, List of System
Variables.
Serial
1
U
Operator:
Operator
=
Serial
1
U
Can be an integer number or any of the
system variables. See Chapter 9, List of
System Variables.
Serial
1
U
Command Reference
Code
18
137

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xtraware 3.0

Table of Contents