Apr 11, 2024 Leave a message

A complete collection of specific calculation formulas for macro programs

 

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

Creation environment: PRO/E; cylindrical coordinates (cylindrical)

r=t

theta=10+t*(20*360)

z=t*3

 

02
butterfly curve


Spherical coordinates PRO/E

Equation: rho = 8 * t

theta = 360 * t * 4

phi = -360*t*8

 

03
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)

*********************************

 

04
spiral inside circle


Use cylindrical coordinate system

theta=t*360

r=10+10*sin(6*theta)

z=2*sin(6*theta)

 

05
Equation of involute


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

06
logarithmic curve


z=0

x = 10*t

y = log(10*t+0.0001)

07
Spherical spiral (using spherical coordinate system)


rho=4

theta=t*180

phi=t*360*20

 

Name: Double arc epicycloid

Qadir 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

Qadir coordinates

equation:

a=5

x=a*(cos(t*360))^3

y=a*(sin(t*360))^3

Name:Heart line

Establish environment: pro/e, cylindrical coordinates

a=10

r=a*(1+cos(theta))

theta=t*360

Name:leaf 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

 

08
parabola


Cartesian coordinates

x =(4*t)

y =(3 * t) + (5 * t ^2)

z=0

 

Name: Disc spring

Create environment: pro/e

Cylindrical sitting

r=5

theta = t*3600

z =(sin(3.5*theta-90))+24*t

 

Equation: Archimedean spiral

x = (a +f sin (t))cos(t)/a

y = (a -2f +f sin (t))sin(t)/b

 

Related explanatory materials for pro/e relationships and functions

Functions used in relationships

mathematical functions

The following operators can be used in relationships, including equations and conditional statements.

The following mathematical functions can also be included in relationships:

cos () cosine

tan () tangent

sin () sine

sqrt () square root

asin () arcsine

acos () inverse cosine

atan () arctangent

sinh () hyperbolic sine

cosh () hyperbolic cosine

tanh () tangent of hyperbola

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 that is not less than its value

floor() The largest integer that does not exceed its value

You can add an optional argument to the ceil and floor functions to specify the number of decimals to be rounded.

The syntax for these functions with rounded arguments 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:

1) 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 official account cncdar to become an integer.

2) 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.

3) If you do not specify it, the function is the same as the previous version.

 

Use the ceil and floor functions without specifying the number of decimal places. Examples are as follows:

ceil (10.2) has a value of 11

floor (10.2) has a value of 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

 

09
Curve table calculation

Curve table calculations enable users to use curve table features to drive dimensions through relationships. Dimensions can be sketcher, part, or assembly dimensions. The format is as follows: evalgraph("graph_name", x), where graph_name is the name of the curve table, x is the value along the x-axis of the curve table, and the y value is returned.

For mixed features, the trajectory parameter trajpar can be specified as the second argument of this 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 outside the 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. Likewise, for x-values greater than the end point value, the system calculates the extrapolation value by extending the tangent line away from the end point. Add WeChat: steven52014 will send you a macro program tutorial

 

compound curve orbit function

 

The orbit parameter trajpar_of_pnt of the compound curve can be used in the relationship.

The following function returns a value between 0.0 and 1.0: trajpar_of_pnt("trajname", "pointname"). Among them, trajname is the compound curve name, and pointname is the datum point name.

A trajectory is a parameter along a compound curve on which a plane perpendicular to the tangent to the curve passes through a datum point. Therefore, the datum point does not have to be on the curve; the parameter value is calculated at the point on the curve closest to the datum point.

If a composite curve is used as the skeleton for a multi-track scan, trajpar_of_pnt is consistent with trajpar or 1.0 - trajpar (depending on the starting point chosen for the blended feature).

 

10
About relationships

The relationship (also known as parameter relationship) CNC WeChat official account cncdar is the equation between user-defined symbol size and parameters. Relationships capture design relationships between features, parameters, or components, thus allowing the user to control the effects of modifications to the model.

Relationships are a way of capturing design knowledge and intent. Like parameters, they are used to drive the model - changing the relationship changes the model.

Relationships can be used to control the effects of model modifications, define dimensional values in parts and assemblies, and act as constraints for design conditions (for example, specifying the location of holes relative to the edges of a part).

They are used in the design process to describe the relationships 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:

1) Equality - Make an argument 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. For example:

Simple assignment: d1 = 4.75

Complex assignment: d5 = d2*(SQRT(d7/3.0+d4))

2) Compare - Compare the expression on the left with the expression on the right. This relationship is often used as a constraint or in conditional statements for logical branches. For example:

As a constraint: (d1 + d2) > (d3 + 2.5)

In a conditional statement; IF (d1 + 2.5) >= d7

 

increase relationships

The relationship can be increased to:

1) The section of the feature (in sketch mode, if the section was originally created by selecting Sketcher > Relations > Add);

2) Features (in part or assembly mode);

3) Parts (in part or assembly mode).

4) Components (in component mode).

When you first select the Relations menu, the default is to view or change relations in the current model (for example, a part in Part mode).

To gain access to relationships, choose Relationships from the Parts or Components menu, and then choose one of the following commands from the Model Relationships menu: Component Relationships - Use relationships in components.

If a component contains one or more subcomponents, the Component Relationships menu appears with the following commands:

─Current - Default is the top-level component.

─Name - Type a name for the component.

1) Skeleton relationship - Use the relationship of the skeleton model in the component (only applicable to components).

2) Part relations - Use relations in parts.

3) Feature relationships - Use feature-specific relationships. If the feature has a section, the user can choose to: gain access to the relationships in the section (sketcher) of the cut surface (sketcher), or to gain access to the relationships in the feature as a whole Access.

Array relations - Use relations specific to arrays.

Note:

1) If you try to assign a relationship outside the cross-section to a parameter that is already driven by a cross-section relationship, the system will give an error message when regenerating the model. The same goes for when trying to assign a relationship to a parameter that is already driven by a relationship outside the section. Delete one of the relationships and regenerate it.

2) If the component attempts to assign a value to a dimension variable that is already driven by a part or subassembly relationship, two error messages appear. Delete one of the relationships and regenerate it.

3) Modifying the identity elements of the model invalidates the relationships because they do not scale with the model. For more information about modifying units, see the "About metric and non-metric units of measurement" help topic.

 

Using parameter symbols in relationships

Four types of parameter symbols are used in relationships:

1) Dimension symbols - The following dimension symbol types are supported:

─d# - Dimension in part or assembly mode.

─d#:# - Dimensions in component mode. The component or component's process ID is added as a suffix.

─rd# - A reference dimension in a part or top-level assembly.

─rd#:# - Reference dimension in component mode (component or component's process ID added as suffix).

─rsd# - Reference dimension (section) in the sketcher.

─kd# - A known dimension (in the parent part or assembly) in the sketch (section).

2) Tolerances - These are the parameters associated with the tolerance format. These symbols appear when dimensions change from numerical to symbolic.

─tpm# - Tolerance in plus or minus symmetry format; # is the number of dimensions.

─tp# - Positive tolerance in plus-minus format; # is the dimension number.

─tm# - Negative tolerance in plus-minus format; # is the number of dimensions.

3) Number of instances - These are integer parameters, which are the number of instances in the direction of the array.

─p# - where # is the number of instances.

Note: If you change the number of instances to a non-integer value, Pro/ENGINEER will truncate the decimal part. For example, 2.90 will become 2.

4) User Parameters - These can be parameters defined by adding parameters or relationships.

For example:

Volume = d0*d1*d2

Vendor = "Stockton Corp."

Note:

─User parameter names must start with a letter (if they are to be used in relationships).

─You cannot use d#, kd#, rd#, tm#, tp#, or tpm# as user parameter names because they are reserved for use by dimensions.

─User parameter names cannot contain non-alphanumeric characters, such as !, @, #, $.

 

11
How to calculate the number of veneers for rotary cutting of logs


Rotary cutting kinematics

During the process of rotary cutting, the path that the cutting edge of the rotary knife travels on the cross-section of the wood section is called the rotary cutting curve. The following two issues will be discussed here: the basis for designing the kinematics of the rotary cutting machine and the movement trajectory during actual rotary cutting.

1) Basis for designing the kinematics of the rotary cutting machine

The purpose of rotary cutting wood sections is to obtain a high-quality, continuous strip of veneer of uniform thickness, like a roll of paper unrolled. There are currently two motion trajectories that meet the requirements: Archimedean spiral and the involute of a circle.

The basic formula of Archimedes spiral is:

x=ɑsinφ cosφ

y=ɑφsinφ

The nominal thickness of the single plate unscrewed from the wooden section is the pitch of each section of the spiral of the curve in the J-axis direction (φ2=2π+φ1). For Δχ=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, on the horizontal plane passing through the rotation axis of the wood section-the center line of the card axis) 

Inside). It can also be said that no matter how thick the veneer is required to be rotary cut, 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 between the occurrence line and the coordinate center point and the x-axis.

The rotary knife moves linearly along the direction parallel to the x-axis, so the pitch of each section of the involute in the x-axis direction is the nominal thickness of the single plate. 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 the veneer, during the rotary cutting process, it is expected that the back angle (cutting angle) of the rotary knife relative to the wood section, or the angle (θ) between the back of the rotary knife and the vertical plane, should be adjusted according to the rotary cutting diameter of the wood section. It will automatically become smaller as it decreases, and the value of h=-a=-s/2π changes according to the change of s value. Therefore, the rotation center of the rotary knife should also change accordingly at this time. In this way, the structure of the rotary cutting machine is too complicated. For this reason, it is inappropriate to use the involute of a circle as the design of the motion relationship between the rotary cutter and the wood section of the rotary cutting machine.

In contrast, the Archimedean rotation is ideal. Regardless of the change in the nominal thickness of the veneer, the A value is always zero, and the rotation centerline of the rotary knife does not need to change. Therefore, it is currently used as the theoretical basis for designing the motion relationship between the rotary cutter and the wood section of the rotary cutting machine. Actual motion trajectory during rotary cutting In production, the installation height (h) of the rotary knife blade is not necessarily on the same horizontal plane as the line connecting the center line of the card shaft. This is due to different tree species, peeling conditions, peeling veneer thickness, peeling machine structure and accuracy. In order to obtain high-quality veneer, h≠0 when installing the knife, which can be a positive or negative value, and even the middle part of the rotary knife can be slightly higher than the two ends of the rotary knife.

When the rotary knife blade is installed in different positions (different h values), the rotary cutting curve will be:

When h>0, the rotational shear curve is approximate to the Archimedean spiral;

h=0 is Archimedean spiral;

0>h>-a is an extended involute

h=-a is an involute;

h<-a is a 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

 

sinusoidal 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 inside circle

Use cylindrical coordinate system

theta=t*360

r=10+10*sin(6*theta)

z=2*sin(6*theta)

 

Equation of involute

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

Use spherical coordinate system

rho=4

theta=t*180

phi=t*360*20

 

double arc epicycloid

Qadir 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

Qadir 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 line

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 processing

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

Send Inquiry

whatsapp

skype

E-mail

Inquiry