Siemens user cycle development skills

Because the Siemens system is more powerful in terms of user handwriting function expansion, our factory has always been a combination of its own development cycle and Siemens cycle. Because the Siemens standard cycle has to consider many problems, especially the safety problem, which restricts the function of the program. Now we will focus on a user cycle that was first developed by our factory. This cycle was originally developed to automatically change the feed and speed when the tool is at a certain distance from the final depth during the boring. Program source code (parameters are the same as the standard loop sequence. The parameters are the return plane, the reference plane safety distance, the final depth coordinate, the hole depth, the distance that the final coordinate needs to be transformed, the transformed feed and the converted speed) are as follows:
%_N_TMK_SPF
;$PATH=/_N_CUS_DIR
PROC TMK (REAL RTP, REAL RFP, REAL SDIS, REAL DP, REAL DPR, REAL RJS, REAL JSF, REAL JSS) SAVE SBLOF DISPLOF
;VERSION: 11.5.31 MAY 31, 2011
;CHANGE : 11.5.31 MAY 31, 2011
;DEVELOPER: KECHENGCUI
DEF REAL RBLS, RF, RJSF, RJSS
DEF AXIS A_3
DEF INT IPB5
DEFINE LX AS G01 G60 G90
DEFINE LY AS G00 G64 G90
A_3=$P_AXN3
RBLS=$P_S[1]
IF ($P_SUBPAR[2]==FALSE)
RFP=$AA_IW[$P_AXN3] SDIS=0
ENDIF
IF ($P_SUBPAR[4]<>TRUE)AND($P_SUBPAR[5]==TRUE)
DP=RFP+DPR
ENDIF
IPB5=(RFP-DP)/ABS(RFP-DP)
LY AX[$P_AXN3]=SDIS*IPB5+ RFP
RF=$P_F
IF $P_SUBPAR[6]==TRUE
LX AX[A_3]=DP+RJS*IPB5;
IF JSF<0;
IF ABS (JSF) <1
RJSF=ABS(JSF)*RF
ELSE
RJSF=RF/ABS(JSF)
ENDIF
ELSE
RJSF=JSF
ENDIF
IF ($P_SUBPAR[8]==TRUE)AND(JSS<0)
IF ABS(JSS)<1
RJSS=ABS(JSS)*RBLS
ELSE
RJSS=RBLS/ABS(JSS)
ENDIF
ELSE
RJSS=JSS
ENDIF
IF $P_SUBPAR[8]==TRUE
LX AX[A_3]=DP FB=RJSF S=RJSS
ELSE
LX AX[A_3]=DP FB=RJSF
ENDIF
ELSE
LX AX[A_3]=DP
ENDIF
G04 S2
IF RBLS<>$P_S[1]
S=RBLS F=RF
ENDIF
IF ($P_SUBPAR[1]==TRUE)AND($P_SUBPAR[2]==TRUE)
LY AX[A_3]=RTP
ENDIF
M17
The above program has only one deceleration function. The following is an example of use:
G54 G90 G00 X0 Y0 Z100 D1
S300 F60 M3
TMK (100,0,5,-50,,5,20,350)
M5
G00 SUPA Z0 D0
M30
The program is positioned first and then the spindle rotates forward. The tool is positioned at the safe distance of the reference plane. Then, the feed is processed to the deceleration distance of the hole bottom coordinate with the feed and rotation speed set outside the cycle. The feed becomes the cyclically set feed. The speed is set to the speed set by the cycle. The feed and the speed can be left unfilled or only one item is added. If it is not filled, it is similar to a cycle81; then the tool returns to the return plane, the return plane can be left unfilled, or it can be any Value, if it is not returned to the safe direction, it is recommended not to fill, because if the tool is not filled, the tool stops at the bottom of the hole. This design is used in conjunction with other cycles.
In the workshop of our factory, we often process some baffle holes, that is, there are more than two holes in one coordinate, because the standard cycle of Siemens does not allow the return plane, but in the other direction of the reference plane, or stay at the bottom of the hole after processing Do not return, so you can only use the code "G0" and "G1" to write a few lines or even a dozen lines during programming. Calculation and modification are troublesome, and post-maintenance is also more troublesome. This cycle design solves this problem perfectly. Below is the processing procedure for the three-layer hole:
G54 G90 G00 X0 Y0 Z100 D1
S300 F60 M3
TMK(,0,5,-50)
TMK(,-100,5,,-50)
TMK (100, -200, 5,, -50)
M5
G00 SUPA Z0 D0
M30
After the program finishes the first hole, since the reference plane is not filled, there is no subsequent action when the program is processed to the bottom of the hole. The loop ends; the next loop is executed, the next loop is executed normally, and no data is returned after the end, so it does not return. Goes to the next loop; after the last loop to the bottom of the hole, there is return plane data, so the return plane is executed. Concise and easy to maintain.
In addition, the program can also be written as follows:
G54 G90 G00 X0 Y0 Z100 D1
S300 F60 M3
TMK (-95, 0, 5, -50)
TMK (-195,,,,-50)
TMK (100,,,-50)
M5
G00 SUPA Z0 D0
M30
After the end of the first cycle, return to the hole end of the second hole. Since the reference plane of the second hole is not filled, the current point is used as the reference plane for processing. This program has obvious advantages in the user cycle for milling chamfering. When machining multiple full circles on the same axis, only one parameter can be filled.
references:
[1] Chen Can, Liu Xin. Development and Implementation of Data Acquisition for Siemens 840D CNC System[J]. Mechanical Engineer, 2009(5): 122-124.
[2] Liao Zhengju, Lei Yanhua, Zheng Yuanming. Hardware Configuration Design Based on Siemens 840D Numerical Control System[J]. Mechanical Engineer, 2009(5): 122-124.

Valerain oil can benefit for relieving smooth muscle and dilating coronary arteries to improve blood flow to the heart. Thus, valerian has been widely used in pharmaceuticals, health care products and animal drugs.

Valerian Essential Oil

Valerian Essential Oil,Natural Valerian Essential Oil,Pure Valerian Essential Oil,Healthy Valerian Essential Oil

Xinhui Gangzhou Flavors&Fragrance Co.,Ltd , https://www.xhgzff.com