EasyManua.ls Logo

WEIHONG ELECTRONIC Ncstudio - Comments in Program; Demonstration of Machining File Programming

Default Icon
74 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
上海维宏电子科技股份有限公司
Weihong Electronic Technology Co., Ltd.
56 Specialized, Concentrated, Focused
Note:
Radian is the unit for the numbers in the brackets which are behind sin, cos, tg, ctg, asin, acos, atg.
For example: sin (5), 5 represents 5 radians.
Application of Expression in Program Instructions:
Instance one: B=1+2; i.e. B=3
Instance two: G00 X3 Y5 Z=5+sin (5+abs (-8)); Assign 5+sin (5+abs (-8)) to Z
Instance three: #1=4+log6
G01 X2 Y=#; Assign 4+log6 to Y
4.6 Comments in Program
A comment in a program is started with a single quotation mark:
’—— end-of-line pattern, content behind the single quotation mark does not work until the end of
line.
For Example:
G00 X3 Y5 rapid traverse to X3, Y5
The content behind the single quotation mark can only act as a comment and will not be
executed when the program is run.
4.7 Demonstration of Machining File Programming
Example 1 Programming for the Workpiece Shown in Fig. 4-39
Fig. 4-39 Workpiece Machining Sketch
N01 G92 X0 Y0 Z0 workpiece coordinates system setting

Table of Contents

Related product manuals