All BASIC commands
Section 4-2
212
4-2-176 OR
/i
/i
/i
4-2-177 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
.
Summary of Contents for SYSMAC CJ Series
Page 2: ......
Page 70: ...Specifications Section 2 4 58...
Page 84: ...FINS commands Section 3 4 72...
Page 148: ...All BASIC commands Section 4 2 136 AXIS 1 AXIS 0...
Page 370: ...Section 358...