回复:840D NC 高级编程简单介绍

ira

  • 帖子

    63
  • 精华

    0
  • 被关注

    2

论坛等级:游民

注册时间:2006-07-29

普通 普通 如何晋级?

发布于 2006-08-23 11:58:02

0楼

请教楼主:以下NC程序如何阅读?属于何种语言?感谢!!!
程序如下:
PROC DIACALC1
;---------------------------------------------------------------
;Copyright (C) Techint 1998 All Rights Reserved. Confidential
;---------------------------------------------------------------
;$Revision:840d.1.0
;$Author:P.CASSANI
;$Date:14/01/99
;RollDiameterAtStageBeginning is Diameter of Phase resetted when phase is changed

Case MD_CaliperDiamReadPosition OF 0 GOTOF Central 2 GOTOF Headstock 1 GOTOF Footstock DEFAULT GOTOF ErrorData
ErrorData:
LOOP
MSG("$8000041") ; Wrong value in MD_DiameterPosition Parameter
STOPRE
M00
ENDLOOP

;Stock Removal calculated in central Position
Central:
IF ((RollDiameterAtStageBeginning==0) and (RollDiameterCenter>0))
RollDiameterAtStageBeginning=RollDiameterCenter
ENDIF
IF ( RollDiameterCenter > 0 )
IF ( ActRollStartDiam>0 )
ActCycleStockRemoval=ActRollStartDiam-RollDiameterCenter
ELSE
ActRollStartDiam=RollDiameterAtStageBeginning
ENDIF
ENDIF
;Calcola l'asportazione per fase
ActGrindStageStockRemoval=RollDiameterAtStageBeginning-RollDiameterCenter
GOTOF ENDROUTINE

;Stock Removal calculated on Headstock Position
Headstock:
IF ((RollDiameterAtStageBeginning==0) and (RollDiameterHead>0))
RollDiameterAtStageBeginning=RollDiameterHead
ENDIF
IF ( RollDiameterHead > 0 )
IF ActRollStartDiam>0
ActCycleStockRemoval=ActRollStartDiam-RollDiameterHead
ELSE
ActRollStartDiam=RollDiameterAtStageBeginning
ENDIF
ENDIF
ActGrindStageStockRemoval=RollDiameterAtStageBeginning-RollDiameterHead
GOTOF ENDROUTINE

;Stock Removal calculated on Footstock Position
Footstock:
IF ((RollDiameterAtStageBeginning==0) and ( RollDiameterFoot>0 ))
RollDiameterAtStageBeginning=RollDiameterFoot
ENDIF
IF ( RollDiameterFoot > 0 )
IF ActRollStartDiam>0
ActCycleStockRemoval=ActRollStartDiam-RollDiameterFoot
ELSE
ActRollStartDiam=RollDiameterAtStageBeginning
ENDIF
ENDIF
ActGrindStageStockRemoval=RollDiameterAtStageBeginning-RollDiameterFoot
ENDROUTINE:
M17
评论
编辑推荐: 关闭

请填写推广理由:

本版热门话题

SINUMERIK

共有25600条技术帖

相关推荐

热门标签

相关帖子推荐

guzhang

恭喜,你发布的帖子

评为精华帖!

快扫描右侧二维码晒一晒吧!

再发帖或跟帖交流2条,就能晋升VIP啦!开启更多专属权限!

  • 分享

  • 只看
    楼主

top
X 图片
您收到0封站内信:
×
×
信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。