OutW Method
Description
Simultaneously reads or sets 16 output bits (one word).
Syntax
Sub OutW (PortNumber As Integer, Value As Integer)
Sub OutW (Label As String, Value As Integer)
Function OutW (PortNumber As Integer) As Integer
Function OutW (Label As String) As Integer
Parameters
- PortNumber
An integer indicating the output port. - Label
A string expression indicating the output word label. - Value
An integer between 0 and 65535 indicating the output pattern for the output port. If represented in hexadecimal form, the range is from &H0 to &HFFFF.
Return Value
Integer number between 0-65535 containing the port value.
See Also
InBCD Method, OpBCD Method, Oport Method, Out Method, Sw Method
OutW Example
VB Example:
m_spel.OutW(1, 240)
C# Example:
m_spel.OutW(1, 240);
← OutReal Method P →