5238-E P-309
SECTION 12 USER TASK
[Program Sequence]
(1) With enlarging section A, have the control calculate the points of intersection using the
variables and the operation function of the user task.
The points that must be calculated are Z-coordinate of point a and X- and Z-coordinates of point
b. To obtain them, variables are set as below.
LE33013R0301400490008
(2) The point of intersection can be calculated in the following equations, based on the variables in
1.
LE33013R0301400490009
(3) Since the pattern in Section A can be used in common with other workpieces, it is advisable to
program such a contour as a subprogram. We will name the subprogram "RADIUS-
TAPER.SUB". Variables XD2, ZL1, and ZL2 are set in this subprogram, and other variables are
set in the main program.
(4) Prepare the cutting program as a main program.
The file name of the main program is "FLANGE-1.MIN". The LAP and nose radius
compensation functions are used in the main program.
V10 = Taper angle (15
°
)
V11 = Arc radius (16 mm)
XD1 = Diameter of point "a" (110 mm)
XD2 = Diameter of point "b"
XD3 = Diameter of point "c" (190 mm)
ZL1 = Z-coordinate of point "a"
ZL2 = Z-coordinate of point "b"
ZL3 = Z-coordinate of point "c" (32 mm)
DlS1 = Distance: DX3 - DX1
DIS2 = Distance between the center of arc and point "b" (along X-axis)
DIS3 = Distance between point "a" and point "b" (along Z-axis)
DIS4 = Distance between point "b" and point "c" (along Z-axis)
Set using common variables
Set using local variables
c
XD3
XD2
XD1
DIS1
DIS2
ZL3
ZL2
ZL1
V10
V11
a
b
[Fig. 2-2]
DlS1 = (DX3 - DX1) / 2
DIS2 = V11
×
SIN (V10)
DIS3 = V11
×
COS (V10)
DIS4 = (DIS1 + DIS2 - V11)
×
TAN (V10)
XD2 = XD1 + 2
×
(V11 - DIS2)
ZL2 = AL3 + DIS4
ZL1 = ZL2 + DIS3