Input pin (CTS)
The state of the input line can be read by using the special SDMGeneric()
instruction in CRBasic.
Bit 16 of a value returned to the data logger using the SDMGeneric()
instruction reports whether the input is logic high or low. The following example shows how to call the instruction with the required parameters.
Detecting the state of the input line |
---|
Const Values_in = 1
big_endian,delay_usec) Inputstate = sio1response
|
The input line can accept 0 and 5V logic inputs OR –12 and +12V RS-232 level inputs. The following table shows a breakdown of the different input voltages allowed and the state of the input line flag.
Voltage on the input line |
State of bit 16 |
---|---|
+12V |
1 |
–12V |
0 |
5V |
1 |
0V |
0 |