I am in the process of writing a TNG script that needs to evaluate the state of two output relays. As an example, relay 1 and 7 need to be confirmed as on/off at the hardware level in order for the script to do something.

Reading the state of inputs under M67 is no problem given that Q is used to store the values ... but in the case of outputs under M62 ... Q is used differently and I have yet to figured out how to reference individual pins using #<_hw_output>

Any help with the syntax would be much appreciated.