CART

(0) items

Fanuc Custom Macros : Programming Resources for Fanuc Custom Macro B Users

by
Edition:
1st
ISBN13:

9780831131579

ISBN10:
0831131578
Format:
Hardcover
Pub. Date:
11/1/2004
Publisher(s):
INDUSTRIAL PRESS

Summary

An invaluable companion to the author's best selling CNC Programming Handbook, this book is a general introduction to the subject of macros (known as Custom Macros or User Macros). Its purpose is to make you aware of what macros are, how to develop them, and how to use them effectively. It also explores important related subjects and identifies several other helpful topics in this increasingly important and exciting field of CNC programming.

Author Biography

Peter Smid is a professional consultant, educator, and speaker, and has many years of practical, hands-on experience with CNC and CAD/CAM applications on all levels

Table of Contents

Fanuc Macros
1(10)
General Introduction
1(3)
Review of G-codes, M-codes and Subprograms
2(1)
System Parameters
2(1)
Data Setting
2(1)
Custom Macros
3(1)
Probing Applications
3(1)
Overall View
3(1)
Macro Programming
4(2)
Macro Option Check
4(1)
What is a Macro Programming?
4(1)
Typical Features
5(1)
Main Program with Macro Features
5(1)
Using Macros
6(4)
Groups of Similar Parts
7(1)
Offset Control
8(1)
Custom Fixed Cycles
8(1)
Nonstandard Tool Motions
8(1)
Special G-codes and M-codes
8(1)
Alarm and Message Generation
8(1)
Replacing Control Options
9(1)
Hiding and Protecting Macro Programs
9(1)
Probing and Gauging
9(1)
Various Shortcuts and Utilities
9(1)
Skills Requirements
10(1)
Basic Program Codes
11(10)
Preparatory Commands
11(1)
Default Settings
11(1)
Modal Values
12(1)
Programming Format
12(1)
Miscellaneous Functions
12(1)
Programming Format
12(1)
M-codes with a Motion
12(1)
Custom M-codes
12(1)
Reference Tables
13(1)
G-codes for Milling
13(3)
Three-Digit G-codes
15(1)
M-codes for Milling
16(1)
G-codes for Turning
16(3)
M-codes for Turning
19(1)
Standard Program Codes
20(1)
Optional Program Codes
20(1)
Review of Subprograms
21(12)
Subprogram Example - Mill
21(4)
Rules of Subprograms
25(2)
Subprogram Repetition
27(1)
Subprogram Nesting
27(3)
Subprogram Documentation
29(1)
Subprograms vs. Macros
30(1)
Unique Features
30(1)
CNC Lathe Applications
31(2)
Subprogram Development
32(1)
System Parameters
33(16)
What are Parameters?
33(1)
Saving Parameters
34(1)
Backing Up Parameters
34(1)
Parameter Identification
35(1)
Numbering of Parameters
35(1)
Parameter Classification
35(2)
Parameters Grouping
36(1)
Parameter Display Screen
37(1)
Parameter Data Types
37(8)
Bit-Type Data Type
37(3)
Relationship of Parameters
40(1)
Byte Data Type
41(1)
Word Data Type
42(1)
2-Word Data Type
42(1)
Axis Data Type
43(1)
Important Observations
44(1)
Binary Numbers
45(1)
Setting and Changing Parameters
46(1)
Protection of Parameters
46(1)
Battery Backup
46(1)
Changing Parameters
47(1)
System Defaults
47(2)
Default Values Settings
48(1)
Data Setting
49(24)
Input of Offsets
49(1)
Data Setting Command
50(1)
Coordinate Mode
50(1)
Absolute Mode
50(1)
Incremental Mode
50(1)
Work Offsets
51(2)
Standard Work Offset Input
51(1)
Additional Work Offset Input
52(1)
External Work Offset Input
52(1)
Offset Memory Types - Milling
53(5)
Geometry Offset
53(1)
Wear Offset
53(1)
Which Offset to Update?
54(1)
Memory Type A
55(1)
Memory Type B
56(1)
Memory Type C
57(1)
Memory Type and Macros
57(1)
Offset Memory Types - Turning
58(1)
Adjusting Offset Values
59(1)
Absolute Mode
59(1)
Incremental Mode
59(1)
Tool Offset Program Entry
60(2)
L-Address
60(1)
G10 Offset Data Settings - Milling Examples
61(1)
Valid Input Range
62(1)
Lathe Offsets
62(3)
P-Offset Number
63(1)
Tip Number Q
63(1)
G10 Offset Data Settings - Turning Examples
64(1)
Data Setting Check in MDI
65(1)
Programmable Parameter Entry
65(2)
Modal G10 Command
66(1)
N-address in G10 L50 Mode
67(1)
P-address in G10 L50 Mode
67(1)
R-address in G10 L50 Mode
67(1)
Program Portability
67(6)
Setting Machine Axes to Zero
70(1)
Bit Type Parameter Example
70(2)
Differences Between Control Models
72(1)
Effect of Block Numbers
72(1)
Block Skip
72(1)
Macro Structure
73(10)
Basic Tools
73(2)
Variables
74(1)
Functions and Constants
74(1)
Logical Functions
74(1)
Defining and Calling Macros
75(4)
Macro Definition
75(1)
Macro Call
75(2)
Arguments
77(1)
Visual Representation
78(1)
Macro Program Numbers
79(4)
Macro Program Protection
79(1)
Setting Definitions
79(1)
Program Numbers - Range O0001 to O7999
80(1)
Program Numbers - Range O8000 to O8999
80(1)
Program Numbers - Range O9000 to O9999
81(1)
Program Numbers - Range O9000 to O9049
82(1)
Difference Between the O8000 and O9000 Program Numbers
82(1)
Concept of Variables
83(10)
Types of Macro Variables
83(1)
Variables in Macros
84(1)
Definition of Variables
84(1)
Calculator Analogy
84(1)
Variable Data
84(1)
Variable Declaration
85(1)
Real Numbers and Integers
85(1)
Variable as an Expression
86(1)
Usage of Variables
86(6)
Decimal Point Usage
87(1)
Metric and English Units
88(1)
Least Increment
88(1)
Positive and Negative Variables
89(1)
Syntax Errors
90(1)
Restrictions
90(2)
Custom Machine Features
92(1)
Assigning Variables
93(16)
Local Variables
93(1)
Defining Variables
93(1)
Clearing Local Variables
94(1)
Assigning Local Variables
94(4)
Assignment List 1 - Method 1
94(1)
Assignment List 2 - Method 2
95(2)
Missing Addresses
97(1)
Disallowed Addresses
98(1)
Simple and Modal Macro Calls
98(3)
Selection of Variables
99(2)
Main Program and Local Variables
101(4)
Local Variables and Nesting Levels
105(1)
Common Variables
106(1)
Volatile and Nonvolatile Memory Groups
106(1)
Input Range of Variables
107(1)
Out-of-Range Values
107(1)
Calculator Analogy
107(1)
Set Variable Name Function SETVN
108(1)
Protection of Common Variables
108(1)
Macro Functions
109(28)
Function Groups
109(1)
Definition of Variables Revisited
110(3)
Referencing Variables
110(1)
Vacant or Empty Variables
111(1)
Axis Motion Commands and Null Variables
111(1)
Terminology
112(1)
Arithmetic Functions
113(3)
Nesting
113(1)
Arithmetic Operations and Vacant Variables
114(1)
Division by Zero
115(1)
Trigonometric Functions
116(1)
Conversion to Decimal Degrees
116(1)
Available Functions
116(1)
Rounding Functions
117(5)
Rounding to a Fixed Number of Decimal Places
119(2)
FUP and FIX Functions
121(1)
Miscellaneous Functions
122(2)
SQRT and ABS Functions
122(2)
LN, EXP and ADP Functions
124(1)
Logical Functions
124(2)
Boolean Functions
124(1)
Binary Numbers Functions
125(1)
Boolean and Binary Examples
125(1)
Conversion Functions
126(1)
Evaluation of Functions - Special Test
126(3)
Order of Function Evaluation
128(1)
Approach to Practical Applications
129(8)
Using Local Variables
129(4)
Using Common Variables
133(1)
Speeds and Feeds Calculation
134(3)
System Variables
137(10)
Identifying System Variables
137(1)
System Variables Groups
138(6)
Read and Write Variables
138(1)
Displaying System Variables
138(1)
System Variables for Fanuc Series 0
139(1)
Fanuc Model 0 Compared to Other Models
140(1)
System Variables for Fanuc Series 10/11/15
140(1)
System Variables for Fanuc Series 16/18/21
141(3)
Organization of System Variables
144(1)
Resetting Program Zero
145(2)
Tool Offset Variables
147(16)
System Variables and Tool Offsets
147(1)
Tool Offset Memory Groups
148(2)
Tool Offset Memory - Type A
148(1)
Tool Offset Memory - Type B
149(1)
Tool Offset Memory - Type C
149(1)
Tool Offset Variables - Fanuc 0 Controls
150(2)
Milling Control FS-0M
150(1)
Turning Control - FS-0T
151(1)
Tool Offset Variables - FS 10/11/15/16/18/21 for Milling
152(6)
Assignments for 200 Offsets or Less - Memory Type A
152(1)
Assignments for 200 Offsets or Less - Memory Type B
153(1)
Assignments for 200 Offsets or Less - Memory Type C
154(1)
Assignments for More Than 200 Offsets - Memory Type A
155(1)
Assignments for More Than 200 Offsets - Memory Type B
156(1)
Assignments for More Than 200 Offsets - Memory Type C
157(1)
Tool Offset Variables - FS 10/11/15/16/18/21 for Turning
158(5)
Tool Setting
158(1)
Assignments for 64 Offsets or Less - Memory Type A
159(1)
Assignments for 64 Offsets or Less - Memory Type B
160(1)
Assignments for More than 64 Offsets - Memory Type A
161(1)
Assignments for More than 64 Offsets - Memory Type B
162(1)
Modal Data
163(8)
System Variables for Modal Commands
163(1)
Fanuc 0/16/18/21 Modal Information
163(1)
Fanuc 10/11/15 Modal Information
163(1)
Preceding and Executing Blocks
164(1)
Modal G-codes
164(3)
Fanuc 0/16/18/21
165(1)
Fanuc 10/11/15
166(1)
Saving and Restoring Data
167(1)
Saving Modal Data
167(1)
Restoring Modal Data
168(1)
Other Modal Functions
168(3)
Fanuc 0/16/18/21
169(1)
Fanuc 10/11/15
170(1)
Branches and Loops
171(16)
Decision Making in Macros
171(1)
IF Function
172(5)
Conditional Branching
172(1)
Unconditional Branching
173(1)
IF-THEN Option
174(1)
Single Conditional Expressions
175(1)
Combined Conditional Expressions
176(1)
Concept of Loops
177(2)
Single Process
177(1)
Multiple Process
177(2)
While Loop Structure
179(3)
Single Level Nesting Loop
179(1)
Double Level Loop
180(1)
Triple Level Loop
180(1)
General Considerations
181(1)
Restrictions of the While Loop
181(1)
Conditional Expressions and Null Variables
182(2)
Formula Based Macro - Sine Curve
184(2)
Clearing Common Variables
186(1)
Alarms and Timers
187(6)
Alarms in Macros
187(4)
Alarm Number
187(1)
Alarm Message
187(1)
Alarm Format
188(1)
Embedding Alarm in a Macro
188(2)
Resetting an Alarm
190(1)
Message Variable - Warning, Not an Alarm
190(1)
Timers in Macros
191(2)
Time Information
191(1)
Timing an Event
191(1)
Dwell as a Macro
192(1)
Axis Position Data
193(2)
Axis Position Terms
193(1)
Position Information
194(1)
Auto Mode Operations
195(8)
Controlling Automatic Operations
195(4)
Single Block Control
195(1)
M-S-T Functions Control
196(1)
Feedhold, Feedrate, and Exact Check Control
197(1)
Example of Special Tapping Operation
198(1)
Systems Settings
199(1)
Mirror Image Status Check
199(3)
Interpreting System Variable #3007
200(2)
Controlling the Number of Machined Parts
202(1)
Editing Macros
203(2)
Editing Units
203(1)
Program Comments
203(1)
Abbreviations of Macro Functions
204(1)
Parametric Programming
205(4)
What is a Parametric Programming?
205(1)
Variable Data
205(1)
Benefits of Parametric Programming
206(1)
When to Program Parametrically
206(1)
Planned Approach to Macro Development
207(2)
Family of Similar Parts
209(12)
Macro Development in Depth - Location Pin
209(12)
Drawing Evaluation
210(1)
Objective of the Macro
210(1)
Part Setup, Tooling and Machining Method
210(1)
Drawing Sketch
211(1)
Standard Program
211(1)
Identify Variable Data
212(3)
Creating Arguments
215(1)
Using Variables
216(1)
Writing the Macro
217(1)
Final Version
218(2)
Macro Improvements
220(1)
Macros for Machining
221(34)
Angular Hole Pattern - Version 1
221(3)
Variable Data for Angular Hole Pattern
223(1)
Angular Hole Pattern - Version 2
224(2)
Frame Hole Pattern
226(3)
Variable Data for Frame Hole Pattern
227(2)
Bolt Hole Circle Pattern
229(4)
Variable Data for Bolt Hole Circle Pattern
231(2)
Arc Hole Pattern
233(3)
Variable Data for Arc Hole Pattern
234(2)
Circular Pocket Roughing
236(4)
Variable Data for Circular Pocket Roughing
237(2)
Amount of Stock Left
239(1)
Circular Pocket Finishing
240(4)
Variable Data for Circular Pocket Finishing
241(3)
Slot Machining Macro
244(3)
Variable Data for Slot Machining
245(2)
Circular Groove with Multiple Depth
247(4)
From Subprograms to Macros
248(1)
Macro Version Development
249(2)
Rectangular Pocket Finishing
251(4)
Custom Cycles
255(12)
Special Cycles
255(1)
Options Available
256(1)
G-code Macro Call
256(2)
M-functions Macro Call
258(2)
G13 Circle Cutting Cycle
260(7)
Macro Call - Normal
262(1)
Macro Call - as a Special Cycle
262(2)
Detailed Evaluation of Offset Value
264(2)
Counterboring Application
266(1)
External Output
267(8)
Port Open and Port Close Commands
267(1)
Data Output Functions
268(1)
BPRNT Function Description
268(1)
DPRNT Function Description
269(1)
Parameter Settings - Fanuc 10/11/12/15
269(2)
Metric vs. Inch Format
270(1)
Parameter Settings - Fanuc 16/18/21
271(1)
Structure of External Output Functions
272(2)
Output Examples
273(1)
Blank Output Line
274(1)
Columns Formatting
274(1)
DPRNT Practical Examples
274(1)
Date
274(1)
Time
274(1)
Work Offset
274(1)
Probing with Macros
275(20)
What is Probing ?
275(3)
Touch Probes
276(1)
Probing Technology Today
276(1)
Probe Calibration
277(1)
Feedrate and Probing Accuracy
277(1)
Probing Devices on CNC Machines
278(1)
In-Process Gauging Benefits
278(1)
Types of Probes
278(1)
Probe Size
279(1)
Probe Selection Criteria
279(1)
Machined Part
279(1)
Control System Capabilities
280(1)
Expected Tolerances
280(1)
Additional and Optional Features
280(1)
Associated Costs
280(1)
CNC Machine Probe Technology
280(2)
Optical Signal Transmission
281(1)
Inductive Signal Transmission
282(1)
Radio Signal Transmission
282(1)
In-Process Gauging
282(1)
Features to be Measured
283(5)
Center Location Measurement
284(2)
Measuring External or Internal Width
286(1)
Measuring Depth
287(1)
Measuring External Diameter
287(1)
Measuring Internal Diameter
287(1)
Measuring Angles
288(1)
Changing of Set Values
288(1)
Calibration Devices
288(1)
Calibrating device - Type 1
288(1)
Calibrating device - Type 2
288(1)
Checking the Calibration Device
289(1)
Centering Macro Example
289(2)
Probe Length Calibration
291(2)
Skip Command G31
293(2)
Additional Resources
295(6)
Limitations During Macro Execution
295(2)
Single Block Setting
295(1)
Block Number Search
295(1)
Block Skip Function
295(1)
MDI Operation
296(1)
Edit Mode
296(1)
Control Reset
296(1)
Feedhold Switch
296(1)
Knowledge for Macro Programming
297(2)
General Skills
297(1)
Manual Programming Experience
298(1)
Math Applications
298(1)
Setup Practices
298(1)
Machining Practices
298(1)
Control and Machine Operation
298(1)
Complementary Resources
299(1)
Industrial Press, Inc.
299(1)
Internet
299(1)
Practical Programming Approach
299(1)
Macro Programming Tips
300(1)
Macro Course Outline
301(6)
Macro Course Outline
301(5)
Closing Comments
306(1)
Index 307(6)
What's on the CD-ROM? 313


Please wait while the item is added to your cart...