If you do post customization

If you do post customization

fonsecr
Alumni Alumni
583 Views
1 Reply
Message 1 of 2

If you do post customization

fonsecr
Alumni
Alumni

If you are doing post customization you have likely been using the "dump.cps" post to get a good overview of the toolpath passed to be post.

 

I added 2 new properties that can be helpful in understanding what is going on. I added these to fix an issue for guided deep drilling will be available in HSMWorks 2017 🙂

 

"showState" will the often relevant current state like expected current position and spindle speed. The lines that have the prefix "STATE" are output by dumpState() you can adjust this function is you want more information.

 

"expandCycles" will cause the canned cycles to be expanded. The expanded commands will use the prefix "EXPANDED". If a cycle cannot be expanded it will just be skipped and a note will be output in its place

 

Both properties are enabled by default.

 

1777: onCyclePoint(240, -30, -95)
1777: EXPANDED onSpindleSpeed(200)
1777: EXPANDED onRapid(240, -30, 20)
1777: EXPANDED onRapid(240, -30, 10)
1777: EXPANDED onRapid(240, -30, -83.75)
1777: EXPANDED onLinear(240, -30, -89.75, 9999)
1777: EXPANDED onSpindleSpeed(5200)
1777: EXPANDED onLinear(240, -30, -95, 300)
1777: EXPANDED onSpindleSpeed(200)
1777: EXPANDED onLinear(240, -30, -83.75, 9999)
1777: EXPANDED onRapid(240, -30, 10)
STATE position=[240, -30, 10]
STATE spindleSpeed=200
STATE radiusCompensation=RADIUS_COMPENSATION_OFF // off
1778: onCyclePoint(230, -30, -95)
1778: EXPANDED onSpindleSpeed(200)
1778: EXPANDED onRapid(230, -30, 10)
1778: EXPANDED onRapid(230, -30, 10)
1778: EXPANDED onRapid(230, -30, -83.75)
1778: EXPANDED onLinear(230, -30, -89.75, 9999)
1778: EXPANDED onSpindleSpeed(5200)
1778: EXPANDED onLinear(230, -30, -95, 300)
1778: EXPANDED onSpindleSpeed(200)
1778: EXPANDED onLinear(230, -30, -83.75, 9999)
1778: EXPANDED onRapid(230, -30, 10)
STATE position=[230, -30, 10]
STATE spindleSpeed=200
STATE radiusCompensation=RADIUS_COMPENSATION_OFF // off
1779: onCyclePoint(230, -20, -95)
1779: EXPANDED onSpindleSpeed(200)
1779: EXPANDED onRapid(230, -20, 10)
1779: EXPANDED onRapid(230, -20, 10)
1779: EXPANDED onRapid(230, -20, -83.75)
1779: EXPANDED onLinear(230, -20, -89.75, 9999)
1779: EXPANDED onSpindleSpeed(5200)
1779: EXPANDED onLinear(230, -20, -95, 300)
1779: EXPANDED onSpindleSpeed(200)
1779: EXPANDED onLinear(230, -20, -83.75, 9999)
1779: EXPANDED onRapid(230, -20, 10)
STATE position=[230, -20, 10]
STATE spindleSpeed=200
STATE radiusCompensation=RADIUS_COMPENSATION_OFF // off

 

Also added more entry function so you can see when the spindle speed changes. E.g. for ramping movement.

 

  STATE position=[34.273998, -21.890827, 20]
  STATE spindleSpeed=1256
  STATE radiusCompensation=RADIUS_COMPENSATION_OFF // off
299: onRapid(34.27399826049805, -21.890827178955078, 20)
300: onRapid(34.27399826049805, -21.890827178955078, 4.998474597930908)
301: onMovement(MOVEMENT_RAMP_HELIX /*helix ramp*/)
301: onSpindleSpeed(850)
301: onLinear(34.27389907836914, -21.888891220092773, 4.900045394897461, 80)

René Fonseca
Software Architect

Accepted solutions (1)
584 Views
1 Reply
Reply (1)
Message 2 of 2

fonsecr
Alumni
Alumni
Accepted solution
The latest version is available here:
https://cam.autodesk.com/posts/?p=dump

René Fonseca
Software Architect