Home › G-codes › Haas NGC › G102
G102 Programmable output to RS-232
Haas NGC G-code · Mill
Sends axis positions out the RS-232 port. Listed on older Haas controls for simple probing and data logging.
Verify on your machine. This entry could not be fully checked against the maker manual. Check your machine manual before you run it.
Format
G102 X Y Z [A B]
Addresses
| Address | What it does |
|---|---|
X Y Z A B | Axes whose positions are output |
How it works
Non-modal, group 00.
Example program
G90 G54 G00 X1. Y1. (MOVE TO A POINT)
G102 X0. Y0. Z0. (OUTPUT X Y Z POSITION)
G00 Z1. (RETRACT)
G102 X0. Y0. Z0. (OUTPUT X Y Z POSITION)
G00 Z1. (RETRACT)
Example is in inch. Check offsets and clearances first.
Watch out for
- Not listed for NGC machines, which have no RS-232 port. Check your manual.
Every G-code for Haas NGC 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 G102 in the app All Haas NGC G-codes