Vous êtes sur la page 1sur 6

4.

FUNCTIONS TO SIMPLIFY
PROGRAMMING PROGRAMMING B-64484EN-1/03

NOTE
A diameter value is specified for the X-axis.

Limitation
NOTE
1 When the G68 command based on this function is enabled, the X-axis
coordinate value that can be read with the custom macro system variables
#5041 and up or #100101 and up (current specified position (in the workpiece
coordinate system)) is a position with mirror image applied.
2 This function cannot be used together with the balance cut function. If both
optional functions are specified, the operation depends on the combination of the
systems as follows:
System in which this function is used
• One-path system
System in which this function does not operate
• System with two or more paths

4.9 DIRECT DRAWING DIMENSION PROGRAMMING


Overview
Angles of straight lines, chamfering value, corner R values, and other dimensional values on machining
drawings can be programmed by directly inputting these values. In addition, the chamfering and corner R
can be inserted between straight lines having an optional angle.
This programming is only valid in memory operation mode.

Format
Examples of command formats for the G18 plane (ZX plane) are shown. This function can be specified in
the following formats also for the G17 plane (XY plane) and G19 plane (YZ plane).
The following formats are changed as follows:
For the G17 plane: Z → X, X → Y
For the G19 plane: Z → Y, X → Z

Table 4.9 (a) Commands table


Commands Movement of tool

X
(X2 , Z2)

1 X2_ (Z2_), A_ ; A

(X1 , Z1)
Z

X
(X3 , Z3)
A2
,A1_ ;
2 A1
X3_ Z3_, A2_ ; (X2 , Z2)
(X1 , Z1)
Z

- 120 -
4.FUNCTIONS TO SIMPLIFY
B-64484EN-1/03 PROGRAMMING PROGRAMMING

Commands Movement of tool

X
(X3 , Z3)
X2_ Z2_, R1_ ;
A2
X3_ Z3_ ; R1
3 or
,A1_, R1_ ; A1
(X2 , Z2)
X3_ Z3_, A2_ ;
(X1 , Z1)
Z

X
(X3 , Z3)
X2_ Z2_, C1_ ; A2
X3_ Z3_ ;
4 or
,A1_, C1_ ; C1 A1
X3_ Z3_, A2_ ; (X2 , Z2)
(X1 , Z1)
Z

X
(X4 , Z4)
(X3 , Z3)
X2_ Z2_ , R1_ ;
X3_ Z3_ , R2_ ; A2
R2
X4_ Z4_ ;
5 or R1
,A1_, R1_ ;
A1
X3_ Z3_, A2_, R2_ ; (X2 , Z2)
X4_ Z4_ ;
(X1 , Z1)
Z

X
C2
X2_ Z2_ , C1_ ;
X3_ Z3_ , C2_ ; (X4 , Z4) (X3 , Z3)
X4_ Z4_ ; A2
6 or
,A1_, R1_ ;
(X2 , Z2)
X3_ Z3_, A2_, C2_ ;
C1 A1
X4_ Z4_ ;
(X1 , Z1)
Z

X
C2
X2_ Z2_ , R1_ ; (X3 , Z3)
X3_ Z3_ , C2_ ; (X4 , Z4)
X4_ Z4_ ; A2
7 or
,A1_, R1_ ; R1
X3_ Z3_, A2_, C2_ ; A1
X4_ Z4_ ; (X2 , Z2)
(X1 , Z1)
Z

- 121 -
4. FUNCTIONS TO SIMPLIFY
PROGRAMMING PROGRAMMING B-64484EN-1/03

Commands Movement of tool

X
(X4 , Z4)
X2_ Z2_ , C1_ ; (X3 , Z3)
X3_ Z3_ , R2_ ;
X4_ Z4_ ; A2
8 or R2
,A1_, C1_ ;
(X2 , Z2)
X3_ Z3_, A2_, R2_ ;
C1 A1
X4_ Z4_ ;
(X1 , Z1)
Z

Explanation
A program for machining along the curve shown in Fig. 4.9 (a) is as follows :
+X
X (x2) Z (z2) , C (c1) ; a3
X (x3) Z (z3) , R (r2) ;
X (x4) Z (z4) ; (x3, z3) +Z
(x4, z4)
or r2 a2
,A (a1) , C (c1) ;
X (x3) Z (z3) , A (a2) , R (r2) ;
X (x4) Z (z4) ; (x2, z2)
c1 a1

(x1, z1)
Start

Fig. 4.9 (a) Machining Drawing (example)

For command a straight line, specify one or two out of X, Z, and A.


If only one is specified, the straight line must be primarily defined by a command in the next block.
To command the degree of a straight line or the value of chamfering or corner R, command with a comma
(,) as follows :
,A_
,C_
,R_
By specifying 1 to bit 4 (CCR) of parameter No.3405 on the system which does not use A or C as an axis
name, the degree of a straight line or the value of chamfering or corner R can be commanded without a
comma (,) as follows :
A_
C_
R_

- Command using a supplement


When bit 5 (DDP) of parameter No. 3405 is set to 1, an angle can be specified using a supplement.
There is the following relationship, assuming that the supplement is A' and the actual specified angle is A:
A = 180 – A'

+X
A
A’
+Z

- 122 -
4.FUNCTIONS TO SIMPLIFY
B-64484EN-1/03 PROGRAMMING PROGRAMMING
Fig. 4.9 (b) Supplement

Limitation
NOTE
1 Direct drawing dimension programming commands are valid only during memory
operation.
2 The following G codes are not applicable to the same block as commanded by
direct input of drawing dimensions or between blocks of direct input of drawing
dimensions which define sequential figures.
(a) G codes other than G04 in group 00
(b) G codes other than G00, G01, and G33 in group 01
(c) G codes in group 10 (canned cycle for drilling)
(d) G codes in group 16 (plane selection)
(e) G22 and G23
3 Corner R cannot be inserted into a threading block.
4 When the chamfering and corner R and direct drawing dimension programming
options are available, both functions cannot be used simultaneously. When bit 0
(CRD) of parameter No. 3453 is set to 1, direct drawing dimension programming
is enabled. (At this time, chamfering and corner R are disabled.)
5 When the end point of the previous block is determined in the next block
according to sequential commands of direct drawing dimension programming
during single block operation, the machine does not stop in the single block stop
mode, but stop in the feed hold stop mode at the end point of the previous block.
6 The angle allowance in calculating the point of intersection in the program below
is ±1°.
(Because the travel distance to be obtained in this calculation is too large.)
(a) X_ ,A_ ; (If a value within 0°±1° or 180°±1° is specified for the angle
instruction A, the alarm PS0057, “NO SOLUTION OF BLOCK END” occurs.)
(b) Z_ ,A_ ; (If a value within 90°±1° or 270°±1° is specified for the angle
instruction A, the alarm PS0057 occurs.)
7 An alarm PS0058, “END POINT NOT FOUND” occurs if the angle made by the 2
lines is within ±1° when calculating the point of intersection.
8 Chamfering or corner R is ignored if the angle made by the 2 lines is within ±1°.

- 123 -
4. FUNCTIONS TO SIMPLIFY
PROGRAMMING PROGRAMMING B-64484EN-1/03

NOTE
9 Both a dimensional command (absolute programming) and angle instruction
must be specified in the block following a block in which only the angle
instruction is specified.
(Example)
N1 X_ ,A_ ,R_ ;
N2 ,A_ ;
N3 X_ Z_ ,A_ ;
In addition to the dimensional command, angle command must be specified in
block No. 3. If the angle command is not specified, alarm PS0056, “NO END
POINT & ANGLE IN CHF/CNR” is issued. If the coordinates are not specified
with an absolute programming, alarm PS0312, “ILLEGAL COMMAND IN
DIRECT DRAWING DIMENSIONS PROGRAMMING” is issued.
10 In the tool nose radius compensation mode, a block in which only the angle
command is specified in direct drawing dimension programming is assumed to
be a block with no move command. For details of compensation when sequential
blocks with no move command are specified, see the explanation of tool nose
radius compensation.
11 If two or more blocks with no move command are specified between sequential
commands of direct drawing dimension programming, alarm PS0312 is issued.
12 When bit 4 (CCR) of parameter No. 3405 is set to 1, address A in the G76
(multiple threading cycle) block specifies the tool nose angle.
When A or C is used as an axis name, it cannot be used in the angle or
chamfering command in direct drawing dimension programming. Use ,A_ or ,C_
(when bit 4 (CCR) of parameter No. 3405 is set to 0).
13 In a multiple repetitive canned cycle, in blocks with sequence numbers between
those specified at P and Q, a program using direct drawing dimension
programming can be used. The block with the last sequence number specified at
Q must not be an intermediate block of these specified blocks.

- 124 -
4.FUNCTIONS TO SIMPLIFY
B-64484EN-1/03 PROGRAMMING PROGRAMMING

Example
X

R20

R15 R6

φ100

φ300
φ60
10°

1 × 45°
30

180

22°

(Diameter specification, metric input)

N001 G50 X0.0 Z0.0 ;


N002 G01 X60.0 ,A90.0 ,C1.0 F80 ;
N003 Z-30.0 ,A180.0 ,R6.0 ;
N004 X100.0 ,A90.0 ;
N005 ,A170.0 ,R20.0 ;
N006 X300.0 Z-180.0 ,A112.0 ,R15.0 ;
N007 Z-230.0 ,A180.0 ;
:
:

- 125 -

Vous aimerez peut-être aussi