Mathematical Functions And Operands; Program Commands - Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual

Hide thumbs Also See for TJ1-MC04 - PROGRAMMING 1:
Table of Contents

Advertisement

BASIC commands
3.1.6

Mathematical functions and operands

/i
Name
Description
+ (ADDITION)
Adds two expressions.
- (SUBTRACTION)
Subtracts two expressions.
* (MULTIPLICATION)
Multiplies two expressions.
/ (DIVISION)
Divides two expressions.
^ (POWER)
Takes the power of one expression to the other expression.
= (IS EQUAL TO)
Checks two expressions to see if they are equal.
= (ASSIGNMENT)
Assigns an expression to a variable.
<> (IS NOT EQUAL
Checks two expressions to see if they are different.
TO)
> (IS GREATER THAN) Checks two expressions to see if the expression on the left is
greater than the expression on the right.
>= (IS GREATER
Checks two expressions to see if the expression on the left is
THAN OR EQUAL TO)
greater than or equal to the expression on the right.
< (IS LESS THAN)
Checks two expressions to see if the expression on the left is
less than the expression on the right.
<= (IS LESS THAN OR
Checks two expressions to see if the expression on the left is
EQUAL TO)
less than or equal to the expression on the right.
ABS
Returns the absolute value of an expression.
ACOS
Returns the arc-cosine of an expression.
AND
Performs an AND operation on corresponding bits of the integer
parts of two expressions.
ASIN
Returns the arc-sine of an expression.
ATAN
Returns the arc-tangent of an expression.
ATAN2
Returns the arc-tangent of the non-zero complex number made
by two expressions.
COS
Returns the cosine of an expression.
EXP
Returns the exponential value of an expression.
PROGRAMMING MANUAL
Name
Description
FRAC
Returns the fractional part of an expression.
IEEE_IN
Returns floating point number in IEEE format, represented by 4
bytes.
IEEE_OUT
Returns single byte extracted from the floating point number in
IEEE format.
INT
Returns the integer part of an expression.
LN
Returns the natural logarithm of an expression.
MOD
Returns the modulus of two expressions.
NOT
Performs a NOT operation on corresponding bits of the integer
part of the expression.
OR
Performs an OR operation between corresponding bits of the
integer parts of two expressions.
SGN
Returns the sign of an expression.
SIN
Returns the sine of an expression.
SQR
Returns the square root of an expression.
TAN
Returns the tangent of an expression.
XOR
Performs an XOR function between corresponding bits of the
integer parts of two expressions.
3.1.7

Program commands

/i
Name
Description
' (COMMENT FIELD)
Enables a line not to be executed.
: (STATEMENT
Enables more statements on one line.
SEPARATOR)
AUTORUN
Starts all the programs that have been set to run at start-up.
COMPILE
Compiles the current program.
COPY
Copies an existing program in the motion controller to a new
program.
37

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents