Those 2 pins at the picture are the only pins that connected to the wires going to the relay board that im using it has 12volts.
I only need the data that saying the power is OFF or ON, if the power from the relay has been cut (12v).
I Already looked into some posts in the forum but no luck, and also I already seen and read what aobrien posted but I can't figure out how I can apply it to my project, when i tried it the Read_data and Recieved_Data are always blank except with the RS232_FileHandle its always 312 or 308.
I tried this short one:
Code: Select all
port := FileOpen("COM3", "w") ; Open for writing only, not reading/appending.
port.Write("1") ; Write an ASCII digit 1 (binary Ord("1"), i.e. 49).
port.WriteChar(0) ; Write a single byte (binary 1).
port.__Handle ; This flushes the write buffer.
port.Close() ; and close the Port
msgbox, % port
But if I unplug the RS232 it returns 0.
I hope someone could help me with this...
Thank You in advance. Have a nice day..