Machine Simulation NC Code not working

Machine Simulation NC Code not working

Koch612
Enthusiast Enthusiast
542 Views
5 Replies
Message 1 of 6

Machine Simulation NC Code not working

Koch612
Enthusiast
Enthusiast

Hello. 

 

I have the problem that the machine simulation with a Heidenhain postprocessor does not work when it reads the "Plane Spatial SPA... SPB... SPC..." (Heidenhain specific command for tilted workplane and moving the rotary axis. 

 

Is there a way that the machine simulation is capable of reading that and rotates the axis the right way. For example if the workplane is tilted B-90 but I only have A and C axis the axis must move correctly. With the generic machine simulation post everything works but doesn't simulate the real NC Code

 

 

What must be changed?

0 Likes
543 Views
5 Replies
Replies (5)
Message 2 of 6

a.laasW8M6T
Mentor
Mentor

Hi

 

Why not use the Heidenhain post in machine simulation?

You can right click on the machine in the Machine library and select the Heidenhain post From the Fusion Post Library

alaasW8M6T_0-1728107400225.png

You will be prompted to copy it to either your local or cloud storage.

 

Then the machine simulation will use the Heidenhain post to generate the correct moves.

Andrew Laas
Senior Machinist, Scott Automation


EESignature

0 Likes
Message 3 of 6

Koch612
Enthusiast
Enthusiast

I have modified the generic heidenhain post but now it doesn't work 

0 Likes
Message 4 of 6

a.laasW8M6T
Mentor
Mentor

Hi

 

If you can share an example file with your simulation model selected in a setup and your modified post processor I can take a look

 

are you able to be more specific about what is not working with the Heidenhain post?

 

Typically with a Machine definition and machine simulation model, the post will Preposition the Physical axes (A & C in your case) and then activate Plane Spatial to ensure the the Heidenhain control picks the correct solution.

 

The problem with purely outputting Plane Spatial with no prepositioning is that the Controller may pick a different solution than what machine simulation shows which is why the prepositioning is done.

 

Andrew Laas
Senior Machinist, Scott Automation


EESignature

0 Likes
Message 5 of 6

Koch612
Enthusiast
Enthusiast

Hi,

 

I have a NDA on the machine model so I am not allowed to share the machine. 

 

I have modified the post the following way:

 

Tool Call 1234 Z S4444

;----

CALL LBL 300 (safety position preposition with M91)

;------

;-----

Plane Spatial SPA SPB SPC Turn Fmax Table Rot 

;---

;--

Then the positioning moves for the job

 

 

After the job 

CALL LBL 300

Plane Reset Stay

...

...

 

The problem is the machine sim reads everything startet with ;--- until the first positioning moves of the job as a whole block and the axis of the model aren't moved at all. If I use a 5X Job with the L A... C... block the axis move correctly in machine simulation like in real

 

 

0 Likes
Message 6 of 6

a.laasW8M6T
Mentor
Mentor

Hi

 

Without knowing exactly how you have modified your post its hard to tell but you are probably missing the 

 

setCurrentABC();

 

Function in the post that tell machine simulation to move the axes.

 

Depending on where it is in the post it will take different arguments in the function

 

see the setworkplane() function in the post processor guide for more information

https://cam.autodesk.com/posts/posts/guides/Post%20Processor%20Training%20Guide.pdf

Andrew Laas
Senior Machinist, Scott Automation


EESignature

0 Likes