FZ_FormBase.GetIoModuleIdent
Gets the I/O module identify name
Public Shared Function GetIoModuleIdent( _
ByVal ioModuleNo As Integer, _
) As String
Parameters
ioModuleNo
|
I/O module number
|
Input
|
Return Value
Returns 0 when the lI/O module identify name is successfully obtained.
Otherwise returns a non-zero value.
Description
Gets the I/O module identify name(string).
In FZ3, I/O module number is as follows:
0: Registers ParallelIo(Parallel I/O). (Fixed)
1: Registers I/O module related to Serial as follows:
SerialNormal Serial normal
SerialNormal2 Serial normal2(FXXX series mode)
SerialPlcLink Serial PLC link(Omron PLC)
SerialPlcLinkM Serial PLC link(Mitsubishi PLC)
2: Registers I/O module related to Ethernet as follows:
TcpNormal TCP Normal
UdpNormal UDP Normal
UdpNormal2 UDP Normal2(FXXX series mode)
UdpPlcLink UDP PLC link(Omron PLC)
UdpPlcLinkM UDP PLC link(Mitsubishi PLC)
3: Registers optionally I/O module:
EtherCAT0 EtherCAT
EtherNetIP EtherNet/IP
Example
Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
' Gets the I/O module identify name
GetIoModuleIdent(0)
End Sub