SlideShare a Scribd company logo
MADE BY:- MEET SHAH
ENROLL. NO:- 156050319051
SUBJECT:- CAM
BRANCH:- MECHANICAL (SFI)
COLLEGE :- B&B INSTITUE OF TECHNOLOGY
What is macro?
Definition of macro.
Why use macro?
G and M codes.
Types of Variables .
 A sequence of instructions which are stored and
called up as one integral unit.
 Macro programming is useful tool for many cnc
machines.
 It provides a mean of shortening code and doing
repetitive tasks easily and quickly.
 Macro is also useful for families of parts.
A macro is a form of subprogram that
includes non G commands.
It is typically a common operation that will
be called many times.
Any program that performs a common
function and will be executed repeatedly
within a G code program.
A G-code program is rigid in structure and
can not be altered in mid-operation.
Offset are the only means to adjust the
machine path from one run to the next.
Macros add flexible with the use of
additional macro statements.
 With macros you can set up families of
parts, create custom canned cycles and
drive optional devices.
M01 Optional Program stop
M00 Program stop
M30 Program end and reset
G04 Dwell
G65 Macro sub program call
M97 Local sub program call
M98 Sub program call
M109 Interactive user input
Local variables
Global variables
System variables
String variables
 These variables are local to the program.
 They are used to transfer values to a cycle
call or as intermediate mathematical value
holders.
 They are reset to null when program is reset
or end.
 The local variables are typically #100-#499.
These variables once set remain set
unless you change or reset them.
Unlike local variables they are available in
any program.
It can be retained and used in any
program.
Global variable are typically #500-#999.
These variables are available to use in
macro programming and allow you to write
and retrieve information from control itself,
such as tool in spindle, tool offset active
etc.
It is group of characters interpreted as
single value.
Typically defined as $ symbol.
It allows you to manipulate text and
phases etc. `
Macro

More Related Content

What's hot

Introduction to computer_lec_03
Introduction to computer_lec_03Introduction to computer_lec_03
Introduction to computer_lec_03
Ramadan Babers, PhD
 
Scope of variables
Scope of variablesScope of variables
Modular programming
Modular programmingModular programming
Modular programming
bhuwanbist1
 
Scope of variables
Scope of variablesScope of variables
Linear programming
Linear programmingLinear programming
Linear programming
Sabesan Khan
 
Introduction to the Stat-JR software package
Introduction to the Stat-JR software packageIntroduction to the Stat-JR software package
Introduction to the Stat-JR software package
University of Southampton
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
raksharao
 
MACRO ASSEBLER
MACRO ASSEBLERMACRO ASSEBLER
MACRO ASSEBLER
Meghaj Mallick
 
Algorithms & flowcharts
Algorithms & flowchartsAlgorithms & flowcharts
Introduction to programimg
Introduction to programimgIntroduction to programimg
Introduction to programimg
Stn PT
 
Introduction to-programimg
Introduction to-programimgIntroduction to-programimg
Introduction to-programimg
Kamolaporn Nophaket
 
Work
WorkWork
Scope of variable
Scope of variableScope of variable
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
SURBHI SAROHA
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
Sajib
 
State Pattern In Flex
State Pattern In FlexState Pattern In Flex
State Pattern In Flex
tcab22
 

What's hot (16)

Introduction to computer_lec_03
Introduction to computer_lec_03Introduction to computer_lec_03
Introduction to computer_lec_03
 
Scope of variables
Scope of variablesScope of variables
Scope of variables
 
Modular programming
Modular programmingModular programming
Modular programming
 
Scope of variables
Scope of variablesScope of variables
Scope of variables
 
Linear programming
Linear programmingLinear programming
Linear programming
 
Introduction to the Stat-JR software package
Introduction to the Stat-JR software packageIntroduction to the Stat-JR software package
Introduction to the Stat-JR software package
 
FIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer programFIT-Unit3 chapter 1 -computer program
FIT-Unit3 chapter 1 -computer program
 
MACRO ASSEBLER
MACRO ASSEBLERMACRO ASSEBLER
MACRO ASSEBLER
 
Algorithms & flowcharts
Algorithms & flowchartsAlgorithms & flowcharts
Algorithms & flowcharts
 
Introduction to programimg
Introduction to programimgIntroduction to programimg
Introduction to programimg
 
Introduction to-programimg
Introduction to-programimgIntroduction to-programimg
Introduction to-programimg
 
Work
WorkWork
Work
 
Scope of variable
Scope of variableScope of variable
Scope of variable
 
Algorithm and Flowcharts
Algorithm and FlowchartsAlgorithm and Flowcharts
Algorithm and Flowcharts
 
Algorithms and flowcharts
Algorithms and flowchartsAlgorithms and flowcharts
Algorithms and flowcharts
 
State Pattern In Flex
State Pattern In FlexState Pattern In Flex
State Pattern In Flex
 

Similar to Macro

Macro Programming
Macro ProgrammingMacro Programming
Macro Programming
Haas Automation, Inc.
 
Introduction to problem solving in C
Introduction to problem solving in CIntroduction to problem solving in C
Introduction to problem solving in C
Diwakar Pratap Singh 'Deva'
 
Pro Model
Pro ModelPro Model
Training 8051Report
Training 8051ReportTraining 8051Report
Training 8051Report
Kuldeep Kaushik
 
A Review on Parametric Programming Techniques Utilized For Advanced CNC Machines
A Review on Parametric Programming Techniques Utilized For Advanced CNC MachinesA Review on Parametric Programming Techniques Utilized For Advanced CNC Machines
A Review on Parametric Programming Techniques Utilized For Advanced CNC Machines
ijsrd.com
 
Lecture11 abap on line
Lecture11 abap on lineLecture11 abap on line
Lecture11 abap on line
Milind Patil
 
Functional programming in TypeScript
Functional programming in TypeScriptFunctional programming in TypeScript
Functional programming in TypeScript
binDebug WorkSpace
 
Modular programming
Modular programmingModular programming
Module 5.pdf
Module 5.pdfModule 5.pdf
Module 5.pdf
SE14Darshan
 
Functional Paradigm.pptx
Functional Paradigm.pptxFunctional Paradigm.pptx
Functional Paradigm.pptx
FurretMaster
 
Answers
AnswersAnswers
Rejunevating software reengineering processes
Rejunevating software reengineering processesRejunevating software reengineering processes
Rejunevating software reengineering processes
manishthaper
 
Inline functions & macros
Inline functions & macrosInline functions & macros
Inline functions & macros
Anand Kumar
 
MTS Software Brochure
MTS Software BrochureMTS Software Brochure
MTS Software Brochure
justinstimac
 
Cnc intro
Cnc introCnc intro
Cnc intro
dinesh babu
 
Mvi an architecture for reactive programming
Mvi an architecture for reactive programmingMvi an architecture for reactive programming
Mvi an architecture for reactive programming
luca mezzalira
 
Basic construction of c
Basic construction of cBasic construction of c
Basic construction of c
kinish kumar
 
9. Software Implementation
9. Software Implementation9. Software Implementation
9. Software Implementation
ghayour abbas
 
SWE-401 - 9. Software Implementation
SWE-401 - 9. Software ImplementationSWE-401 - 9. Software Implementation
SWE-401 - 9. Software Implementation
ghayour abbas
 
A review of slicing techniques in software engineering
A review of slicing techniques in software engineeringA review of slicing techniques in software engineering
A review of slicing techniques in software engineering
Salam Shah
 

Similar to Macro (20)

Macro Programming
Macro ProgrammingMacro Programming
Macro Programming
 
Introduction to problem solving in C
Introduction to problem solving in CIntroduction to problem solving in C
Introduction to problem solving in C
 
Pro Model
Pro ModelPro Model
Pro Model
 
Training 8051Report
Training 8051ReportTraining 8051Report
Training 8051Report
 
A Review on Parametric Programming Techniques Utilized For Advanced CNC Machines
A Review on Parametric Programming Techniques Utilized For Advanced CNC MachinesA Review on Parametric Programming Techniques Utilized For Advanced CNC Machines
A Review on Parametric Programming Techniques Utilized For Advanced CNC Machines
 
Lecture11 abap on line
Lecture11 abap on lineLecture11 abap on line
Lecture11 abap on line
 
Functional programming in TypeScript
Functional programming in TypeScriptFunctional programming in TypeScript
Functional programming in TypeScript
 
Modular programming
Modular programmingModular programming
Modular programming
 
Module 5.pdf
Module 5.pdfModule 5.pdf
Module 5.pdf
 
Functional Paradigm.pptx
Functional Paradigm.pptxFunctional Paradigm.pptx
Functional Paradigm.pptx
 
Answers
AnswersAnswers
Answers
 
Rejunevating software reengineering processes
Rejunevating software reengineering processesRejunevating software reengineering processes
Rejunevating software reengineering processes
 
Inline functions & macros
Inline functions & macrosInline functions & macros
Inline functions & macros
 
MTS Software Brochure
MTS Software BrochureMTS Software Brochure
MTS Software Brochure
 
Cnc intro
Cnc introCnc intro
Cnc intro
 
Mvi an architecture for reactive programming
Mvi an architecture for reactive programmingMvi an architecture for reactive programming
Mvi an architecture for reactive programming
 
Basic construction of c
Basic construction of cBasic construction of c
Basic construction of c
 
9. Software Implementation
9. Software Implementation9. Software Implementation
9. Software Implementation
 
SWE-401 - 9. Software Implementation
SWE-401 - 9. Software ImplementationSWE-401 - 9. Software Implementation
SWE-401 - 9. Software Implementation
 
A review of slicing techniques in software engineering
A review of slicing techniques in software engineeringA review of slicing techniques in software engineering
A review of slicing techniques in software engineering
 

More from meet shah

Starbucksppt 130910135153-phpapp02
Starbucksppt 130910135153-phpapp02Starbucksppt 130910135153-phpapp02
Starbucksppt 130910135153-phpapp02
meet shah
 
CUTLERY HOW IT IS MADE
CUTLERY HOW IT IS MADECUTLERY HOW IT IS MADE
CUTLERY HOW IT IS MADE
meet shah
 
Mercedessmppt 140222062126-phpapp01 (1)
Mercedessmppt 140222062126-phpapp01 (1)Mercedessmppt 140222062126-phpapp01 (1)
Mercedessmppt 140222062126-phpapp01 (1)
meet shah
 
Measurementandtestingoficengine 160410092948
Measurementandtestingoficengine 160410092948Measurementandtestingoficengine 160410092948
Measurementandtestingoficengine 160410092948
meet shah
 
Jainish ms ai
Jainish ms aiJainish ms ai
Jainish ms ai
meet shah
 
Jainish cam fms
Jainish cam fmsJainish cam fms
Jainish cam fms
meet shah
 
Indianarmy 121223071822-phpapp01
Indianarmy 121223071822-phpapp01Indianarmy 121223071822-phpapp01
Indianarmy 121223071822-phpapp01
meet shah
 
Frictionstirweldingsfw 180326140802
Frictionstirweldingsfw 180326140802Frictionstirweldingsfw 180326140802
Frictionstirweldingsfw 180326140802
meet shah
 
Flipkartanalysis2 141017040240-conversion-gate01
Flipkartanalysis2 141017040240-conversion-gate01Flipkartanalysis2 141017040240-conversion-gate01
Flipkartanalysis2 141017040240-conversion-gate01
meet shah
 
Explain working of various air conditioning equipment
Explain working of various air conditioning equipmentExplain working of various air conditioning equipment
Explain working of various air conditioning equipment
meet shah
 
Dry and wet etching
Dry and wet etchingDry and wet etching
Dry and wet etching
meet shah
 
Contributor personality development
Contributor personality developmentContributor personality development
Contributor personality development
meet shah
 
Cnc axis and motion nomenclature
Cnc axis and motion nomenclatureCnc axis and motion nomenclature
Cnc axis and motion nomenclature
meet shah
 
Case study on rolex
Case study on rolexCase study on rolex
Case study on rolex
meet shah
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
meet shah
 

More from meet shah (15)

Starbucksppt 130910135153-phpapp02
Starbucksppt 130910135153-phpapp02Starbucksppt 130910135153-phpapp02
Starbucksppt 130910135153-phpapp02
 
CUTLERY HOW IT IS MADE
CUTLERY HOW IT IS MADECUTLERY HOW IT IS MADE
CUTLERY HOW IT IS MADE
 
Mercedessmppt 140222062126-phpapp01 (1)
Mercedessmppt 140222062126-phpapp01 (1)Mercedessmppt 140222062126-phpapp01 (1)
Mercedessmppt 140222062126-phpapp01 (1)
 
Measurementandtestingoficengine 160410092948
Measurementandtestingoficengine 160410092948Measurementandtestingoficengine 160410092948
Measurementandtestingoficengine 160410092948
 
Jainish ms ai
Jainish ms aiJainish ms ai
Jainish ms ai
 
Jainish cam fms
Jainish cam fmsJainish cam fms
Jainish cam fms
 
Indianarmy 121223071822-phpapp01
Indianarmy 121223071822-phpapp01Indianarmy 121223071822-phpapp01
Indianarmy 121223071822-phpapp01
 
Frictionstirweldingsfw 180326140802
Frictionstirweldingsfw 180326140802Frictionstirweldingsfw 180326140802
Frictionstirweldingsfw 180326140802
 
Flipkartanalysis2 141017040240-conversion-gate01
Flipkartanalysis2 141017040240-conversion-gate01Flipkartanalysis2 141017040240-conversion-gate01
Flipkartanalysis2 141017040240-conversion-gate01
 
Explain working of various air conditioning equipment
Explain working of various air conditioning equipmentExplain working of various air conditioning equipment
Explain working of various air conditioning equipment
 
Dry and wet etching
Dry and wet etchingDry and wet etching
Dry and wet etching
 
Contributor personality development
Contributor personality developmentContributor personality development
Contributor personality development
 
Cnc axis and motion nomenclature
Cnc axis and motion nomenclatureCnc axis and motion nomenclature
Cnc axis and motion nomenclature
 
Case study on rolex
Case study on rolexCase study on rolex
Case study on rolex
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 

Recently uploaded

openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
Remote DBA Services
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Julian Hyde
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
Hornet Dynamics
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
SOCRadar
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
Gerardo Pardo-Castellote
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
pavan998932
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
Sven Peters
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
Green Software Development
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
Green Software Development
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
Rakesh Kumar R
 
What is Master Data Management by PiLog Group
What is Master Data Management by PiLog GroupWhat is Master Data Management by PiLog Group
What is Master Data Management by PiLog Group
aymanquadri279
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
Hironori Washizaki
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
kalichargn70th171
 

Recently uploaded (20)

openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
Oracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptxOracle 23c New Features For DBAs and Developers.pptx
Oracle 23c New Features For DBAs and Developers.pptx
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)Measures in SQL (SIGMOD 2024, Santiago, Chile)
Measures in SQL (SIGMOD 2024, Santiago, Chile)
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
E-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet DynamicsE-commerce Development Services- Hornet Dynamics
E-commerce Development Services- Hornet Dynamics
 
socradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdfsocradar-q1-2024-aviation-industry-report.pdf
socradar-q1-2024-aviation-industry-report.pdf
 
DDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systemsDDS-Security 1.2 - What's New? Stronger security for long-running systems
DDS-Security 1.2 - What's New? Stronger security for long-running systems
 
What is Augmented Reality Image Tracking
What is Augmented Reality Image TrackingWhat is Augmented Reality Image Tracking
What is Augmented Reality Image Tracking
 
Microservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we workMicroservice Teams - How the cloud changes the way we work
Microservice Teams - How the cloud changes the way we work
 
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, FactsALGIT - Assembly Line for Green IT - Numbers, Data, Facts
ALGIT - Assembly Line for Green IT - Numbers, Data, Facts
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Energy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina JonuziEnergy consumption of Database Management - Florina Jonuzi
Energy consumption of Database Management - Florina Jonuzi
 
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit ParisNeo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
Neo4j - Product Vision and Knowledge Graphs - GraphSummit Paris
 
How to write a program in any programming language
How to write a program in any programming languageHow to write a program in any programming language
How to write a program in any programming language
 
What is Master Data Management by PiLog Group
What is Master Data Management by PiLog GroupWhat is Master Data Management by PiLog Group
What is Master Data Management by PiLog Group
 
Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024SWEBOK and Education at FUSE Okinawa 2024
SWEBOK and Education at FUSE Okinawa 2024
 
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf8 Best Automated Android App Testing Tool and Framework in 2024.pdf
8 Best Automated Android App Testing Tool and Framework in 2024.pdf
 

Macro

  • 1. MADE BY:- MEET SHAH ENROLL. NO:- 156050319051 SUBJECT:- CAM BRANCH:- MECHANICAL (SFI) COLLEGE :- B&B INSTITUE OF TECHNOLOGY
  • 2. What is macro? Definition of macro. Why use macro? G and M codes. Types of Variables .
  • 3.  A sequence of instructions which are stored and called up as one integral unit.  Macro programming is useful tool for many cnc machines.  It provides a mean of shortening code and doing repetitive tasks easily and quickly.  Macro is also useful for families of parts.
  • 4. A macro is a form of subprogram that includes non G commands. It is typically a common operation that will be called many times. Any program that performs a common function and will be executed repeatedly within a G code program.
  • 5. A G-code program is rigid in structure and can not be altered in mid-operation. Offset are the only means to adjust the machine path from one run to the next. Macros add flexible with the use of additional macro statements.  With macros you can set up families of parts, create custom canned cycles and drive optional devices.
  • 6. M01 Optional Program stop M00 Program stop M30 Program end and reset G04 Dwell G65 Macro sub program call M97 Local sub program call M98 Sub program call M109 Interactive user input
  • 7. Local variables Global variables System variables String variables
  • 8.  These variables are local to the program.  They are used to transfer values to a cycle call or as intermediate mathematical value holders.  They are reset to null when program is reset or end.  The local variables are typically #100-#499.
  • 9. These variables once set remain set unless you change or reset them. Unlike local variables they are available in any program. It can be retained and used in any program. Global variable are typically #500-#999.
  • 10. These variables are available to use in macro programming and allow you to write and retrieve information from control itself, such as tool in spindle, tool offset active etc.
  • 11. It is group of characters interpreted as single value. Typically defined as $ symbol. It allows you to manipulate text and phases etc. `