FZ_FormBase.PutPort
Performs an individual output of the state of terminals such as the parallel I/Os
Public Shared Function PutPort( _
ByVal ioIdent As String, _
ByVal portNo As Integer, _
ByVal data As Integer _
) As Integer
Parameters
ioIdent
|
Type of input destination
ParallelIo: Parallel I/O
SerialNormal: Serial non-procedure communications
UdpNormal: Ethernet UDP non-procedure communications
|
Input
|
portNo
|
Input port number
* For ParallelIo
DO0 to DO15 : 0-15
GATE0 : 100
BUSY : 101
OR0 : 102
ERROR : 103
RUN : 104
READY0 : 105
GATE1 : 108
OR1 : 110
READY1 : 113
|
Input
|
data
|
Input data
|
Input
|
Return Value
Returns 0 when the data is successfully Input.
Otherwise returns a non-zero value.
Description
Outputs data to the specified port number.
The processing of this method is disabled for other than parallel I/O.
Example
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
' Inputs the data to the parallel GATE0
putPort("ParallelIO", 100, 1)
End Sub