Command Group: DigitalIO
IN - Read the status of the input channels
read 18,7 write 31,7
IN Read the status of the two input channels – returns the status in the form of a bitmapped four-digit value where 0 corresponds to “false” and 1 corresponds to “true” (inputs are active “high”). Issuing the IN command, which has no parameters, returns the input status in the form IN:0001, where Input 0 status is given by the Least Significant Digit (in this example 1) and so on.
See also IO, IM.