Mitsubishi Electronics MELSEC-F Universal Remote User Manual


 
App - 15
MELSEC-F
APPENDIX
App - 15
(4) Window example (Form 1)
(5) Sample program (Form 1)
Parts in italic are created automatically by Visual Basic .NET, so no input is required.
Only input where written in bold.
Option Explicit On
Option Strict On
Imports System.Net.Sockets
Public Class Form1
Inherits System.Windows.Forms.Form
#Region " Windows Code created by Form Designer "
Public Sub New()
MyBase.New()
' This call is necessary for Windows Form Designer.
InitializeComponent()
' InitializeComponent() Initialization is added after the call.
End Sub
' The Form overwrites dispose to execute after-processing in the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
' Necessary for Windows Form Designer.
Private components As System.ComponentModel.IContainer
(Object name)
Start
Connect to the Ethernet module
and perform communications
1st Output
Display data that was read from
the Ethernet module