发布于 2012-10-23 14:43:31
5楼
通过PLC程序可以将倍率读到$A_DBB[0]等NC变量中,可以自己编写程序,也可以编写Prog_Event.spf 程序,在加工程序一启动的时候自动调用,当然这是个选件。
还需要修改机床数据20108 PROG_EVENT_MASK(可以设为1,在Start-of-part-program时调用)
Bit 0 = 1 : Start-of-part-program
Bit 1 = 1 : End-of-part-program
Bit 2 = 1 : Operator panel reset
Bit 3 = 1 : Ramp-up
Bit 4 = 1 : Reserved
Bit 5 = 1 : Safety program booting
Prog_event.spf 程序可放在一下目录
The user program is called via the following search path:
1. /_N_CUS_DIR/_N_PROG_EVENT_SPF
2. /_N_CMA_DIR/_N_PROG_EVENT_SPF
3. /_N_CST_DIR/_N_PROG_EVENT_SPF
The safety program has to be available in the following location:
1. /_N_CST_DIR/_N_SAFE_SPF
11620 $MN_PROG_EVENT_NAME
11622 $MN_PROG_EVENT_PATH:
0: /_N_CMA_DIR
1: /_N_CUS_DIR
2: /_N_CST_DIR
3: Search path in the sequence /_N_CUS_DIR, /_N_CMA_DIR, and /_N_CST_DIR
借我三千虎骑,复我浩荡中华!饮马恒河畔,剑指天山西;碎叶城揽月,库叶岛赏雪;黑海之滨垂钓,贝加尔湖张弓;中南半岛访古,东京废墟遥祭华夏列祖。汉旗指处,望尘逃遁—— 敢犯中华天威者,虽远必诛!