Modbus Motion Interface
Read_Word(System_+_InputBit1_w); {read input 1}
Read_Word(System_+_InputBit2_w); {read input 2}
Read_Word(System_+_InputBit3_w); {read input 3}
Read_Word(System_+_InputBit4_w); {read input 4}
Read_Word(System_+_InputBit5_w); {read input 5}
Read_Word(System_+_InputBit6_w); {read input 6}
Read_Word(System_+_InputBit7_w); {read input 7}
Read_Word(System_+_InputBit8_w); {read input 8}
Description
The Input Bit register returns the state of the input bits referenced by the parameter. A non-zero value represents a high voltage and a 0 represents a low voltage.
Note that this performs a direct read of the input bit and does not include setup configured properties that
apply to a named resource that might be referencing the input bit such as bit inversion.
Escapes
A Parameter Out Of Range Escape Code will be generated if the parameter references an input beyond the range of the controller.
Examples
Query input 5 setting.
if Read_Word(System_+_InputBit5) <> 0 then
Show_Message('Input 5 is high')
Related Topics
Set Output Bit