EasyManuals Logo

Omron TJ1-MC04 - PROGRAMMING 1 User Manual

Omron TJ1-MC04 - PROGRAMMING 1
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #48 background imageLoading...
Page #48 background image
BASIC commands
PROGRAMMING MANUAL 48
Revision 3.0
3.2.26 AOUT
/i
3.2.27 ASIN
/i
3.2.28 ATAN
/i
3.2.29 ATAN2
/i
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
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
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
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
Type Mathematical function
Syntax ATAN2(expression1,expression2)
I52E-EN-03.book Seite 48 Freitag, 29. Juni 2007 11:55 11

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron TJ1-MC04 - PROGRAMMING 1 and is the answer not in the manual?

Omron TJ1-MC04 - PROGRAMMING 1 Specifications

General IconGeneral
BrandOmron
ModelTJ1-MC04 - PROGRAMMING 1
CategoryController
LanguageEnglish

Related product manuals