Download AMPERR Amplifier error automatic subroutine
Transcript
PROGRAMMING, MATH FUNCTIONS = Equal to comparator n0 = n1 Usage variable = (value1 = value2) Performs an operation between two values or evaluated statements Description "Equal to" comparator for testing if one value is equal to another. Comparators are used in mathematical expressions, IFs, and in conditional jumps. The result is a boolean. Comparators in DMC Code Symbol Comparator < Less than > Greater than = Equal to <= Less than or equal to >= Greater than or equal to <> Not equal to Arguments Argument Min Max Default n0 -2,147,483,648 2,147,483,647 N/A n1 -2,147,483,648 2,147,483,647 N/A Resolution Description 1/65,536 Value to test 1/65,536 Value to test Notes Remarks A comparator is not a command and is not valid individually. Instead, the above expression would be used as part of a jump (JP,JS), IF expression, or assignment. See examples below. If n0 = n1, the expression will evaluate to 1.0000. If the comparision is false, it will evaluate to 0.0000. Evaluation occurs left to right. Use parenthesis for operator precedence. Examples 'Galil DMC Code Example :bool= ( 1=0) :MG bool 0.0000 :bool= ( 3.14=3.14) :MG bool 1.0000 : 'Galil DMC Code Example REM Checks for a digital REM input pattern and REM sets a bit if matched #loop IF ( _TI0 = 170) SB 1 ELSE CB 1 ENDIF JP #loop ©2015 Galil Motion Control. Corrections, Feedback: [email protected] Galil Motion Control = 62/313