后来又想了想,我想达到的效果,就是销子多了就开启吹气吹一吹,那样的话可以不用定时开启,如果是层切, ...
global mom_machine_time
global coolant_timer ;# 定义冷却液计时器
if {!} {
set coolant_timer 0
}
set coolant_interval 10 ;# 设置冷却开启/关闭间隔时间,单位为秒,可根据需要修改
incr coolant_timer $mom_machine_time
if {$coolant_timer >= $coolant_interval} {
if { && $mom_coolant_status == "ON"} {
MOM_output_literal "M09" ;# 关闭冷却液
set mom_coolant_status "OFF"
} else {
MOM_output_literal "M08" ;# 开启冷却液
set mom_coolant_status "ON"
}
set coolant_timer 0
} 你试试我这个代码行不行? NX编程小学生 发表于 2025-7-4 09:24
global mom_machine_time
global coolant_timer ;# 定义冷却液计时器
if {!} ...
这玩意应该加在哪里 NX编程小学生 发表于 2025-7-4 09:24
global mom_machine_time
global coolant_timer ;# 定义冷却液计时器
if {!} ...
翻看了你的贴子,你是真厉害啊
页:
1
[2]