Hi Dom,
I presume you have read this but just need more examples.
IsActive
Function IsActive(Signal As Integer) As Boolean
This function returns a Boolean True if the current state of the specified input signal is its active state
Note that in terms of actual signal level, the term “active” depends on how the signal is defined. If the
signal is defined in Config->Ports&Pins->InputSignals as ActiveLow, then IsActive() will return True
when that signal is being driven to a logic low. If the signal is defined in Config->Ports&Pins-
>InputSignals as ActiveHigh, then IsActive() will return True when that signal is being driven to a logic
high.
Arguments:
Signal is an integer value corresponding to one of pre-defined input signal constants.
Return Value:
False indicates the signal is currently in its inactive state
True indicates the signal is currently in its active state
Example:
‘ Show the user the state of the INPUT #1 input
If IsActive(INPUT1) Then
Message “INPUT #1 input is active”
Else
Message “INPUT #1 input is inactive”
End If
Tweakie.