Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

postbuilder take M variables every X bloc

Status
Not open for further replies.

berri2

Mechanical
Apr 6, 2010
139
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
 
Replies continue below

Recommended for you

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor