×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

postbuilder take M variables every X bloc

postbuilder take M variables every X bloc

postbuilder take M variables every X bloc

(OP)
Hello,

How can I program on postbuilder to take out M codes every 50 or 150 code blocks?

for example, block 12 M25 M8. I want to tahe this M variables each 50 blocks. How can I do this?
Thanks.

0 TOOL CALL 1 Z S400
1 CYCL DEF 32.0 TOLERANCIA
2 CYCL DEF 32.1 T0.03
3 L X+0.000 Y+125.000 R0
4 L Z-0.550
5 L X+0.000 Y+115.000 F350
6 L X+0.000 Y-115.000
7 L X+0.000 Y-125.000
8 L Z+0.950
9 L Y+125.000 R0
10 L Z-1.050
11 L X+0.000 Y+115.000
12 M25 M8
13 L X+0.000 Y-115.000
14 L X+0.000 Y-125.000
15 L Z+0.450
16 L Y+125.000 R0
17 L Z-1.550  

RE: postbuilder take M variables every X bloc

Must know how this is being output. This will determine on how and where to start the counter. If it is done from a ude then you could set the counter to 1 in the proc called by the ude. Then probably in before output do the checking of the counter and increment it until the time it comes through as 50 then do an output and reset the counter back to 0 or 1. Then unset the counter at the end of operation if you don't want to continue the output unless the ude is used again. This would get an output every 50 lines from the first output. I have not tested this but it sounds reasonable.

RE: postbuilder take M variables every X bloc

(OP)
It sounds nice,

Thanks.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources