probing

probing

tyerfabozz
Contributor Contributor
1,095 Views
11 Replies
Message 1 of 12

probing

tyerfabozz
Contributor
Contributor

has anyone been able to get hurco probing to post? i get an error message but im able to post fanuc 

0 Likes
1,096 Views
11 Replies
Replies (11)
Message 2 of 12

Steinwerks
Mentor
Mentor

Looks like the post needs to be modified to accept a zero spindle speed.

 

The Haas post with probing looks like this to negate the spindle RPM issue:

 

 

  if (!isProbeOperation() &&
      (insertToolCall ||
       forceSpindleSpeed ||
       isFirstSection() ||
       (rpmFormat.areDifferent(tool.spindleRPM, sOutput.getCurrent())) ||
       (tool.clockwise != getPreviousSection().getTool().clockwise))) {
    forceSpindleSpeed = false;

    if (tool.spindleRPM < 1) {
      error(localize("Spindle speed out of range."));
      return;
    }
    if (tool.spindleRPM > 12000) {
      warning(localize("Spindle speed exceeds maximum value."));
    }
    writeBlock(
      sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4)
    );
  }

and this is the generic Hurco post for the same section:

 

 

  if (insertToolCall ||
      forceSpindleSpeed ||
      isFirstSection() ||
      (rpmFormat.areDifferent(tool.spindleRPM, sOutput.getCurrent())) ||
      (tool.clockwise != getPreviousSection().getTool().clockwise)) {
    forceSpindleSpeed = false;
    
    if (tool.spindleRPM < 1) {
      error(localize("Spindle speed out of range."));
      return;
    }
    if (tool.spindleRPM > 65535) {
      warning(localize("Spindle speed exceeds maximum value."));
    }
    writeBlock(
      sOutput.format(tool.spindleRPM), mFormat.format(tool.clockwise ? 3 : 4)
    );
  }

You should be able to modify from there, unfortunately I don't have much time to help directly.

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
Message 3 of 12

tyerfabozz
Contributor
Contributor

can i just copy and paste that first block? i saved the post as a txt file im guessing if it doesnt work i can delete the txt in the hurco post and paste and save the backup post 

0 Likes
Message 4 of 12

Steinwerks
Mentor
Mentor

You should be able to, yes.

 

You can also block comment out the original section to easily restore functionality, but backups are also a great idea to keep around.

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
0 Likes
Message 5 of 12

tyerfabozz
Contributor
Contributor

 i block commented the origanal part of the hurco post and added the first block of haas post still looks like i have the same error i posted my sample part set work offset to 1 and probe offset to 2 

0 Likes
Message 6 of 12

tyerfabozz
Contributor
Contributor

sorry  didn't realize i pasted the same block please disregard those first two pics this is with haas block 

0 Likes
Message 7 of 12

Steinwerks
Mentor
Mentor

Can you attach your modified post?

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
0 Likes
Message 8 of 12

tyerfabozz
Contributor
Contributor

this is it 

0 Likes
Message 9 of 12

Steinwerks
Mentor
Mentor

I'm not getting the same error (spindle speed out of range) with your post, but one in which isProbeOperation isn't defined, which means the post needs more additions to the probing code.

 

Error(C:\Users\***path***\hurco PROBEMANUAL.CPS:844): ReferenceError: isProbeOperation is not defined

 

Unfortunately I don't have the time right now to tackle this, but will try and look closer when I can.

 

Edit: a cursory look at the file tells me there is no probing code in this post. It will either have to be added, or a different post modified to suit.

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
0 Likes
Message 10 of 12

tyerfabozz
Contributor
Contributor

ill keep playing with it please let me know when you get some time to help as this would greatly speed up my current job

 

0 Likes
Message 11 of 12

Anonymous
Not applicable
I'm not sure if helps, but our workaround was to write a conversational part probe block, then call an NC program block to run the actual NC program. We removed the G54 lines from the NC code to assume the coordinates from the part probe block.
0 Likes
Message 12 of 12

Steinwerks
Mentor
Mentor

I would suggest starting a post to add the probing code to the generic Hurco post over here: https://forums.autodesk.com/t5/hsm-post-processor-ideas/idb-p/985/tab/most-recent

 

Adding probing to a post that otherwise has no provisions for it is a fairly large task IMO. I'm no Autodesk employee, just here helping when I can.

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube