virtual output

virtual output

Q: How do I used a virtual output?  How can I read the state of the virtual output? 

A: Set virtual output with OP. Read virtual output with IN.

OP(24,ON)
IF IN(24)=ON THEN
  PRINT "OK"
ENDIF