Fanuc Series 15i/150i-MA (Programming) Operators Manual 17.CUSTOM MACRO PROGRAMMING B-63324EN/03
- 616 -
Explanation
- Angle units
The units of angles used with the SIN, COS, ASIN, ACOS, TAN, and
ATAN functions are degrees. For example, 90 degrees and 30 minutes
is represented as 90.5 degrees.
- ARCSIN #i = ASIN[#j];
- The solution ranges from -90 to 90 deg.
- # When #j is beyond the range of -1 to 1, alarm PS0119 is issued.
- A constant can be used instead of the #j variable.
- ARCCOS #i = ACOS[#j];
- The solution ranges from 180 to 0deg.
- When #j is beyond the range of -1 to 1, alarm PS0119 is issued.
- A constant can be used instead of the #j variable.
- Arctangent #i = ATAN[#j]/[#k]; (two arguments)
- Can be written as ATAN[#j, #k].
- This function returns the value of the arctangent for the angle
formed by a point (#k, #j) on the X-Y plane.
- A constant can be used instead of variable #j.
- The range of the answer is as follows :
Parameter ATN (bit 1 of No. 7003) = 0 : -180 to 180deg.
[Example] If #1 = ATAN [-1]/[-1];, #1 is equal to -135.0.
Parameter ATN (bit 1 of No. 7003)= : 0 to 360deg.
[Example] If #1 = ATAN [-1]/[-1];, #1 is equal to 225.0.
- Arctangent #i = ATAN[#j]; (one argument)
- When specified with one argument only, ATAN returns the main
arctangent value (-90 deg. ATAN[#j] 90 deg.). ATAN in this
case has exactly the same function as that on a calculator.
- When using the value of this function as the dividend in division,
enclose the function in brackets ([]). Otherwise, the function is
regarded as being ATN[#j]/[#k].
[Example ]#100 = [ATAN]/10 ; : Divides ATAN with one argument
by 10.
#100 = ATAN/ ; : Executes ATAN as ATAN with two
arguments.
#100 = ATAN/10 ; : Regards ATAN as being ATAN
with two arguments, but causes
alarm PS0131 to be issued,
because the X coordinate is not
enclosed in []. 