MemInW Method

Description
Returns the status of the specified memory I/O word port. Each word port contains 16 memory I/O bits.

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

Parameters

  • PortNumber
    An integer indicating the memory I/O port.
  • Label
    A string expression indicating the memory I/O word label.

Return Value
Integer expression from 0 to 65535 representing the input port status.

See Also
In Method, InBCD Method, MemIn Method, MemSw Method, Sw Method, Off Method, On Method, Oport Method

MemInW Example
VB Example:

data = m_spel.MemInW(1)  

C# Example:

data = m_spel.MemInW(1);