FZ_FormBase.GetPort
Performs an individual input of the state of terminals such as the parallel I/Os
Public Shared Function GetPort( _
ByVal ioIdent As String, _
ByVal portNo As Integer, _
) As Integer
Parameters
ioIdent
|
Type of acquisition destination
ParallelIo: Parallel I/O
SerialNormal: Serial non-procedure communications
UdpNormal: Ethernet UDP non-procedure communications
|
Input
|
portNo
|
Port number to be gotten
* For ParallelIo
DI0 to DI7 : 0-7
DSA0 : 100
STEP0 : 101
DSA1 : 102
STEP1 : 103
|
Input
|
Return Value
Returns the specified terminal state.
Description
Inputs data to the specified port number.
The processing of this method is disabled for other I/O.
Example
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim portData As Integer
' Gets a parallel SETP0 terminal state
portData = GetPort(FZ_SharedClass.IDENT_PARALLELIO, FZ_SharedClass.PORT_STEP0)
End Sub