EasyManuals Logo

Galil Motion Control DMC-40x0 Series User Manual

Default Icon
280 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #133 background imageLoading...
Page #133 background image
DMC-40x0 Command Reference IF • 123
IF
FUNCTION: IF conditional statement
DESCRIPTION:
The IF command is used in conjunction with an ENDIF command to form an IF conditional
statement. The arguments consist of one or more conditional statements and each condition
must be enclosed with parenthesis (). If the conditional statement(s) evaluates true, the
command interpreter will continue executing commands which follow the IF command. If
the conditional statement evaluates false, the controller will ignore commands until the
associated ENDIF command OR
an ELSE command occurs in the program.
ARGUMENTS: IF (condition) where
Conditions are tested with the following logical operators:
< less than or equal to
> greater than
= equal to
<= less than or equal to
>= greater than or equal to
<> not equal
Note: Bit wise operators and & can be used to evaluate multiple conditions.
USAGE: DEFAULTS:
While Moving Yes Default Value -
In a Program Yes Default Format -
Command Line No
Controller Usage
ALL CONTROLLERS
RELATED COMMANDS:
ELSE Optional command to be used only after IF command
ENDIF End of IF conditional Statement
EXAMPLES:
#A
IF (_TEA<1000) ;'IF conditional statement based on
;'A motor position
MG "Motor is within 1000 counts of zero" ;'Message to be executed if "IF"
;'conditional statement is true
ENDIF ;'End of IF conditional statement
EN ;'End Program

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Galil Motion Control DMC-40x0 Series and is the answer not in the manual?

Galil Motion Control DMC-40x0 Series Specifications

General IconGeneral
BrandGalil Motion Control
ModelDMC-40x0 Series
CategoryController
LanguageEnglish

Related product manuals