InW Method

Description
Returns the status of the specified input word port. Each word port contains 16 input bits.

Syntax
Function InW (PortNumber As Integer) As Integer
Function InW (Label As String) As Integer

Parameters

  • PortNumber
    An integer indicating the input port.
  • Label
    A string expression indicating the input word label.

Return Value
Integer value from 0 to 65535 representing the input port

See Also
In Method, InBCD Method, Out Method, OpBCD Method, Sw Method

InW Example
VB Example:

  Dim data As Integer  
  data = m_spel.InW(0)  

C# Example:

int data;  
data = m_spel.InW(0);