Products Catalogue Home     |     About Us    |     Retrofit     |     Download     |     News     |     Tech Support     |     Contact Us     |     
ppr fittings-NF-4011-Newsun Industry Co., Ltd
Home > Tech Support >

Macro Calculation Formula

proe function formula
Name: Sine curve
Establishment environment: Pro/E software, Cartesian coordinate system
x=50*t
y=10*sin(t*360)
z=0
 
Name: Helical curve
Establishment environment: PRO/E; cylindrical coordinates (cylindrical)
r=t
theta=10+t*(20*360)
z=t*3
 
Butterfly curve
Spherical coordinates PRO/E
Equation: rho = 8 * t
theta = 360 * t * 4
phi = -360 * t * 8
 
Rhodonea curve
Use Cartesian coordinate system
theta=t*360*4
x=25+(10-6)*cos(theta)+10*cos((10/6-1)*theta)
y=25+(10-6)*sin(theta)-6*sin((10/6-1)*theta)
*********************************
 
Spiral in circle
Column coordinate system
theta=t*360
r=10+10*sin(6*theta)
z=2*sin(6*theta)
 
Involute equation
r=1
ang=360*t
s=2*pi*r*t
x0=s*cos(ang)
y0=s*sin(ang)
x=x0+s*sin(ang)
y=y0-s*cos(ang)
z=0
Logarithmic curve
z=0
x = 10*t
y = log(10*t+0.0001)
Spherical spiral (using spherical coordinate system)
rho=4
theta=t*180
phi=t*360*20
 
Name: Double arc outer cycloid
Cardir coordinates
Equation: l=2.5
b=2.5
x=3*b*cos(t*360)+l*cos(3*t*360)
Y=3*b*sin(t*360)+l*sin(3*t*360)
Name: Star Line
Cardir coordinates
equation:
a=5
x=a*(cos(t*360))^3
y=a*(sin(t*360))^3
Name: Heart Line
Build environment: pro/e, cylindrical coordinates
a=10
r=a*(1+cos(theta))
theta=t*360
Name: Leaf Shape Line
Setting up the environment: Cartesian coordinates
a=10
x=3*a*t/(1+(t^3))
y=3*a*(t^2)/(1+(t^3))
 
Spiral in Cartesian coordinates
x = 4 * cos (t *(5*360))
y = 4 * sin (t *(5*360))
z = 10*t
 
A parabola
Cartesian coordinates
x = (4 * t)
y = (3 * t) + (5 * t ^2)
z =0
 
Name: Disc spring
Build environment: pro/e
Cylindrical sitting
r = 5
theta = t*3600
z =(sin(3.5*theta-90))+24*t
 
 
Equation: Archimedes spiral
x = (a +f sin (t))cos(t)/a
y = (a -2f +f sin (t))sin(t)/b
 
Related explanatory materials for pro/e relations and functions?
Functions used in relations
Mathematical function
The following operators can be used in relations (including equations and conditional statements).
The following mathematical functions can also be included in the relationship:
cos () cosine
tan () Tangent
sin () sine
sqrt () square root
asin () arc sine
acos () arc cosine
atan () arctangent
sinh () Hyperbolic sine
cosh () Hyperbolic cosine
tanh () Hyperbolic tangent
Note: All trigonometric functions use unit degrees.
 
log() base 10 logarithm
ln() natural logarithm
exp() power of e
abs() absolute value
ceil() The smallest integer not less than its value
floor() the largest integer that does not exceed its value
You can add an optional argument to the functions ceil and floor, and use it to specify the number of decimals to be rounded.
The syntax of these functions with rounding parameters is:
ceil(parameter_name or number, number_of_dec_places)
floor (parameter_name or number, number_of_dec_places)
Where number_of_dec_places is an optional value:
? Can be expressed as a number or a user-defined parameter. If the parameter value is a real number, it will be truncated by the CNC WeChat public account cncdar to become an integer.
? Its maximum value is 8. If it exceeds 8, the number to be rounded (the first argument) is not rounded, and its initial value is used.
? If you don't specify it, the function is the same as the previous version.
 
Use the ceil and floor functions that do not specify the number of decimal places. Examples are as follows:
 
ceil (10.2) is 11
floor (10.2) is 11
 
Use the ceil and floor functions that specify the number of decimal places. Examples are as follows:
 
ceil (10.255, 2) is equal to 10.26
ceil (10.255, 0) is equal to 11 [same as ceil (10.255)]
floor (10.255, 1) is equal to 10.2
floor (10.255, 2) is equal to 10.26
 
Curve table calculation
 
Curve table calculation allows users to use curve table features to drive dimensions through relationships. The size can be a sketcher, part or assembly size. The format is as follows:
 
evalgraph("graph_name", x)
 
, Where graph_name is the name of the graph table, x is the value along the x-axis of the graph table, and returns the y value.
 
For mixed features, you can specify the trajectory parameter trajpar as the second argument of the function.
 
Note: The curve table feature is usually used to calculate the y value corresponding to the x value within the defined range on the x-axis. When out of range, the y value is calculated by extrapolation. For x values ​​smaller than the initial value, the system calculates the extrapolated value by extending the tangent line from the initial point. Similarly, for x values ​​greater than the end point value, the system calculates the extrapolated value by extending the tangent line outward from the end point.
 
Compound curve orbit function
 
The orbit parameter trajpar_of_pnt of the compound curve can be used in the relationship.
 
The following functions return a value between 0.0 and 1.0:
 
trajpar_of_pnt("trajname", "pointname")
 
Where trajname is the compound curve name, and pointname is the reference point name.
 
The trajectory is a parameter along the compound curve, on which the plane perpendicular to the tangent of the curve passes through the reference point. Therefore, the reference point does not have to be on the curve; the parameter value is calculated at the point closest to the reference point on the curve.
 
If the composite curve is used as the skeleton of the multitrack scan, trajpar_of_pnt is consistent with trajpar or 1.0-trajpar (depending on the starting point selected for the hybrid feature).
 
About relationship
 
Relationship (also called parameter relationship) CNC WeChat public account cncdar is an equation between user-defined symbol size and parameters. The relationship captures the design relationship between features, between parameters, or between components, thus allowing users to control the effect of model modification.
 
Relationships are a way to capture design knowledge and intentions. Like parameters, they are used to drive the model-changing the relationship also changes the model.
 
Relations can be used to control the influence of model modifications, define the size values ​​in parts and assemblies, and act as constraints for design conditions (for example, specify the position of holes related to the edges of parts).
 
They are used in the design process to describe the relationship between different parts of a model or component. Relations can be simple values ​​(for example, d1=4) or complex conditional branch statements.
Relationship type
There are two types of relationships:
 
?Equality-Make one parameter on the left side of the equation equal to the expression on the right side. This relationship is used to assign values ​​to dimensions and parameters. E.g:
 
Simple assignment: d1 = 4.75
 
Complex assignment: d5 = d2*(SQRT(d7/3.0+d4))
 
? Comparison-Compare the expression on the left with the expression on the right. This relationship is usually used as a constraint or in conditional statements for logical branches. E.g:
 
As a constraint: (d1 + d2)> (d3 + 2.5)
 
In the conditional statement; IF (d1 + 2.5) >= d7
 
Increase relationship
 
You can increase the relationship to:
 
? Feature section (in sketch mode, if the section was originally created by selecting "Sketcher"> "Relations"> "Add").
 
? Features (in part or assembly mode).
 
? Part (in part or assembly mode).
? Component (in component mode).
When the relationship menu is selected for the first time, the preset is to view or change the relationship in the current model (for example, a part in part mode). www.sk1z.com
To gain access to the relationship, select "Relationship" from the "Parts" or "Component" menu, and then select one of the following commands from the "Model Relations" menu:
? Component relationship-use the relationship in the component. If the component contains one or more sub-components, the "Component Relations" menu appears with the following commands:
 
─Current-It is the top-level component by default.
─Name-Type the component name.
?Skeleton relationship-use the relationship of the skeleton model in the component (only applicable to the component).
?Part relationship-use the relationship in the part.
? Feature Relations-Use the characteristics specific to the relationship. If the feature has a cross-section, then the user can choose: get access to the relationship in the cross-section (Sketcher) in the CNC WeChat public account cncdar surface (Sketcher), or get the relationship in the feature as a whole Access.
Array Relations-Use relations specific to arrays.
Notes:
─If you try to assign a relationship outside the cross-section to a parameter that has been driven by the cross-section relationship, the system will give an error message when regenerating the model. The same is true when trying to assign a relationship to a parameter that is already driven by a relationship outside of the section. Delete one of the relationships and regenerate.
─If an assembly attempts to assign a value to a dimension variable that has been driven by the relationship of the part or subassembly, two error messages appear. Delete one of the relationships and regenerate.
 
─Modifying the identity elements of the model can invalidate the relations because they are not scaled with the model. For more information about modifying units, please refer to the "About Metric and Non-Metric Units of Measurement" help topic.
 
Use parameter symbols in relationships
 
Four types of parameter symbols are used in relationships:
 
?Dimension symbol-supports the following dimension symbol types:
 
─d#-Dimensions in part or assembly mode.
 
─d#:#-The size in component mode. The component or the process ID of the component is added as a suffix.
 
─rd#-The reference size in the part or top-level assembly.
 
─rd#:#-The reference size in the component mode (the component or the process ID of the component is added as a suffix).
 
─rsd#-The reference size of the (section) in the sketcher.
 
─kd#-The known size in the sketch (section) (in the parent part or assembly).
 
? Tolerance-These are the parameters associated with the tolerance format. When the size changes from numbers to symbols, these symbols are listed.
 
─tpm#-Tolerance in addition and subtraction symmetric format; # is the number of dimensions.
 
─tp#-Positive tolerance in addition and subtraction format; # is the number of dimensions.
 
─tm#-The negative tolerance in the plus and minus format; # is the number of dimensions.
 
Instance number-these are integer parameters, which are the number of instances in the array direction.
 
─p#-where # is the number of instances.
 
Note: If you change the number of instances to a non-integer value, Pro/ENGINEER will cut off the decimal part. For example, 2.90 will become 2.
 
User parameters-these can be parameters defined by adding parameters or relationships.
E.g:
 
Volume = d0*d1*d2
Vendor = "Stockton Corp."
Notes:
─User parameter names must start with a letter (if they are to be used in relations).
─Cannot use d#, kd#, rd#, tm#, tp#, or tpm# as user parameter names because they are reserved for use by the size.
─User parameter names cannot contain non-alphanumeric characters, such as !, @, #, $.
 
 
 
How to calculate the number of veneers for wood peeling
Rotary kinematics
In the peeling process, the trajectory of the cutting edge of the rotary knife on the cross section of the wood section is called the peeling curve. The following two issues will be discussed here: the basis for designing the kinematics of the rotary cutting machine and the trajectory of the actual rotary cutting.
The basis for designing the kinematics of the rotary cutting machine
The purpose of the peeling wood section is to obtain a high-quality continuous veneer strip of uniform thickness, like a roll of paper. Currently
There are two trajectories that meet the requirements: Archimedes spiral and circular involute.
The basic formula of Archimedes spiral is:
x=ɑsinφ cosφ
y=ɑφsinφ
The nominal thickness of the veneer unscrewed from the wooden section is the pitch of the spiral sections of the curve in the J axis direction
(φ2=2π+φ1).
To make △χ= constant, cosφ must be equal to 1, and φ=90°. When Aφ=90°, y=aφsin90°=0
, That is, the height of the blade is zero, and the blade should be on the x-axis (that is, in the horizontal plane passing through the axis of rotation of the wood section-the centerline of the chuck shaft). It can also be said that no matter what the thickness of the veneer is required, the blade height is always zero (h=0)
The formula for the involute of a circle is:
x=acosφ1+aφ1sinφ1
y = asinφ1-aφ1cosφ1
In the formula: φ1-------The angle between the vertical line and the x-axis between the occurrence line and the coordinate center point.
The rotary knife moves linearly along the direction parallel to the x-axis, so the pitch of each involute in the x-axis direction is the nominal thickness of the veneer.
S=△χ[acos(2π+φ1)+a(2π+φ1)sin(2π+φ1)]-[acosφ1+acosφ1+ aφ1sinφ1]
=[acosφ1+ a(2π+φ1)sinφ1] -[acosφ1+2φ1sinφ1]
=21πasinφl
If S is required to be a constant value (S=2πα), φl must be 2πn+270°, so y=a sin270°—
acos270°=-a=h. In order to ensure the quality of veneer, it is hoped that the rotary knife is relative to the wood during the peeling process.
The clearance angle (cutting angle) of the segment, or the angle (θ) between the back of the rotary knife and the vertical surface, should follow the cutting diameter of the wood segment
Decrease and automatically become smaller, and the value of h=-a=-s/2π changes according to the change of s value, so the rotary knife
The slewing center should also be changed accordingly, so the structure of the rotary cutting machine is too complicated. For this reason, it is not appropriate to use the circular involute as the design of the relationship between the rotary cutter and the wood segment of the rotary cutter.
In contrast, Archimedes spiral is ideal, regardless of the change in the nominal thickness of the veneer, the value of A
It is always zero, and the rotary centerline of the rotary knife does not need to be changed. Therefore, it is currently used as the design of rotary cutter and wood
The theoretical basis of the movement relationship between segments.
Movement trajectory during actual peeling
In production, the installation height (h) of the rotary knife blade is not necessarily at the same level as the line connecting the center line of the chuck shaft
surface. This is due to the different tree species, peeling conditions, thickness of the peeling veneer, the structure and accuracy of the peeling machine
And so on. In order to obtain high-quality veneer, h≠0 when installing the knife, which can be positive or negative, and even the middle of the rotary knife
Slightly higher than the ends of the rotary knife. When the rotary knife blade installation position is different (h value is different), the rotary cutting curve will be:
h>0 At this time, the peeling curve is similar to the Archimedes spiral;
h=0 is the Archimedes spiral;
0>h>-a is an elongated involute
h=-a is the involute;
h<-a is the shortened involute.
 
 
Mathematical formula
UFO
Spherical coordinates
rho=20*t^2
theta=60*log(30)*t
phi=7200*t
 
"rho=200*t"
"theta=900*t"
"phi=t*90*10"
 
basket
Cylindrical coordinates
r=5+0.3*sin(t*180)+t
theta=t*360*30
z=t*5
 
Sine curve
Cartesian coordinate system
x=50*t
y=10*sin(t*360)
z=0
 
Helical curve
Cylindrical coordinates
r=t
theta=10+t*(20*360)
z=t*3
 
Butterfly curve
Spherical coordinates
rho = 8 * t
theta = 360 * t * 4
phi = -360 * t * 8
 
Rhodonea curve
Use Cartesian coordinate system
theta=t*360*4
x=25+(10-6)*cos(theta)+10*cos((10/6-1)*theta)
y=25+(10-6)*sin(theta)-6*sin((10/6-1)*theta)
 
Spiral in circle
Column coordinate system
theta=t*360
r=10+10*sin(6*theta)
z=2*sin(6*theta)
(QQ group 736589871)
 
Involute equation
r=1
ang=360*t \90*t
s=2*pi*r*t \pi*r.t/2
x0=s*cos(ang)
y0=s*sin(ang)
x=x0+s*sin(ang)
y=y0-s*cos(ang)
z=0
 
Logarithmic curve
z=0
x = 10*t
y = log(10*t+0.0001)
 
Spherical spiral
Spherical coordinate system
rho=4
theta=t*180
phi=t*360*20
 
Double arc cycloid
Cardir coordinates
l=2.5
b=2.5
x=3*b*cos(t*360)+l*cos(3*t*360)
Y=3*b*sin(t*360)+l*sin(3*t*360)
 
Star line
Cardir coordinates
a=5
x=a*(cos(t*360))^3
y=a*(sin(t*360))^3
 
Heart line
Cylindrical coordinates
a=10
r=a*(1+cos(theta))
theta=t*360
 
Leaf shape
Cartesian coordinates
a=10
x=3*a*t/(1+(t^3))
y=3*a*(t^2)/(1+(t^3))
 
Spiral in Cartesian coordinates
x = 4 * cos (t *(5*360))
y = 4 * sin (t *(5*360))
z = 10*t
 
parabola
Cartesian coordinates
x = (4 * t)
y = (3 * t) + (5 * t ^2)
z =0
 
Disc spring
Cylindrical coordinates
r = 5
theta = t*3600
z =(sin(3.5*theta-90))+24*t
 
 
30 degree taper hole machining
G90G54G00X0Y0M03S2500:
G43Z50.H01M08:
Z2.
#1=0.05
WHILE[#1LE5.]DO1
#2=TAN[15.]*#1
#3=5.-#2
G01Z-#1F50
X-#3F500
G02I#3
G01X0
#1=#1+0.05
END1
G0Z50.M05
G91G28Z0Y0M09
 
 
Detailed explanation of class A macro program
User macro function is a special function to improve the performance of CNC machine tools. In use, usually a series of instructions that can complete a certain function are stored in the memory like a subroutine, and then a general instruction is used to represent them, and the function can be executed by only giving the general instruction when in use.
   The main body of the user macro function is a series of instructions, which is equivalent to the subprogram body. It can be provided by the machine tool manufacturer or programmed by the machine user.
   Macro command is a general command representing a series of commands, which is equivalent to a subroutine call command.
   The biggest feature of the user macro function is that it can perform operations on variables, making program applications more flexible and convenient.
   There are two types of user macro functions: A and B. Here we mainly introduce type A macro functions. For type B macro functions, please refer to the introduction of type B macro programs in this course.
1. Variable
  In the regular main program and subprogram, a specific value is always assigned to an address. In order to make the program more versatile and flexible, a variable is set in the macro program, that is, the variable is assigned to an address.
(1) Representation of variables
Variables can be represented by the "#" number and the variable serial number following it: #i(i=1, 2, 3...)
Example: #5, #109, #501.
(2) Reference of variables
   replaces the value following an address with a variable, that is, a variable is introduced.
Example: For F#103, if #103=50, it is F50;
For Z-#110, if #110=100, then Z is -100;
For G#130, if #130=3, it is G03.
(3) Type of variable
   0MC system variables are divided into two types: public variables and system variables.
1) Public variables
   Common variables are common variables in the main program and the user macro programs called by the main program. In other words, the #i of the CNC WeChat public number cncdar in one macro instruction is the same as the #i in another macro instruction.
The serial numbers of public variables are: #100~#131; #500~#531. Among them, #100~#131 public variables are cleared after the power is cut off, and set to “0” when restarting; #500~#531 public variables remain unchanged even after the power is cut off, so they are also called It is a maintained variable.
 
 
2) System variables
  System variable is defined as: a variable with a fixed purpose, its value determines the state of the system. System variables include tool offset variables, interface input/output signal variables, position information variables, etc.
   The serial number of the system variable has a strict correspondence with a certain state of the system. For example, the tool offset variable serial number is #01~#99, these values ​​can be changed by the method of variable substitution, in the serial number 1~99, the variable that is not used as tool offset can be used as the holding type public variable #500~# 531.
   Interface input signal #1000~#1015, #1032. By reading these system variables, you can know the status of each input port, CNC WeChat public account cncdar. When the variable value is "1", it means the contact is closed; when the variable value is "0", it means the contact is open. The values ​​of these variables cannot be replaced. Read variable #1032, and read all input signals at once.
2. Macro instruction G65
   The macro command G65 can realize a wealth of macro functions, including processing functions such as arithmetic operations and logic operations.
  General form: G65 Hm P#i Q#j R#k
Where:
 
 
m--Macro program function, the value range is 01~99;
#i--The name of the variable where the operation result is stored;
#j--The first variable to be manipulated, which can also be a constant;
#k--The second variable to be manipulated can also be a constant.
For example, when the program function is addition operation:
Program P#100 Q#101 R#102...... The meaning is #100=#101+#102
Program P#100 Q-#101 R#102...... The meaning is #100=-#101+#102
Program  P#100 Q#101 R15...... The meaning is #100=#101+15

—[Close]— —[ Back]— —[ Print]—