Download ADT-8860 - CNC Controller
Transcript
PMC Programmable Motion Controller << >> Function calculation < > <= >= == != Combined expression #E100=#E100<<8 #E100=#E100>>8 #F100=SIN(#E100) #F100=COS(#E100) #F100=TAN(#E100) #F100=ASIN(#E100) #F100=ACOS(#E100) #F100=ATAN(#E100) #F100=SQRT(#E100) #E100=ABS(#S100) #F100=LN(#E100) #F100=EXP(#E100) #F100=LOG(#E100) IF(#E100<100) IF(#E100)100) IF(#E100<=100) IF(#E100>=100) IF(#E100==100) IF(#E100!=100) #F100=(((#E100+2)/3)-5)*SIN(30) Left shift operation Right shift operation Sine calculation Cosine calculation Tangent Arcsine Arc tangent Arc cosine Square root Absolute value Natural logarithm Exponent with e(=2.718…) as the base Logarithm with 10 as the base Operator of less than Operator of larger than Operator of less than or equal to Operator of larger than or equal to Operator of equal to Operator of not equal to Multiple nested mathematical expressions Expression calculation priority: Priority Calculation symbol Lower level indicates higher priority 1 # 2 () 3 Function (SIN,COS,EXP…) 4 *,/,% 5 +,- 6 <<,>> 7 &,|,~,^ 8 <,>,<=,>=,==,!= 9 &&,||,^^,! 10 = z z z The calculation expressions of same priority shall follow the principle of from left to right. Calculation expressions have multiple levels of priority. The calculation expression is long, please force the priority with (). () can be nested in the calculation for up to five levels. Calculation accuracy - 61 -