Omron trajexia CJ1W-MCH72 Operation Manual page 224

Sysmac cj-series programmable controller
Hide thumbs Also See for trajexia CJ1W-MCH72:
Table of Contents

Advertisement

All BASIC commands
4-2-179 OR
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.
/i
Bit 1
0
0
1
1
/i
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
/i
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.
Bit 2
0
1
0
1
Section 4-2
Result
0
1
1
1
213

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents