EasyManua.ls Logo

Panasonic VR2 Series - Arithmetic Operation Commands; Add; Atan; Clear

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-9
16-4. Arithmetic operation commands
16-4-1. ADD
Format
ADD [Variable] [Value]
Function It adds a value to variable.
Condition Standard
Lock condition None
Variable Variable whose value is to be referred to, and
the calculated value is to be assigned to.
(GB, LB, GI, LI, GL, LL, GR, LR, GD)
Syntax check None Value Value or variable (of the same type and size)
Example Add 10 to Variable LR001.
ADD LR001, 10
Note:
If the value is another variable, it must be the same type as the
other variable.
16-4-2. ATAN
Format
[Variable]=ATAN[Variable][Data]
Function It calculates an arc tangent and then
assigns the result to specified
variable.
Variable 1 Variable (GR, LR) the calculated value is to
be assigned to. [Return value: -90 - +90,
Unit: degree]
Condition Standard Data Value or variable (of the same type).
Lock condition None
Syntax check None
Example
Calculate atan(tan
-1
) and then assign the result to LR001.
ATAN LR001 1
16-4-3. CLEAR
Format
CLEAR [Variable] [Parameter]
Function It clears the value of a variable name.
Condition Standard
Variable Variable name or type whose value is to be
reset to Zero.
Lock condition None Parameter Individual: to specify a variable name to
reset.
Syntax check None ALL: to reset all variable values of the
specified variable type.
The same command in conventional models RSTREG
Example To clear the value of variable LR001.
CLEAR LR001
Note:
Once executed, the applied variable value becomes zero.
16-4-4. CNVSET
Format
CNVSET [Variable 1] = [Variable 2] See application examples
Function It executes value assignment between
different variable types.
Condition Standard
Variable 1 Target variable name.
Lock condition None Variable 2 Assignment variable name.
Syntax check None ALL: to reset all variable values of the
specified variable type.
Example
Note:
8. An error occurs when the assignment value exceeds
the preset scope of the target variable type.
9. An error occurs when the target variable is invalid.
10. When a real value is assigned to integer type
variable, the value is rounded off to one's digit.

Table of Contents

Related product manuals