Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Heidenhain CNCNew to Visual Studio Code? Get it now.
Heidenhain CNC

Heidenhain CNC

MaTka

|
4,538 installs
| (2) | Free
Heidenhain CNC is Heidenhain machine controller syntax highlighting extension.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cnc-heidenhain

Heidenhain CNC is set of commands for syntax highlighting for Heidenhain controller files.

Features

  • syntax highlighting for Heidenhain dialog
  • snippets
  • switching between controller vesion to control snippets possibilities - TNC426/430, iTNC530, TNC620, TNC640,TNC7

Snippets functions

Snippet Command
body BEGIN PGM
call ext program CALL PGM
tool TOOL CALL
tool preselect TOOL DEF
Snippet Command
m codes list o M codes
Snippet Command
blank block BLK FORM
blank cylinder BLK FORM CYLINDER
blank file BLK FORM FILE
blank rotation BLK FORM ROTATION
tcp on FUNCTION TCPM
tcp off FUNCTION RESET TCPM
tolerance CYCL DEF 32.0 TOLERANCE
preset copy PRESET COPY
preset corr PRESET CORR
preset select PRESET SELECT
trans datum TRANS DATUM AXIS
trans datum table TRANS DATUM TABLE
trans reset TRANS DATUM RESET
trans mirror TRANS MIRROR
trans mirror reset TRANS MIRROR RESET
trans rotation TRANS ROTATION
trans rotation reset TRANS ROTATION RESET
trans scale TRANS SCALE
trans scale reset TRANS SCALE RESET
working plane angle PLANE SPATIAL
working plane axial PLANE AXIAL
working plane euler PLANE EULER
working plane relativ PLANE RELATIV
working plane vector PLANE VECTOR
working plane reset PLANE RESET
axis scale CYCL DEF 26.0 AXIS-SPECIFIC SCALING
adjust xz CYCL DEF 800 ADJUST XZ SYSTEM ~
datum shift CYCL DEF 7.0 DATUM SHIFT
mirorring CYCL DEF 8.0 MIRRORING
dwell time old CYCL DEF 9.0 DWELL TIME
rotation CYCL DEF 10.0 ROTATION
factor scale CYCL DEF 11.0 SCALING FACTOR
oriented stopl CYCL DEF 13.0 ORIENTATION
program call CYCL DEF 12.0 PGM CALL
reset rotary system CYCL DEF 801 RESET ROTARY COORDINATE SYSTEM
working plane old CYCL DEF 19.0 WORKING PLANE
datum setup CYCL DEF 247 DATUM SETTING
Snippet Command
cartesian pattern CYCL DEF 221 CARTESIAN PATTERN
global GLOBAL DEF
polar pattern CYCL DEF 220 POLAR PATTERN
back boring CYCL DEF 204 BACK BORING
bore milling CYCL DEF 208 BORE MILLING
centering CYCL DEF 240 CENTERING
deep drill CYCL DEF 241 SINGLE-LIP D. H. DRLNG
drilling CYCL DEF 200 DRILLING
dwell FUNCTION DWELL
pilot drilling CYCL DEF 21 PILOT DRILLING
reaming CYCL DEF 201 REAMING
tapping break CYCL DEF 209 TAPPING W/CHIP BRKG
tapping rigid CYCL DEF 207 TAPPING
tapping simple CYCL DEF 206 TAPPING
thread drilling CYCL DEF 264 THREAD DRILLING/MLLNG
thread helical CYCL DEF 265 HEL. THREAD DRL/MLG
thread milling CYCL DEF 262 THREAD MILLING
thread milling countersing CYCL DEF 263 THREAD MILLING/CNTSNKG
thread outside CYCL DEF 267 OUTSIDE THREAD MLLG
universal drilling CYCL DEF 203 UNIVERSAL DRILLING
universal pecking CYCL DEF 205 UNIVERSAL PECKING
circular pocket CYCL DEF 252 CIRCULAR POCKET
circular slot pocket CYCL DEF 254 CIRCULAR SLOT
circular stud CYCL DEF 257 CIRCULAR STUD
cylinder surface CYCL DEF 27 CYLINDER SURFACE ~
cylinder surface outside CYCL DEF 39 CYL. SURFACE CONTOUR ~
cylinder surface ridge CYCL DEF 29 CYLINDER SURFACE RIDGE ~
cylinder surface slot CYCL DEF 28 CYLINDER SURFACE ~
ocm circle CYCL DEF 1272 OCM CIRCLE
ocm circle boundary CYCL DEF 1282 OCM CIRCLE BOUNDARY ~
ocm circular slot CYCL DEF 1274 OCM CIRCLE SLOT
ocm slot CYCL DEF 1273 OCM SLOT / RIDGE
ocm rectangle CYCL DEF 1271 OCM RECTANGLE
ocm rectangle boundary CYCL DEF 1281 OCM RECTANGLE BOUNDARY ~
polygon stud CYCL DEF 258 POLYGON STUD
rectangular stud CYCL DEF 256 RECTANGULAR STUD
slot pocket CYCL DEF 253 SLOT MILLING
rectangular pocket CYCL DEF 251 RECTANGULAR POCKET
trochoidal slot CYCL DEF 275 TROCHOIDAL SLOT
3d contour train CYCL DEF 276 TREE-D CONTOUR TRAIN
contour geometry CYCL DEF 14.0 CONTOUR GEOMETRY
contour milling CYCL DEF 20 CONTOUR DATA
datamatrix pattern CYCL DEF 224 DATAMATRIX CODE PATTERN
engraving CYCL DEF 225 ENGRAVING ~
face milling 2 CYCL DEF 232 RULED SURFACE ~
face milling CYCL DEF 233 FACE MILLING
floor finishing CYCL DEF 23 FLOOR FINISHING
rough milling pocket CYCL DEF 22 ROUG-OUT
contour train CYCL DEF 25 CONTOUR TRAIN
contour train data CYCL DEF 270 CONTOUR TRAIN DATA
multipass milling CYCL DEF 230 MULTIPASS MILLING ~
ocm chamfering CYCL DEF 277 OCM CHAMFERING
ocm contour data CYCL DEF 271 OCM CONTOUR DATA
ocm finishing floor CYCL DEF 273 OCM FINISHING FLOOR
ocm finishing side CYCL DEF 274 OCM FINISHING SIDE
ocm polygon CYCL DEF 1278 OCM POLYGON
ocm roughing CYCL DEF 272 OCM ROUGHING
ruled surface CYCL DEF 231 RULED SURFACE ~
side finishing CYCL DEF 24 SIDE FINISHING

Release Notes

Syntax highlighting is almost done for all important commands. Highlighting is tested on "default" color theme Dark+ which I recommend to you.

0.7.0

Added output to Outline tree: - tool definition - program stops - cycle definition - notes - label incl .jumps

0.6.1

Correction in snippets

0.6.0

Added an option for the control system version, which affects snippet output.

0.5.2

Error correction of snippets and syntax highlighting

0.5.1

Error correction of snippets and syntax highlighting

0.5.1

Expanding snippets for pockets and studs. Adding standard functions of tolerance, mirroring, rotating, scaling, ...

0.5.0

Adding snippets for tool change, working planes, drilling cycles, tapping, thread milling

0.4.1

Improvements of syntax highlighting

0.4.0

Improvements of syntax highlighting

0.3.0

Correction of syntax to better recognize commands

0.2.0

Added most important commands into syntax highlighting

0.1.0

Initial release of project

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft