Hello,
You can use Python Action for that.
- Create Python action triggered on IO rising or falling depending on your collision sensor logic
- Set script for this action (example):
if(d.getState( ) != State.EStop):
print("THC collision detected, stopping machine")
d.enableMachine( False )
msg.err( "Torch collision detected, Machine stopped!", "Error!" )
else:
print("Torch collision detected")
Regards,
Andrew
Hello,
You can use Python Action for that.
- Create Python action triggered on IO rising or falling depending on your collision sensor logic
- Set script for this action (example):
if(d.getState( ) != State.EStop):
print("THC collision detected, stopping machine")
d.enableMachine( False )
msg.err( "Torch collision detected, Machine stopped!", "Error!" )
else:
print("Torch collision detected")
Regards,
Andrew
agricutter.es and jose-gzm have reacted to this post.