⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form100.frm

📁 OPC客户端程序源代码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "OPC Client Demo Program "
   ClientHeight    =   7245
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6330
   LinkTopic       =   "Form1"
   ScaleHeight     =   7245
   ScaleWidth      =   6330
   StartUpPosition =   3  'Windows Default
   Begin VB.TextBox SetValue 
      Height          =   285
      Index           =   2
      Left            =   3120
      TabIndex        =   36
      Text            =   "0"
      Top             =   4440
      Width           =   1335
   End
   Begin VB.TextBox SetValue 
      Height          =   285
      Index           =   1
      Left            =   3120
      TabIndex        =   35
      Text            =   "0"
      Top             =   3960
      Width           =   1335
   End
   Begin VB.TextBox SetValue 
      Height          =   285
      Index           =   0
      Left            =   3120
      TabIndex        =   34
      Text            =   "0"
      Top             =   3480
      Width           =   1335
   End
   Begin VB.CommandButton Command6 
      Caption         =   "Write value-3"
      Enabled         =   0   'False
      Height          =   375
      Left            =   4680
      TabIndex        =   33
      Top             =   4440
      Width           =   1455
   End
   Begin VB.CommandButton Command5 
      Caption         =   "Write value-2"
      Enabled         =   0   'False
      Height          =   375
      Left            =   4680
      TabIndex        =   32
      Top             =   3960
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1800
      TabIndex        =   27
      Text            =   "SunWareCorp.Trial_Modbus"
      Top             =   480
      Width           =   2655
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   16
      Left            =   5040
      Locked          =   -1  'True
      TabIndex        =   25
      Top             =   6480
      Width           =   1095
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   15
      Left            =   5040
      Locked          =   -1  'True
      TabIndex        =   24
      Top             =   6000
      Width           =   1095
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   14
      Left            =   5040
      Locked          =   -1  'True
      TabIndex        =   23
      Top             =   5520
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   1800
      TabIndex        =   22
      Text            =   "192.168.127.2"
      Top             =   960
      Width           =   1695
   End
   Begin VB.ListBox List1 
      Height          =   1425
      Left            =   240
      TabIndex        =   21
      Top             =   1560
      Width           =   3375
   End
   Begin VB.CommandButton Command7 
      Caption         =   "Search OPC"
      Height          =   375
      Left            =   240
      TabIndex        =   20
      Top             =   960
      Width           =   1455
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   9
      Left            =   2520
      Locked          =   -1  'True
      TabIndex        =   17
      Top             =   6480
      Width           =   2415
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   8
      Left            =   2520
      Locked          =   -1  'True
      TabIndex        =   16
      Top             =   6000
      Width           =   2415
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   7
      Left            =   2520
      Locked          =   -1  'True
      TabIndex        =   15
      Top             =   5520
      Width           =   2415
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   6
      Left            =   1440
      Locked          =   -1  'True
      TabIndex        =   14
      Top             =   6480
      Width           =   855
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   5
      Left            =   1440
      Locked          =   -1  'True
      TabIndex        =   13
      Top             =   6000
      Width           =   855
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   4
      Left            =   1440
      Locked          =   -1  'True
      TabIndex        =   12
      Top             =   5520
      Width           =   855
   End
   Begin VB.CommandButton Command4 
      Caption         =   "Write value-1"
      Enabled         =   0   'False
      Height          =   375
      Left            =   4680
      TabIndex        =   11
      Top             =   3480
      Width           =   1455
   End
   Begin VB.CommandButton Command3 
      Caption         =   "Sync Read"
      Enabled         =   0   'False
      Height          =   495
      Left            =   4680
      TabIndex        =   10
      Top             =   2880
      Width           =   1455
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   1
      Left            =   240
      Locked          =   -1  'True
      TabIndex        =   8
      Top             =   5520
      Width           =   1095
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   2
      Left            =   240
      Locked          =   -1  'True
      TabIndex        =   7
      Top             =   6000
      Width           =   1095
   End
   Begin VB.TextBox Value 
      Height          =   288
      Index           =   3
      Left            =   240
      Locked          =   -1  'True
      TabIndex        =   6
      Top             =   6480
      Width           =   1095
   End
   Begin VB.TextBox ItemID 
      Height          =   288
      Index           =   2
      Left            =   240
      TabIndex        =   4
      Text            =   "Device1.Group.TAG2"
      Top             =   3960
      Width           =   2775
   End
   Begin VB.TextBox ItemID 
      Height          =   288
      Index           =   1
      Left            =   240
      TabIndex        =   3
      Text            =   "Device1.Group.TAG1"
      Top             =   3480
      Width           =   2775
   End
   Begin VB.TextBox ItemID 
      Height          =   288
      Index           =   3
      Left            =   240
      TabIndex        =   2
      Text            =   "Device1.Group.TAG3"
      Top             =   4440
      Width           =   2775
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Disconnect"
      Enabled         =   0   'False
      Height          =   495
      Left            =   4680
      TabIndex        =   1
      Top             =   2400
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Connect"
      Height          =   495
      Left            =   4680
      TabIndex        =   0
      Top             =   1920
      Width           =   1455
   End
   Begin VB.Label Label11 
      Caption         =   "IP Address for Remote Server"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3600
      TabIndex        =   38
      Top             =   1320
      Width           =   2535
   End
   Begin VB.Label Label10 
      Caption         =   "Null String for Local Server"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3600
      TabIndex        =   37
      Top             =   960
      Width           =   2535
   End
   Begin VB.Label Label9 
      Alignment       =   2  'Center
      Caption         =   "OPC Client Demo Program"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   0
      TabIndex        =   31
      Top             =   120
      Width           =   6135
   End
   Begin VB.Label Label8 
      Alignment       =   1  'Right Justify
      Caption         =   "designed by Yeh Hung-Tsair"
      Height          =   255
      Left            =   3840
      TabIndex        =   30
      Top             =   6960
      Width           =   2295
   End
   Begin VB.Label Label7 
      Caption         =   "Sync Value"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   5040
      TabIndex        =   29
      Top             =   5160
      Width           =   1095
   End
   Begin VB.Label Label6 
      Caption         =   "Write Value"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3360
      TabIndex        =   28
      Top             =   3120
      Width           =   1215
   End
   Begin VB.Label Label5 
      Alignment       =   1  'Right Justify
      Caption         =   "OPC Server Name"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   240
      TabIndex        =   26
      Top             =   600
      Width           =   1455
   End
   Begin VB.Label Label2 
      Caption         =   "Update Time"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   2520
      TabIndex        =   19
      Top             =   5160
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "Quality"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1440
      TabIndex        =   18
      Top             =   5160
      Width           =   975
   End
   Begin VB.Label Label4 
      Caption         =   "Unsync Value"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   240
      TabIndex        =   9
      Top             =   4920
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "TAG Item Full Name"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   360
      TabIndex        =   5
      Top             =   3120
      Width           =   1935
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Option Base 1

'﹚竡 OPC Interface 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -