FZ_FormBase.GetAll
Performs a batch input of the state of terminals such as the parallel I/Os
Public Shared Function GetAll( _
ByVal ioIdent As String, _
) As UInteger
Parameters
ioIdent
|
Type of acquisition destination
ParallelIo: Parallel I/O
SerialNormal: Serial non-procedure communications
UdpNormal: Ethernet UDP non-procedure communications
|
Input
|
Return Value
Returns the terminal state from DI 0 to 7.
Description
Gets a terminal state from DI 0 to 7 when ParallelIo is specified.
The processing of this method is disabled for other I/Os.
Example
Private ANDBIT As UInteger = 1
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Get the status of ParallelIO.
Dim sData As UInteger = GetAll("ParallelIO")
Dim bit(7) As Boolean
For i As Integer = 0 To 7
bit(i) = CBool(sData And ANDBIT)
sData >>= 1
Next
'The status of ParallelIO is reflected.
If bit(0) = True Then
'Suitable processing is put in here.
Else
'Suitable processing is put in here.
End If
End Sub