InBCD Method

Description
Returns the input status of 8 inputs using BCD format. (Binary Coded Decimal)

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

Parameters

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

Return Value
Integer from 0 to 9 representing the status of the input port.
See Also
In Method, Out Method, OpBCD Method, Sw Method

InBCD Example
VB Example:

Dim port1Value As Integer  
port1Value = m_spel.InBCD(1)  

C# Example:

int port1Value;  
port1Value = m_spel.InBCD(1);