top of page
CNC BLOG
Search


A Custom Macro For Thread Milling
As you know, custom macro is a very powerful programming feature that allows you to include computer programming-like commands in a...
Mike Lynch
5 min read
7,101 views
0 comments


Setting Up User Defined G and M codes
Parameters control countless things about the way your CNC machine tools behave. In each Parameter preference segment, we will expose...
Mike Lynch
6 min read
7,045 views
0 comments


Outputting Fixture Offset Settings
Two special commands are used in custom macro B to send data out through the communications port (RS-232c port). One called BPRNT allows...
Mike Lynch
7 min read
3,068 views
0 comments


Another way to get arguments into a custom macro
For part family applications, one way to provide arguments (input variables) for the custom macro is to list them right at the beginning...
Mike Lynch
3 min read
480 views
0 comments
Special calculation programs
As you know, with custom macro B you have a computer programming language built right into your CNC control. And along with many CNC...
Mike Lynch
3 min read
546 views
0 comments
Single-Stepping Through Calculation And Logic Commands
The function of Single Block, of course, is to allow a setup person or operator to step through a program command-by-command. If the...
Mike Lynch
3 min read
273 views
0 comments
Bar puller macro with bar replacing alarm included
Submitted by: Manuel Martinez of Horst Engineering & Mfg This is a custom Macro I created for our operators to load a bar into the...
Mike Lynch
2 min read
270 views
0 comments
Eliminating calculations for offset entries
Almost every offset entry your operators make requires some kind of calculation to be done before an offset adjustment can be made. Say,...
Mike Lynch
9 min read
437 views
0 comments
Protecting #500 series permanent common variables
Many applications for custom macro B require the use of permanent common variables. These variables range in the #500 series and, of...
Mike Lynch
1 min read
1,227 views
0 comments
The SETVN command
In custom macro B, SETVN stands for Set Variable Name. It allows you to place a short message – up to eight characters long – next to...
Mike Lynch
2 min read
1,708 views
0 comments


A face milling custom macro
Suggested by Glenn J. Doutrich Sr. of Inside Development Systems, Inc. I’ve had several requests recently for this custom macro – so,...
Mike Lynch
2 min read
3,912 views
0 comments
Creating user defined M codes
Custom macro B allows you to create your own G and M codes. That is, when a G or M code having the number you create is commanded, the...
Mike Lynch
2 min read
1,807 views
0 comments
Making machines compatible with M codes
As pointed out in the G code primer of this issue, machine tool builders vary when it comes to M code numbering. If you have similar...
Mike Lynch
2 min read
81 views
0 comments
Getting data into custom macros
One of the major benefits of custom macro B, especially with part family and user created canned cycle applications, is the ability to...
Mike Lynch
5 min read
267 views
0 comments
A custom macro A program to safely check and position a cutoff tool
by George Bahn About 10 years ago we purchased a couple of Tsugami’s SX20 sliding-headstock machines. These machines require 2 programs...
Mike Lynch
2 min read
497 views
0 comments
Making user defined G codes modal
As you probably know, is possible to create user defined G codes with custom macro B. That is, you can cause the machine to execute a...
Mike Lynch
1 min read
380 views
2 comments
Six steps for creating a loop
One of the most powerful features of custom macro B is looping. With just a few commands, a loop can generate hundreds, even thousands of...
Mike Lynch
4 min read
3,640 views
0 comments
Rounding or truncating to a specific number of decimal places
Suggested by Keith Recker of GMT Corporation There are times when a custom macro programmer needs to round a calculated value to a given...
Mike Lynch
4 min read
1,408 views
0 comments
Limiting wear offset amount
Submitted by Suhas L. More of Macro CNC Solutions If an operator makes a mistake with an offset entry, the results can be disastrous....
Mike Lynch
1 min read
130 views
0 comments
Three-point arc center macro
By Brian Glick of Vermeer Corporation This is a macro I wrote to be able to find the center of an arc from three points. This gives...
Mike Lynch
5 min read
788 views
0 comments
bottom of page