Application and Implementation of Parametric Programming in UG

The program can program part programs with common features in the program, and you need to use Q parameter variables instead of fixed values. The Q parameter variable can represent the following information: coordinate value, feed rate, spindle speed, cycle data, and can also be programmed with contours defined by mathematical functions, or Q parameters can be used to perform machining steps according to logical conditions.

1. Application of parameterized programming in UG drilling cycle

The following program is an example of a parametric programming applied to the drilling cycle, where Q200 represents the starting plane coordinate at which the drilling begins, Q201 represents the drilling depth, Q206 represents the drilling feedrate, Q202 represents the drilling depth, Q210 top The residence time, Q203 represents the plane coordinate value of the hole, Q204 represents the return height, and Q211 represents the bottom bottom residence time.

0017 L X-153. Y-11. R0 FMAX M03

0019 CYCL DEF 200 DRILLING Q200=2. Q201=-1.5 Q206=120. Q202=1.5 Q210=0.0 Q203=2.5 Q204=20. Q211=0.0

0021 L X-153. Y-11. R0 F MAX M99

0023 L X-128. R0 F MAX M99

Drilling cycle is one of the most common parametric programming in daily processing. The Q parameter here is mainly used for loop. Its implementation in UG requires Q200 format customization for Blocks in UG PostBuilder, which is suitable for Q200 drilling. Loop through the TCL program and make calls in post-processing user-defined loops. The TCL program code is as follows:

# peck sizes

Set cycle_peck_size [expr ($mom_cycle_feed_to*(-1.0))] ;# single peck size most cycles

If { $mom_motion_event == "drill_deep_move" || $mom_motion_event == "drill_break_chip_move"} {

If {($mom_cycle_step1 == 0)} {

Set cycle_peck_size $mom_tool_diameter ;# default peck if not set

} else {

Set cycle_peck_size $mom_cycle_step1;# real peck

}

}

If { $mom_pos(2) != $mom_prev_pos(2) } {

Set cycle_init_flag "TRUE"

}

(some)

2. Application of parameterized programming in UG multi-axis positioning processing

Most of the "multi-axis machining" can be considered as a plane fixed axis machining, that is, the spindle is different from the Z direction of the standard tool, and the rotation axis must not have a rotary motion during machining. This type of machining is most important. Specify the tool axis direction and set the machining coordinate system.

The parts shown in Figure 1 need to be rotated to rotate the shaft for machining. The position of the rotating shaft must be defined. Usually, such parts are processed by the “hard range method” (see Figure 1a), that is, the WCS/MCS is placed on the center of the rotating shaft. For 5-axis machines, the machining coordinate system is placed on the center of the 5-axis, and Figure 1b uses the "soft-range method", which requires the use of parameters Q120 ~ Q122, that is, the use of mathematical angle tilt processing surface function The rotation axis coordinates are calculated by the TNC and assigned to Q120 to Q122, thereby realizing the positioning of the optional shaft.

For more information, please download the attachment or view Metalworking (Cold Processing), Issue 19, 2013:

Piston KDAS seal comprises of five  parts, two back ups, two press rings and one elastomer.Piston KDAS seal  is suitable for the pressure piston on both sides of the seal.  Piston KDAS seal  will not be squeezed into the radial seal gap, which can prevent the sealing elements from being distorted

Double Acting KDAS Seals

Double Acting KDAS Seals,Piston Seal KDAS,Hydraulic Piston Seal KDAS,KDAS Pneumatic Seals

Shenyang ZhongYe Seals Factory ,