📄 communication.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form frmMain
BorderStyle = 5 'Sizable ToolWindow
Caption = "Windows环境下的监控与通讯"
ClientHeight = 6195
ClientLeft = 60
ClientTop = 630
ClientWidth = 10710
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6195
ScaleWidth = 10710
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.ListBox LSTCode
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 5040
TabIndex = 38
Top = 480
Width = 2295
End
Begin MSCommLib.MSComm MSComm1
Left = 5880
Top = 2640
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
End
Begin VB.Timer Timer2
Left = 6360
Top = 0
End
Begin MSComDlg.CommonDialog CommonDialog1
Left = 7320
Top = 0
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.Timer tmRX
Left = 9720
Top = 0
End
Begin VB.CommandButton Command15
Caption = "设置控制码"
Height = 495
Left = 2640
TabIndex = 28
Top = 120
Width = 1695
End
Begin VB.CommandButton Command14
Caption = "配置串口"
Height = 495
Left = 360
TabIndex = 27
Top = 120
Width = 1455
End
Begin VB.Frame Frame3
Caption = "单字节发送测试"
Height = 975
Left = 240
TabIndex = 23
Top = 5040
Width = 4335
Begin VB.CommandButton CommandSingleStep
BackColor = &H80000008&
Caption = "发送"
Height = 375
Left = 120
TabIndex = 26
Top = 360
Width = 855
End
Begin VB.TextBox TextSingleSend
Height = 375
Left = 1200
TabIndex = 24
Top = 360
Width = 1335
End
Begin VB.Label Label9
Caption = "(请输入十进制数据)"
Height = 255
Left = 2640
TabIndex = 25
Top = 480
Width = 1575
End
End
Begin VB.ComboBox ComboCmd
Height = 315
ItemData = "communication.frx":0000
Left = 2640
List = "communication.frx":0028
TabIndex = 16
Top = 1080
Width = 1575
End
Begin VB.CommandButton CommandRun
Caption = "运行"
Height = 375
Left = 3120
TabIndex = 8
Top = 2400
Width = 1215
End
Begin VB.CommandButton CommandAddCancel
Caption = "取消添加"
Height = 375
Left = 1800
TabIndex = 7
Top = 2400
Width = 1215
End
Begin VB.CommandButton CommandFinish
Caption = "完成"
Height = 375
Left = 360
TabIndex = 6
Top = 2400
Width = 1215
End
Begin VB.CommandButton CommandAddOk
Caption = "添加完成"
Height = 375
Left = 360
TabIndex = 5
Top = 1800
Width = 1215
End
Begin VB.CommandButton CommandAdd
Caption = "添加命令"
Height = 375
Left = 360
TabIndex = 4
Top = 1200
Width = 1215
End
Begin VB.Frame Frame5
Caption = "监视串口窗口"
Height = 5895
Left = 7920
TabIndex = 3
Top = 120
Width = 2535
Begin VB.CommandButton CmdExit
Caption = "退出程序"
Height = 375
Left = 1320
TabIndex = 37
Top = 5400
Width = 855
End
Begin VB.CommandButton CmdClear
Caption = "清除"
Height = 375
Left = 360
TabIndex = 36
Top = 5400
Width = 735
End
Begin RichTextLib.RichTextBox RTBCmdLine
Height = 4815
Left = 240
TabIndex = 35
Top = 360
Width = 2055
_ExtentX = 3625
_ExtentY = 8493
_Version = 393217
Enabled = -1 'True
TextRTF = $"communication.frx":00B0
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Begin VB.Frame Frame4
Caption = "命令编辑窗口"
Height = 5895
Left = 4800
TabIndex = 2
Top = 120
Width = 2775
Begin VB.CommandButton cmdImport
Caption = "输入"
Height = 375
Left = 1560
TabIndex = 34
Top = 5400
Width = 975
End
Begin VB.CommandButton cmdEdit
Caption = "编辑"
Height = 375
Left = 360
TabIndex = 33
Top = 5400
Width = 975
End
Begin RichTextLib.RichTextBox RTBCode
Height = 4815
Left = 240
TabIndex = 32
Top = 360
Width = 2295
_ExtentX = 4048
_ExtentY = 8493
_Version = 393217
Enabled = -1 'True
TextRTF = $"communication.frx":013F
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Begin VB.Frame Frame2
Caption = "查询系统参数"
Height = 1695
Left = 240
TabIndex = 1
Top = 3120
Width = 4335
Begin VB.CommandButton CommandVoltage
Caption = "查询电压"
Height = 375
Left = 120
TabIndex = 31
Top = 240
Width = 1215
End
Begin VB.CommandButton CommandCurrent
Caption = "查询电流"
Height = 375
Left = 120
TabIndex = 30
Top = 720
Width = 1215
End
Begin VB.CommandButton CommandTorque
Caption = "查询转距"
Height = 375
Left = 120
TabIndex = 29
Top = 1200
Width = 1215
End
Begin VB.TextBox TextT
Height = 375
Left = 1800
TabIndex = 19
Top = 1200
Width = 1695
End
Begin VB.TextBox TextI
Height = 375
Left = 1800
TabIndex = 18
Top = 720
Width = 1695
End
Begin VB.TextBox TextU
Height = 375
Left = 1800
TabIndex = 17
Top = 240
Width = 1695
End
Begin VB.Label LabelT
Caption = "*10N.M"
Height = 255
Left = 3600
TabIndex = 22
Top = 1320
Width = 615
End
Begin VB.Label LabelI
Caption = "*0.1A"
Height = 255
Left = 3600
TabIndex = 21
Top = 840
Width = 495
End
Begin VB.Label LabelU
Caption = "*1V"
Height = 255
Left = 3600
TabIndex = 20
Top = 360
Width = 375
End
End
Begin VB.Frame Frame1
Caption = "控制命令组合设置"
Height = 2055
Left = 240
TabIndex = 0
Top = 840
Width = 4335
Begin VB.TextBox TextDelay
Height = 285
Left = 2400
TabIndex = 14
Top = 1080
Width = 975
End
Begin VB.TextBox TextPara
Height = 285
Left = 2400
TabIndex = 13
Top = 720
Width = 975
End
Begin VB.Label Label5
Caption = "毫秒"
Height = 255
Left = 3480
TabIndex = 15
Top = 1080
Width = 495
End
Begin VB.Label LabelDelay
Caption = "延时"
Height = 255
Left = 1560
TabIndex = 12
Top = 1080
Width = 735
End
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -