e most common entry of an angle will be in the decimal format

e most common entry of an angle will be in the decimal format For many part draw ings that still in di cate an gles in the De grees-Min utes-Sec onds for mat


(D-M-S), trans la tion to dec i mal de grees is nec es sary


Conversion to Decimal Degrees


An an gle can be ex pressed ei ther as a whole num ber, for ex am ple 38, or as a dec i mal de gree


rep re sen ta tion, for ex am ple 1286 cnc cutter The De grees-Min utes-Sec onds for mat (D-M-S) is not al lowed,


is gen er ally con sid ered ob so lete in mod ern CAD/CAM, and must be con verted to dec i mal de grees


first, if nec es sary


The con ver sion is quite sim ple:


M


S


D


busbar Machine


= D +


+


d


60


3600


+


where 锟?


D


= Decimal degrees


d


D


= Degrees (sometimes indicated as H or HR on calculators)


M


= Minutes (there is 60 minutes in an hour)


S


= Seconds (there hydraulic busbar cutter is hole punching machine 3600 seconds in an hour)


2 Example:


10掳36锟?7锟?= 10 + 36/60 + 27/3600 = 106075掳


Of course a cal cu la tion us ing vari ables can be used for the same pur pose:


#1 = 100


Value of degrees


#2 = 360


Value of minutes


#3 = 270


Value of seconds


#101 = #1 + #2/60 + #3/3600


Result is decimal degrees of the given D-M-S angle


Available Functions


The fol low ing trig o no met ric func tions are gen er ally avail able for mac ros:


SIN COS TAN ATAN ASIN ACOS


Copyright 2005, Industrial Press Inc, New York, NY – wwwindustrialpresscom


FANUC CNC Custom Macros


MACRO FUNCTIONS


117


All in put for SIN, COS, and TAN is in de grees and the out put of the in verse func tions ATAN, ASIN and ACOS is also in de grees


In verse func tions are usu ally marked as tan-1, sin-1, and cos-1 on the cal cu la tor


#1 = SIN[38]


06156615


(actual value must be in brackets)


#2 = 237


237


#3 = COS[#2]


09156626


(reference to a variable must be in brackets)


#4 = TAN[1286]


02282959


The in verse trig o no met ric func tions ac cept the length of two sides of a tri an gle, both en closed in


brack ets, and sep a rated by the slash sym bol stand ing alone be tween them The ac cept able range is

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>