If I understand correctly there are two questions here.
1. How can I turn output on when TNG starts?
2. How can I skip wait if output is already on?
1:
- Open or create "Expr.txt" file in you profile folder.
- Find or create new "#OnInit" section
- Add comand that will turn output on,. For examle:
Code:
#OnInit
print('Expr: OnInit');
cmd("Machine.Output", 4 ,1);
This will turn output 5 on (note that first output has number 0).
Message will also be printed to output window.
2.
Do this in your Onstart script.
Code:
#<out1> = #<_hw_output_num|1>
M62 P1 Q1
o<chk> if [#<out1> EQ 0]
(print, Waiting 10s)
G04 P10
o<chk> endif
.