Interpreting G-code

00:08

In addition to being useful for communicating with the machine, an NC Program can be used by a programmer

00:16

to locate problems within the setup, as well as to verify that the setup functions properly.

00:21

For this video, open the file Gcode Verify.f3d.

00:27

Here, a setup has been provided, as well as the toolpaths needed to create this part.

00:33

In the Browser, click Setup1.

00:37

On the Toolbar, Manufacture workspace, Turning tab, Setup panel, expand the Setup drop-down and click Create NC Program.

00:52

A dialog for NC Program 1 displays.

00:57

In the Settings tab, under Machine and Post, leave the Post set to HAAS Turning / haas turning.

01:07

Under Program, in the Name/number field, type “1003”.

01:14

Open the Operations tab.

01:18

On the selection tree, select Setup1 to post out the whole setup.

01:24

Click Post.

01:26

A message appears in the canvas, indicating that the NC code was successfully posted and displaying its file location.

01:35

On the message, click the link to View NC Code.

01:40

If you have an application like Microsoft Visual Studio Code downloaded, it opens and displays the NC Code.

01:49

In the code, you can see that the spindle is turning in the right direction.

01:55

But, you can also see that you have Air Coolant on instead of Flood Coolant, and that the WCS is set to G56 instead of G54.

02:08

Exit the code application.

02:12

In the Browser, right-click T1 Profile Roughing1, and, from the shortcut menu, select Edit.

02:20

A dialog for Profile Roughing 1 displays.

02:25

On the Tool tab, under Tool, expand the drop-down next to Coolant and select Flood.

02:34

Click OK.

02:36

Now, in the Browser, right-click Setup1 and choose Edit.

02:42

A dialog displays for Setup1.

02:46

Open the Post Process tab.

02:49

Under Machine WCS, in the WCS Offset field, type “1”.

02:57

Click OK.

02:59

In the Browser, under NC Programs, right-click NCProgram1 and click Edit.

03:07

A dialog displays for NC Program 1.

03:12

Click Post to re-post the program.

03:16

A warning appears, asking if you want to overwrite the current NC Program.

03:22

Click Yes.

03:25

Now, on the message, when you click View NC Code,

03:30

the code shows that the spindle is moving in the right direction, and that Flood Coolant is turned on.

03:37

Verify the rest of the code before running it on the machine.

Video transcript

00:08

In addition to being useful for communicating with the machine, an NC Program can be used by a programmer

00:16

to locate problems within the setup, as well as to verify that the setup functions properly.

00:21

For this video, open the file Gcode Verify.f3d.

00:27

Here, a setup has been provided, as well as the toolpaths needed to create this part.

00:33

In the Browser, click Setup1.

00:37

On the Toolbar, Manufacture workspace, Turning tab, Setup panel, expand the Setup drop-down and click Create NC Program.

00:52

A dialog for NC Program 1 displays.

00:57

In the Settings tab, under Machine and Post, leave the Post set to HAAS Turning / haas turning.

01:07

Under Program, in the Name/number field, type “1003”.

01:14

Open the Operations tab.

01:18

On the selection tree, select Setup1 to post out the whole setup.

01:24

Click Post.

01:26

A message appears in the canvas, indicating that the NC code was successfully posted and displaying its file location.

01:35

On the message, click the link to View NC Code.

01:40

If you have an application like Microsoft Visual Studio Code downloaded, it opens and displays the NC Code.

01:49

In the code, you can see that the spindle is turning in the right direction.

01:55

But, you can also see that you have Air Coolant on instead of Flood Coolant, and that the WCS is set to G56 instead of G54.

02:08

Exit the code application.

02:12

In the Browser, right-click T1 Profile Roughing1, and, from the shortcut menu, select Edit.

02:20

A dialog for Profile Roughing 1 displays.

02:25

On the Tool tab, under Tool, expand the drop-down next to Coolant and select Flood.

02:34

Click OK.

02:36

Now, in the Browser, right-click Setup1 and choose Edit.

02:42

A dialog displays for Setup1.

02:46

Open the Post Process tab.

02:49

Under Machine WCS, in the WCS Offset field, type “1”.

02:57

Click OK.

02:59

In the Browser, under NC Programs, right-click NCProgram1 and click Edit.

03:07

A dialog displays for NC Program 1.

03:12

Click Post to re-post the program.

03:16

A warning appears, asking if you want to overwrite the current NC Program.

03:22

Click Yes.

03:25

Now, on the message, when you click View NC Code,

03:30

the code shows that the spindle is moving in the right direction, and that Flood Coolant is turned on.

03:37

Verify the rest of the code before running it on the machine.

Video quiz

When reviewing the NC output, which of the following can you identify?

(Select one)
Select an answer

1/1 questions left unanswered

Step-by-step guide

It appears you don't have a PDF plugin for this browser.

Was this information helpful?