![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243133.webp)
118
Command, function and parameter description
Section 6-3
Description:
The AIN parameters provide four analog channels which contain the Servo
Driver monitor data signals. The channels return a decimal representation of
the internal Servo Driver data. The following data can be accessed.
For the AIN2 channel the S_RATE axis parameter can be used to convert the
data into a value in round per minute. For both the AIN1 and AIN3 channels
the T_RATE axis parameter can be used to convert the value into a percent-
age of the rated torque.
See also:
IN, S_RATE, T_RATE
Example:
Consider an application where the speed of movement is determined by the
analog input voltage.
MOVE(10000)
WHILE MTYPE<>0
sp = AIN0
IF sp < 0 THEN sp = 0
SPEED = sp*0.1
WEND
6-3-22
AND
Type:
Logical Operator
Syntax:
expression_1
AND
expression_2
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:
Arguments:
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
Examples:
Example 1
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:
Param
eter
Description
Range
AIN0
Servo Driver analog input
(REF), connected to CN1 pin 5
and 6.
(-26214, 26213) => (- 12 V, 12 V)
AIN1
Servo Driver torque command
signal.
(-15000, 15000) => (- max. torque, max.
torque)
AIN2
Servomotor rotation speed sig-
nal.
(-15000, 15000) => (- overspeed, over-
speed)
AIN3
Servo Driver torque monitor sig-
nal.
(-15000, 15000) => (- max. torque, max.
torque)
Bit 1
Bit 2
Result
0
0
0
0
1
0
1
0
0
1
1
1