Brief introduction of numerical control macroinstruction (China in)

  • Time:
  • Click:65
Headline: Brief introduction of numerical control macroinstruction (China in) we had knowledge to common instruction, but compare with advanced language, its function appears fragile, to match with advanced language photograph, specially introduces macroinstruction. Through using macroinstruction to be able to undertake arithmetic manipulation, the mixture operation of logistic operation and function, in addition, grand, the program still provided circular statement, branch statement and subprogram call a statement. Brief introduction of numerical control macroinstruction (China in) we had knowledge to common instruction, but compare with advanced language, its function appears fragile, to match with advanced language photograph, specially introduces macroinstruction. Through using macroinstruction to be able to undertake arithmetic manipulation, the mixture operation of logistic operation and function, in addition, grand, the program still provided circular statement, branch statement and subprogram call a statement. In macro: Variable: #0- - #49 is current and local variable #50- - #99 is overall situation local and variable constant: PI, TRUE (true) , FALSE (false) arithmetic manipulation accord with: + , - , * , / conditional operation accord with: EQ " = " , NE " ! = " , GT " > " , GE " > = " , LT " < " , LE " <= " logistic operation accord with: AND, OR, NOT function: SIN[] , COS[] , TAN[] , ATAN[] , ATAN2[] , ABS[] , INT[] , SIGN[] , SQRT[] , EXP[] expression: With the constant that join of operation accord with rises, grand variable makes expression. For example: 100/SQRT[2]*COS[55*PI/180] assignment statement: Expression of grand variable = . For example: Statement of #2=100/SQRT[2]*COS[55*PI/180] condition differentiate: IF, ELSE, ENDIF   format: IF condition expression |   of   of ELSE     | ENDIF loop statement: WHILE, ENDW   format: WHILE condition expression       | ENDW CNC Milling