Sw Method
Description
Returns the selected input bit status.
Syntax
Function Sw (BitNumber As Integer) As Boolean
Function Sw (Label As String) As Boolean
Parameters
- BitNumber
An integer or formula indicating the I/O input bits. - Label
A string expression indicating the input bit label.
Return Value
True if the specified input bit is on, False if not.
See Also
In Method, InBCD Method, MemSw Method, Off Method, On Method, Oport Method
Sw Example
VB Example:
If m_spel.Sw(1) Then
m_spel.On(2)
End If
C# Example:
if (m_spel.Sw(1))
m_spel.On(2);
← Stop Method T →