Hexadecimal Input; Statement Separator; Comment Field; Abs - Omron R88A-MCW151-DRT-E Operation Manual

Mcw151 series motion control option board
Table of Contents

Advertisement

Command, function and parameter description
Description:
Arguments:
Example:

6-3-12 Hexadecimal input: $

Type:
Syntax:
Description:
Arguments:
See also:
Example:

6-3-13 Statement separator: ":"

Type:
Syntax:
Description:
Example:

6-3-14 Comment field: '

Type:
Syntax:
Description:
Example:

6-3-15 ABS

Type:
Syntax:
Description:
Arguments:
114
The greater than or equal to operator ">=" returns TRUE if expression_1 is
greater than or equal to expression_2 , otherwise it returns FALSE.
expression_1
Any valid BASIC expression.
expression_2
Any valid BASIC expression.
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.
System Command
$hex_number
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.
hex_number
Any hexadecimal number (characters 0-9,A-F). Range: [0, FFFFFF] Hex.
HEX (PRINT)
>>TABLE(0,$F,$ABCD)
>>print TABLE(0),TABLE(1)
15.0000
43981.0000
Program command
<statement> : <statement>
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.
PRINT "THIS LINE": GET low : PRINT "DOES THREE THINGS"
Program command
' [ <Comment field> ]
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.
' This line will not be printed.
PRINT "Start"
Mathematical Function
ABS( expression )
The ABS function converts a negative number into its positive equal. Positive
numbers are unaltered.
expression
Any valid BASIC expression.
Section 6-3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R88a-mcw151-e

Table of Contents