Out Method

Description
Simultaneously reads or sets 8 output bits (one byte).

Syntax
Sub Out (PortNumber As Integer, Value As Integer)
Sub Out (Label As String, Value As Integer)
Function Out (PortNumber As Integer) As Integer
Function Out (Label As String) As Integer

Parameters

  • PortNumber
    An integer indicating the output port.
  • Label
    A string expression indicating the output byte label.
  • Value
    An integer between 0 and 255 indicating the output pattern for the output port. If represented in hexadecimal form, the range is from &H0 to &HFF.

Return Value
Integer number between 0-255 containing the port value.

See Also
InBCD Method, OpBCD Method, Oport Method, OutW Method, Sw Method

Out Example
VB Example:

m_spel.Out(1, 240)  

C# Example:

m_spel.Out(1, 240);