Home › G-codes › Siemens 840D 828D › POCKET3
POCKET3 Rectangular pocket milling
Siemens 840D 828D G-code · Mill
Mills a rectangular pocket from the center with roughing and finishing in one cycle. Size, corner radius, position, angle and infeed are set in the call.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
POCKET3(RTP, RFP, SDIS, DP, LENG, WID, CRAD, PA, PO, STA, MID, FAL, FALD, FFP1, FFD, CDIR, VARI ...)
Addresses
| Address | What it does |
|---|---|
RTP RFP SDIS DP | Retract plane, reference plane, safety distance and pocket depth |
LENG WID | Pocket length and width |
CRAD | Corner radius |
PA PO | Pocket reference point in the first and second axis |
STA | Angle of the pocket |
MID | Maximum infeed depth |
FAL FALD | Finish allowance on the wall and the floor |
FFP1 FFD | Feed in the plane and feed for the infeed |
CDIR | Milling direction |
VARI | Machining type, roughing or finishing |
How it works
Non modal.
Example program
T2 D1 ; 10 MM END MILL
M6
G0 X0 Y0 S3000 M3 ; CLEAR POSITION
Z50
…
M6
G0 X0 Y0 S3000 M3 ; CLEAR POSITION
Z50
…
The full 6-line example is in the app. Example is in inch. Check offsets and clearances first.
Watch out for
- The corner radius must be at least the cutter radius.
- Build the call from the pocket input screen. Parameters after VARI differ between versions.
Related codes
Every G-code for Siemens 840D 828D in your pocket. The app has the full example programs, search by number or shop word, a line decoder and calculators for tapping, threading and drilling.
Open POCKET3 in the app All Siemens 840D 828D G-codes