![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243121.webp)
106
Command Reference List
Section 6-2
6-2-6
Mathematical and Logical Functions
The table below outlines the mathematical and logical functions. Refer to the
specified pages for details.
SERVO_PERIOD
SERVO_PERIOD sets the servo cycle period of the MC Unit.
184
SET_BIT
SET_BIT command sets the specified bit in the specified VR
variable to one.
185
SWITCH_STATUS
SWITCH_STATUS contains the status of the 10 external DIP-
switches on the MC Unit.
187
TABLE
TABLE writes and reads data to and from the Table variable
array.
188
TSIZE
TSIZE returns the size of the currently defined Table.
191
VERSION
VERSION returns the version number of the BASIC language
installed in the MC Unit.
191
VR
VR writes and reads data to and from the global (VR) vari-
ables.
192
WA
WA holds program execution for the number of milliseconds
specified.
193
WAIT IDLE
WAIT IDLE suspends program execution until the base axis
has finished executing its current move and any buffered
move.
193
WAIT LOADED
WAIT LOADED suspends program execution until the base
axis has no moves buffered ahead other than the currently
executing move.
194
WAIT UNTIL
WAIT UNTIL repeatedly evaluates the
condition until TRUE.
194
WDOG
WDOG contains the software switch which enables the Servo
Driver.
195
Name
Description
Page
Name
Description
Page
Multiply: *
* multiplies any two valid expressions.
111
Power: ^
^ takes the power of any two valid expressions
111
Add: +
+ adds any two valid expressions.
111
Subtract: –
– subtracts any two valid expressions.
112
Divide: /
/ divides any two valid expressions.
112
Is Less Than: <
< returns TRUE if
expression_1 is less than expression_2,
otherwise FALSE.
112
Is Less Than Or
Equal To: <=
<= returns TRUE if
expression_1 is less than or equal to
expression_2, otherwise FALSE.
112
Is Not Equal To: <>
<> returns TRUE if
expression_1 is not equal to
expression_2, otherwise FALSE.
113
Is Equal To: =
= returns TRUE if
expression_1 is equal to expression_2, oth-
erwise FALSE.
113
Is Greater Than: >
> returns TRUE if
expression_1 is greater than expression_2,
otherwise FALSE.
113
Is Greater Than or
Equal To: >=
>= returns TRUE if
expression_1 is greater than or equal to
expression_2, otherwise FALSE.
113
ABS
ABS returns the absolute value of
expression.
114
ACOS
ACOS returns the arc-cosine of
expression.
115
AND
AND performs an AND operation on corresponding bits of the
integer parts of two valid BASIC expressions.
118
ASIN
ASIN returns the arc-sine of
expression.
119
ATAN
ATAN returns the arc-tangent of
expression.
119
ATAN2
ATAN2 returns the arc-tangent of the nonzero complex num-
ber (expression_2, expression_1).
119