?? mainform.frm
字號:
VERSION 5.00
Begin VB.Form MainForm
Caption = "VB 6 Sample"
ClientHeight = 5250
ClientLeft = 7275
ClientTop = 6390
ClientWidth = 10725
LinkTopic = "Form1"
ScaleHeight = 5250
ScaleWidth = 10725
Begin VB.CheckBox CheckGroupActive
Caption = "Group Active State"
Height = 615
Left = 8040
TabIndex = 33
Top = 1560
Width = 1695
End
Begin VB.TextBox TxtAWriteComplete
Alignment = 2 'Center
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Left = 9840
TabIndex = 31
Text = "0"
Top = 3000
Width = 735
End
Begin VB.TextBox TxtAReadComplete
Alignment = 2 'Center
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Left = 9840
TabIndex = 30
Text = "0"
Top = 3480
Width = 735
End
Begin VB.TextBox TxtDataChange
Alignment = 2 'Center
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Left = 9840
TabIndex = 29
Text = "0"
Top = 3960
Width = 735
End
Begin VB.TextBox txtChangeVal
Alignment = 1 'Right Justify
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Index = 1
Left = 4080
TabIndex = 28
Top = 3960
Width = 2600
End
Begin VB.TextBox txtChangeVal
Alignment = 1 'Right Justify
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Index = 0
Left = 1440
TabIndex = 26
Top = 3960
Width = 2600
End
Begin VB.TextBox txtReadVal
Alignment = 1 'Right Justify
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Index = 1
Left = 4080
TabIndex = 25
Top = 3480
Width = 2600
End
Begin VB.TextBox txtWriteVal2
Alignment = 1 'Right Justify
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Left = 4080
TabIndex = 24
Text = "0"
Top = 3000
Width = 2600
End
Begin VB.TextBox txtItem2
Height = 285
Left = 4080
TabIndex = 22
Text = "2,VW4,word"
Top = 2520
Width = 2600
End
Begin VB.TextBox txtServer
Height = 285
Left = 1440
TabIndex = 21
Text = "S7200.OPCServer"
Top = 1080
Width = 2655
End
Begin VB.CommandButton cmdExit
Caption = "Exit"
Height = 375
Left = 120
TabIndex = 20
Top = 4680
Width = 1095
End
Begin VB.CommandButton cmdReadAsync
Caption = "異步讀"
Enabled = 0 'False
Height = 375
Left = 8280
TabIndex = 19
Top = 3480
Width = 1335
End
Begin VB.CommandButton cmdReadSync
Caption = "同步讀"
Enabled = 0 'False
Height = 375
Left = 6840
TabIndex = 18
Top = 3480
Width = 1335
End
Begin VB.CommandButton cmdWriteAsync
Caption = "異步寫"
Enabled = 0 'False
Height = 375
Left = 8280
TabIndex = 17
Top = 3000
Width = 1335
End
Begin VB.CommandButton cmdWriteSync
Caption = "同步寫"
Enabled = 0 'False
Height = 375
Left = 6840
TabIndex = 16
Top = 3000
Width = 1335
End
Begin VB.TextBox txtReadVal
Alignment = 1 'Right Justify
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Index = 0
Left = 1440
TabIndex = 15
Top = 3480
Width = 2600
End
Begin VB.TextBox txtWriteVal1
Alignment = 1 'Right Justify
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 1031
SubFormatType = 1
EndProperty
Height = 285
Left = 1440
TabIndex = 14
Text = "0"
Top = 3000
Width = 2600
End
Begin VB.CommandButton cmdRemItem
Caption = "Remove Item"
Enabled = 0 'False
Height = 375
Left = 8280
TabIndex = 11
Top = 2520
Width = 1335
End
Begin VB.CommandButton cmdAddItem
Caption = "Add Item"
Enabled = 0 'False
Height = 375
Left = 6840
TabIndex = 10
Top = 2520
Width = 1335
End
Begin VB.CommandButton cmdRemGroup
Caption = "Remove Group"
Enabled = 0 'False
Height = 375
Left = 6360
TabIndex = 9
Top = 1680
Width = 1335
End
Begin VB.CommandButton cmdAddGroup
Caption = "Add Group"
Enabled = 0 'False
Height = 375
Left = 4920
TabIndex = 8
Top = 1680
Width = 1335
End
Begin VB.CommandButton cmdDisconnect
Caption = "Disconnect"
Enabled = 0 'False
Height = 375
Left = 6360
TabIndex = 7
Top = 1080
Width = 1335
End
Begin VB.TextBox txtItem1
Height = 285
Left = 1440
TabIndex = 6
Text = "2,MB0,byte"
Top = 2520
Width = 2600
End
Begin VB.TextBox txtGroup
Height = 285
Left = 1440
TabIndex = 2
Text = "Group1"
Top = 1680
Width = 2655
End
Begin VB.CommandButton cmdConnect
Caption = "Connect"
Height = 375
Left = 4920
TabIndex = 1
Top = 1080
Width = 1335
End
Begin VB.Label Label10
Alignment = 2 'Center
Caption = "Goup Active State must be TRUE"
Height = 255
Left = 6840
TabIndex = 34
Top = 4000
Width = 2775
End
Begin VB.Label Label9
Alignment = 2 'Center
Caption = "Callback Count"
Height = 495
Left = 9840
TabIndex = 32
Top = 4440
Width = 735
End
Begin VB.Label Label8
Alignment = 1 'Right Justify
Caption = "DataChange:"
Height = 375
Left = 0
TabIndex = 27
Top = 3960
Width = 1335
End
Begin VB.Label Label7
Caption = "Item 2"
Height = 255
Left = 4080
TabIndex = 23
Top = 2280
Width = 1215
End
Begin VB.Label Label6
Alignment = 1 'Right Justify
Caption = "Read Value:"
Height = 375
Left = 120
TabIndex = 13
Top = 3480
Width = 1215
End
Begin VB.Label Label5
Alignment = 1 'Right Justify
Caption = "Write Value:"
Height = 255
Left = 120
TabIndex = 12
Top = 3000
Width = 1215
End
Begin VB.Label Label4
Caption = "Item 1"
Height = 255
Left = 1440
TabIndex = 5
Top = 2280
Width = 1215
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "Group Name:"
Height = 255
Left = 120
TabIndex = 4
Top = 1680
Width = 1215
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "Selected Server:"
Height = 255
Left = 120
TabIndex = 3
Top = 1080
Width = 1215
End
Begin VB.Label Label1
Caption = "S7 200 OPC Sample for Visual Basic 6"
BeginProperty Font
Name = "MS Sans Serif"
Size = 24
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 720
TabIndex = 0
Top = 120
Width = 8535
End
End
Attribute VB_Name = "MainForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Option Base 1 ' All OPC Automation Arrays start with 1
' ----------------------
' | OPCServer |
' | -------------- |
' | | OPCGoups | |
' | | Collection | |
' -------------|--------
' |
' -------|--------------
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -