What is included with this book?
S. K. Sinha earned his Ph.D. in mechanical engineering from the Indian Institute of Technology in 1993. He has 18 years of teaching experience in CNC programming and has been working in the CNC area for the past 10 years.
Preface | p. xi |
Acknowledgments | p. xiii |
Introduction | p. 1 |
Part Programming Techniques | p. 2 |
Conventional Part Programming | p. 2 |
Conversational Part Programming | p. 3 |
Part Programming Using CAM Software | p. 3 |
Macro Programming | p. 4 |
Comparison of the Four Methods | p. 4 |
Certain Applications of Macro Programming | p. 4 |
Complex Motions | p. 5 |
Families of Parts | p. 5 |
Custom Canned Cycles | p. 6 |
"Intelligent" Programs | p. 7 |
Probing | p. 7 |
Machine Status Information/Manipulation | p. 8 |
Communication with External Devices | p. 8 |
Does My Machine Have Macro Capability? | p. 9 |
Aim of the Present Text | p. 11 |
How to Use This Text | p. 11 |
Variables and Expressions | p. 13 |
Macro Variables | p. 13 |
Macro Expressions | p. 13 |
Assigning a Value to a Variable | p. 16 |
Display of Variables | p. 18 |
Real versus Integer Values | p. 19 |
Undefined Variables | p. 22 |
Null Variables in Word Addresses | p. 22 |
Null Variables in Arithmetic Operations | p. 23 |
Null Variables in Conditional Expressions | p. 23 |
A Simple Use of Macro Programming Features | p. 24 |
Retaining Programs in MDI Mode | p. 24 |
Types of Variables | p. 27 |
Local and Global Variables | p. 27 |
Effect of System Reset on Macro Variables | p. 28 |
Levels of Local Variables | p. 29 |
Range of Values Stored in Variables | p. 33 |
System Variables | p. 35 |
System Variables versus System Parameters | p. 35 |
System Variables on Fanuc 0i Series Controls | p. 36 |
Displaying System Variables | p. 36 |
Interface Signals | p. 37 |
System Variables for Input Interface Signals | p. 40 |
System Variables for Output Interface Signals | p. 40 |
Geometry and Wear Offset Values | p. 40 |
Workpiece Coordinate System Shift Amount | p. 43 |
Macro Alarms | p. 44 |
Time Information | p. 45 |
Automatic Operation Control | p. 45 |
Execution Pause | p. 48 |
Mirror Image Information | p. 48 |
Number of Machined Parts | p. 48 |
Modal Information | p. 49 |
Current Tool Position | p. 52 |
Work Offset Values | p. 55 |
Macro Functions | p. 57 |
Types of Macro Functions | p. 57 |
Priority of Operations in Arithmetic Expressions | p. 57 |
Priority of Operations in Boolean Expressions | p. 58 |
Effect of Order of Calculations | p. 58 |
Nesting of Brackets | p. 59 |
Arithmetic Operations | p. 59 |
Division versus Block-Skip Function | p. 60 |
Trigonometric Functions | p. 60 |
Rounding Functions | p. 63 |
ROUND, FIX, and FUP | p. 64 |
Miscellaneous Functions | p. 67 |
SQRT | p. 67 |
ABS | p. 67 |
LN | p. 68 |
EXP | p. 68 |
Arbitrary Exponent of a Number | p. 69 |
Logical Functions | p. 69 |
Bitwise Functions | p. 69 |
Boolean Functions | p. 71 |
Bitwise versus Boolean Operations | p. 72 |
Enabling Boolean Operations | p. 73 |
An Application Example of Bitwise Operation | p. 73 |
Conversion Functions | p. 75 |
Branches and Loops | p. 79 |
Unconditional Branching | p. 79 |
Conditional Branching | p. 80 |
Conditional Execution of a Single Macro Statement | p. 93 |
Execution in a Loop | p. 94 |
Arithmetic Operations on Macro Variable Numbers | p. 103 |
Methods of Zero Shift | p. 106 |
Machine Coordinate System | p. 107 |
External Workpiece Coordinate System | p. 107 |
G54-G59, G54.1 P1-P48 Workpiece Coordinate Systems | p. 108 |
Zero Shift by Manipulating Offset Distances | p. 109 |
Zero Shift through System Variables | p. 109 |
Work Offset Display on a Milling Machine | p. 110 |
System Variables for Various Work Offset Values | p. 111 |
Zero Shift through a Program | p. 111 |
Nested WHILE Statement | p. 115 |
Review of Subprograms | p. 121 |
Introduction | p. 121 |
What Is a Subprogram? | p. 121 |
Why Is It Used? | p. 121 |
Subprograms versus Subroutines of a Conventional Computer Language | p. 122 |
Subprogram Call | p. 122 |
Multiple Call of a Subprogram | p. 125 |
Subprogram Nesting | p. 132 |
Macro Call | p. 137 |
Introduction | p. 137 |
Macro versus Subprogram | p. 137 |
Macro Call | p. 138 |
Simple Call (G65) | p. 138 |
Modal Call (G66) | p. 141 |
Call with User-Defined G-Code | p. 145 |
Call with User-Defined M-Code | p. 147 |
Subprogram Call without Using M98/M198 | p. 148 |
Subprogram Call Using an M-Code | p. 148 |
Subprogram Call Using a T-Code | p. 150 |
Argument Specification | p. 151 |
Argument Specification I | p. 152 |
Argument Specification II | p. 153 |
Mixed Argument Specification | p. 154 |
An Example of a G-Code Macro Call with Arguments | p. 155 |
Processing of Macro Statements | p. 163 |
What Is Buffering? | p. 163 |
How Many Blocks Are Buffered? | p. 163 |
When Are the Buffered Blocks Processed? | p. 163 |
Processing When the Next Block is Not Buffered | p. 163 |
Processing in Radius Compensation Cancel (G40) Mode | p. 164 |
Processing in Radius Compensation Mode (Case 1) | p. 164 |
Processing in Radius Compensation Mode (Case 2) | p. 164 |
Effect of Buffering of Macro Statements on Program Execution | p. 165 |
Complex Motion Generation | p. 167 |
Introduction | p. 167 |
Arc with Uniformly Varying Radius | p. 167 |
Helical Interpolation with Variable Radius | p. 175 |
Parabolic Turning | p. 181 |
Roughing Operation | p. 184 |
Step-Removal Operation | p. 184 |
Turning a Sine Curve | p. 188 |
Parametric Programming | p. 193 |
Introduction | p. 193 |
Locator Pin | p. 194 |
Bolt Holes on a Flange | p. 200 |
Custom Canned Cycles | p. 207 |
Introduction | p. 207 |
Deep-Hole Peck Drilling on a Lathe | p. 207 |
Drilling with Reducing Peck Lengths on a Milling Machine | p. 215 |
Probing | p. 223 |
Introduction | p. 223 |
Skip Function on a CNC Machine | p. 224 |
Probing a Pocket | p. 224 |
Finding Center of a Hole | p. 228 |
Finding Angle of an Edge | p. 231 |
Adjusting Wear Offset | p. 233 |
Communication with External Devices | p. 237 |
Introduction | p. 237 |
Switching Principle | p. 237 |
Input Types and Wiring | p. 239 |
Connector Pin Assignment | p. 240 |
Discrete Sensors for Sourcing/Sinking PLC Inputs | p. 244 |
Output Types and Wiring | p. 246 |
Programmable Data Input | p. 251 |
Introduction | p. 251 |
Data Input for WCS Offset Distances | p. 252 |
Data Input for Additional WCS Offset Distances | p. 253 |
Data Input for Compensation Values on a Milling Machine | p. 254 |
Data Input for Compensation Values on a Lathe | p. 255 |
Data Input for Parameter Values | p. 258 |
A Limitation of G10 L50 Method | p. 262 |
Appendix A List of Complex Macros | p. 263 |
Appendix B List of Parameters | p. 265 |
Index | p. 267 |
Table of Contents provided by Ingram. All Rights Reserved. |
The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.
The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.