Hi guys,
Yesterday we implemented the drawbar to Mach and I noticed something I can't really understand.
The drawbar have 2 limit switches and 2 buttons.
When mach is enabled, the drawbar works perfect, buttons enable outputs and the limit switches disables them.
However, when mach is disabled, the signal script do enable the output and the drawbar starts to clamp/unclamp and here's where the strange stuff comes in. The signal script don't listen for the limit switches, making the draw bar trying to move further than the end positions.
We ended up starting the signal script with a check of mach state, and only let it continue the script if mach is enabled, which ofcourse is good, since we don't want anything to be able to move while disabled.
But I'm curious why the signal script let an output to enable, but discards the mcSignalWait while mach is disabled?
IMHO Either all should work or nothing should work, not parts of signal scripts.