Aout; Asin; Atan; Atan2 - Omron TJ1-MC04 - PROGRAMMING 1 Programming Manual

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

Advertisement

BASIC commands
Description
The AND operator performs the logical AND function on the corresponding
bits of the integer parts of two valid BASIC expressions.
The logical AND function between two bits is defined as follows:
0 AND 0 = 0
0 AND 1 = 0
1 AND 0 = 0
1 AND 1 = 1
Arguments
expression1
Any valid BASIC expression.
expression2
Any valid BASIC expression.
Example
VR(0) = 10 AND (2.1*9)
The parentheses are evaluated first, but only the integer part of the result, 18,
is used for the AND operation. Therefore, this expression is equivalent to the
following:
VR(0) = 10 AND 18
The AND is a bit operator and so the binary action is as follows:
01010 AND 10010 = 00010
Therefore, VR(0) will contain the value 2.
Example
IF MPOS AXIS(0) > 0 AND MPOS AXIS(1) > 0 THEN GOTO cycle1
See also
N/A

3.2.26 AOUT

/i
Type
System parameter
Syntax
AOUT(analogue_chan)
Description
This command sets the output value of the +/-10V analogue output channels
that are provided by connecting JEPMC-AN2910 modules on the MECHA-
TROLINK-II bus. The range of the value set is [-32000, 32000] for voltage
range [-10V, 10V].
Arguments
analogue_chan.
Analogue output channel number 0.31
Example
No example.
See also
N/A
PROGRAMMING MANUAL

3.2.27 ASIN

/i
Type
Mathematical function
Syntax
ASIN(expression)
Description
The ASIN function returns the arc-sine of the argument. The argument must
have a value between -1 and 1. The result in radians is between -PI/2 and PI/
2. Input values outside this range return 0.
Arguments
expression
Any valid BASIC expression.
Example
>> PRINT ASIN(-1)
-1.5708
See also
N/A

3.2.28 ATAN

/i
Type
Mathematical function
Syntax
ATAN(expression)
Description
The ATAN function returns the arc-tangent of the argument. expression can
have any value. The result is in radians and is between -PI/2 and PI/2.
Arguments
expression
Any valid BASIC expression.
Example
>> PRINT ATAN(1)
0.7854
See also
N/A

3.2.29 ATAN2

/i
Type
Mathematical function
Syntax
ATAN2(expression1,expression2)
48

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tj1-mc16 - programming 1Tj1-mc04 1

Table of Contents