EasyManua.ls Logo

Panasonic VR2 Series - Cos; Dec; DIV; Getel

Panasonic VR2 Series
236 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...
16-10
16-4-5. COS
Format
COS [Variable][Data]
Function It calculates a cosine value and
assigns the result to specified
variable.
Variable Variable the calculated value is to be
assigned to.
(GR, LR)
Condition Standard
Lock condition None
Data Calculation or variable (or the same type)
(Unit: degree)
Syntax check None
Example Calculate cos45 and assign the result to LR001.
COS LR001 45
16-4-6. DEC
Format
DEC [Variable]
Function It decrements the variable by 1. Variable Variable whose value is to be decremented
by 1.
Condition Standard (GB, LB, GI, LI, GL, LL)
Lock condition None
Syntax check None
Example Decrements the value of LR001 by 1.
DEC LR001
16-4-7. DIV
Format
DIV [Variable 1] [Variable 2]
Variable 1 Function It executes a division.
If the integer type is selected as the value of the
target variable name, it omits decimals.
Condition Standard
Variable whose value is to be
referred to and the result is to be
assigned to. (GB, LB, GI, LI, GL,
LL)
Lock condition None Variable 2:
Syntax check Error if both variable 1 and 2 are teaching point
type or 3-D type, or if variable 1 and 2 are
teaching point type and 3-D type.
Value or variable (of the same
type)
Example Divide variable LR001 by 10.
DIV LR001, 10
16-4-8. GETEL
Format
GETEL [Variable 1] = [Variable 2]
Variable 1 Target variable (GR, LR) Function It refers to the element of the teaching point type,
3-D type or robot type variable.
Variable 2 Value to be extracted
Element (GD, GT)
Condition None
Lock condition None
Syntax check Error if variable to be assigned to is not teaching
point type, 3-D type or robot type variable.
X: a point on the X-axis.
Y: a point on the Y-axis.
Z: a point on the Z-axis.
Example Extract the element X of variable GD001 to LR001.
GETEL LR001 = GD.X GD001

Table of Contents

Related product manuals