如何转为图形格式

以下这些是宏程序还是什么?怎么转化为图形格式的,像T图那样。
;$PATH=/_N_CMA_DIR
;--------------------------------------
;TOOLDATA TRANSFER WITHOUT M6
;VERSION 01.00.00 Dec 13,2005 
;CUSTOMER :KOMATEC
;NTT-30A Random type with double gripper
;--------------------------------------
PROC L45(INT TOOL) SAVE DISPLOF SBLOF

;IF $MN_USER_DATA_HEX[1]<128 GOTOF _ARML ;Armless type(PLC-MD 14512[1].7==0)==>

_TM[19]=1 ;Set Memo-Flag
T=TOOL  ;Call Pos_Mag
_TM[19]=0 ;Reset Memo-Flag

H66=1    ;Inhibit channel reset

IF $P_ISTEST==1 GOTOF PROGT ;Programmtest ==>
IF $P_SEARCH<>0 GOTOF FIN ;BlockSearch ==>

IF ($P_TOOLNO<>0)AND(_TM[2]==0) GOTOF _ULM ;Spindletool and no empty location ==>
IF ($P_TOOLNO==0)AND(_TM[2]<>0) GOTOF _ULM ;No Spindletool and pocket reserv. ==>
GOTOF _CONT     ; ==>

_ULM:
MSG("RUN CYCLE UL_MAG (Data of Tooltable not consistency)")
H66=99    ;Release channel reset
H66=98    ;Release single block
M00
GOTOB _ULM

_CONT:
IF _TM[16]==1    ;Memo-Flag from L39
_STOP:
MSG("RUN CYCLE L41 (ATC one cycle)")
H66=99    ;Release channel reset
H66=98    ;Release single block
M00
GOTOB _STOP
ENDIF

IF $C_T==$P_TOOLNO GOTOF FIN ;NewTool equal OldTool ==>
IF $C_T==0 GOTOF FIN


_TM[2]=$TC_DP25[$C_T,1]  ;Store empty location
STOPRE
$TC_DP25[$C_T,1]=31    ;NewTool in spindle

IF $P_TOOLNO<>0  
$TC_DP25[$P_TOOLNO,1]=0  ;OldTool cancelled
ENDIF

M206    ;Activation SpindleTool     
H66=30    ;Refresh Tooltable

FIN:    ;Finished
H66=99    ;Release channel reset
H66=98    ;Release single block
RET    ;End subprogram

PROGT:     ;Programtest
M206    ;Activation SpindleTool  
H66=98    ;Release single block
RET    ;End subprogram
M17    ;End subprogram

最佳答案

如果能转换的话,你换梯形图格式就应该能打开的,要是打不开就应该不是。不过我也有过语句表程序用梯形图并不能打开的经历。
不过这段代码究竟是什么我的确不知道。所以不能确定。

提问者对于答案的评价:
这段程序,按上面的报警像是刀表查错用的,NC程序吗?怎么看也感觉是T图译出来的,我确实用编辑器导入了一下,提示出错,忘了报什么错了。这段代码出自,802d sl
调试文件,不知应归为哪一类。

原创文章,作者:more0621,如若转载,请注明出处:https://www.zhaoplc.com/plc138269.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2017年6月1日 上午1:27
下一篇 2017年6月1日 上午1:27

相关推荐