Working Plane and Feed Direction (G17, G18, G19, P)
G17 working plane XY
Command | G17 (default setting) |
Cancellation | G18 or G19 |
Select XY-plane as workingplane, i.e. the workingplane normal is set to [0,0,1]. This workingplane is the default workingplane.
G18 working plane ZX
Command | G18 |
Cancellation | G17 or G19 |
Select ZX-plane as workingplane, i.e. the workingplane normal is set to [0,1,0].
G19 working plane YZ
Command | G19 |
Cancellation | G17 or G18 |
Select YZ-plane as workingplane, i.e. the workingplane normal is set to [1,0,0].
P Specification of the feed direction
P<v>
Switch tool orientation. The value of v must be 1 or -1. If v is negative, the tool points in the direction of the working plane normal. Otherwise, it points into the opposite direction.
Example:
The resulting MCS-path (MCS: machine coordinate system) of the following example is shown in Figure “ExampleP”. The first line of the program defines Tool 1 to have a length of 10. G18 activates the XZ-workingplane.
| The end of segment
|
| For segment
|
| In block
|
| The blocks
|
!toolSet(index:=1, tooltype:=tooltypeDrill, length:=10);
G18
N10 X10 Y10 D0 F6000
N20 X20 Y10 D1
N30 X30 Y10 P-1
N40 X40 Y10 P1
N50 X50 Y10 D0
N60 X60 D1
N70 X70 P-1
N80 X80 P1
N90 X90 D0
M02
Figure “ExampleP”.