![background image](http://html1.mh-extra.com/html/omron/trajexia-cj1w-mch72/trajexia-cj1w-mch72_operation-manual_742454224.webp)
All BASIC commands
Section 4-2
213
4-2-179 OR
/i
/i
/i
4-2-180 OUTLIMIT
/i
Type
Mathematical operation
Syntax
expression1 OR expression2
Description
The
OR
operator performs the logical
OR
function between correspond-
ing bits of the integer parts of two valid BASIC expressions.
The logical
OR
function between two bits is defined as in the table
below.
Bit 1
Bit 2
Result
0
0
0
0
1
1
1
0
1
1
1
1
Arguments
•
expression1
Any valid BASIC expression.
•
expression2
Any valid BASIC expression.
Example
result = 10 OR (2.1*9)
The parentheses are evaluated first, but only the integer part of the
result, 18, is used for the operation. Therefore, this expression is equiv-
alent to the following:
result = 10 OR 18
The
OR
is a bit operator and so the binary action taking place is:
01010 OR 10010 = 11010
Therefore, result will contain the value 26.
Example
IF VR(0) = 1 OR VR(0) = 2 THEN GOTO label
See also
N/A
Type
Axis parameter
Syntax
OUTLIMIT
Description
The output limit restricts the demand output from a servo axis to a lower
value than the maximum. For a MECHATROLINK-II speed axis the
maximum demand output possible is the 32 bit value 2147483648.
Arguments
N/A
Example
OUTLIMIT AXIS(1) = 1073741824
The above will limit the demand output to half of the maximum possible
output. This will apply to the
S_REF
command if
SERVO
is off, or to the
output by the servo loop if
SERVO
is on.
See also
AXIS
,
S_REF
,
S_REF_OUT
,
SERVO
.
Содержание trajexia CJ1W-MCH72
Страница 69: ...Specifications Section 2 4 58...
Страница 83: ...FINS commands Section 3 4 72...
Страница 147: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Страница 277: ...All BASIC commands Section 4 2 266...
Страница 278: ...267 SECTION 5 Examples This chapter gives 2 categories of examples and tips How to s Practical examples...
Страница 371: ...360 Index...
Страница 373: ...362...