![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243129.webp)
114
Command, function and parameter description
Section 6-3
Description:
The greater than or equal to operator “>=” returns TRUE if
expression_1
is
greater than or equal to
expression_2
, otherwise it returns FALSE.
Arguments:
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
Example:
IF target >= 120 THEN MOVEABS(0)
If the variable
target
holds a value greater than or equal to 120, then the base
axis will move to an absolute position of 0.
6-3-12
Hexadecimal input: $
Type:
System Command
Syntax:
$hex_number
Description:
The hexadecimal input command (character $) assigns a hexadecimal num-
ber to a variable. The hexadecimal number is inputted by proceeding the
number by the $ character. This operation will write the decimal equivalent to
the VR, Table or local variable.
Arguments:
hex_number
Any hexadecimal number (characters 0-9,A-F). Range: [0, FFFFFF] Hex.
See also:
HEX (PRINT)
Example:
>>TABLE(0,$F,$ABCD)
>>print TABLE(0),TABLE(1)
15.0000 43981.0000
6-3-13
Statement separator: “:”
Type:
Program command
Syntax:
<statement>
:
<statement>
Description:
The statement separator, represented by the colon “:”, can be used to sepa-
rate BASIC statements on a multi-statement line. This separator can be used
both on the command line as in programs.
Example:
PRINT "THIS LINE": GET low : PRINT "DOES THREE THINGS"
6-3-14
Comment field: ‘
Type:
Program command
Syntax:
‘ [
<Comment field>
]
Description:
The single quote “ ‘ “ can be used in a program to mark a line as being com-
ment which will not be executed. The single quote can be put at the beginning
of a line or after any valid statement.
Example:
‘ This line will not be printed.
PRINT "Start"
6-3-15
ABS
Type:
Mathematical Function
Syntax:
ABS(
expression
)
Description:
The ABS function converts a negative number into its positive equal. Positive
numbers are unaltered.
Arguments:
expression
Any valid BASIC expression.