📄 frmzong.frm
字号:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form frmMain
BorderStyle = 1 'Fixed Single
Caption = "电机驱动监控程序"
ClientHeight = 6165
ClientLeft = 2355
ClientTop = 1755
ClientWidth = 9900
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6165
ScaleWidth = 9900
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton CommandCode
Caption = "设置控制码"
Height = 375
Left = 2400
TabIndex = 34
Top = 0
Width = 1335
End
Begin VB.Frame Frame5
Caption = "单字节发送测试"
Height = 975
Left = 120
TabIndex = 30
Top = 3720
Width = 3975
Begin VB.TextBox TextSingleSend
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 270
Left = 840
TabIndex = 33
Top = 360
Width = 1215
End
Begin VB.CommandButton CommandSingleStep
Caption = "发送"
Height = 495
Left = 240
TabIndex = 31
Top = 240
Width = 615
End
Begin VB.Label Label1
Caption = "(请输入十进制数据)"
Height = 255
Left = 2040
TabIndex = 32
Top = 360
Width = 1695
End
End
Begin VB.Frame Frame3
Caption = "查询系统参数"
Height = 1455
Left = 120
TabIndex = 10
Top = 2280
Width = 3975
Begin VB.TextBox TextU
Enabled = 0 'False
Height = 375
Left = 1680
TabIndex = 37
Top = 240
Width = 1215
End
Begin VB.TextBox TextT
Enabled = 0 'False
Height = 375
Left = 1680
TabIndex = 18
Top = 960
Width = 1215
End
Begin VB.TextBox TextI
Enabled = 0 'False
Height = 375
Left = 1680
TabIndex = 17
Top = 600
Width = 1215
End
Begin VB.CommandButton CommandTorque
Caption = "查询转矩"
Height = 375
Left = 720
TabIndex = 16
Top = 960
Width = 975
End
Begin VB.CommandButton CommandCurrent
Caption = "查询电流"
Height = 375
Left = 720
TabIndex = 15
Top = 600
Width = 975
End
Begin VB.CommandButton CommandVoltage
Caption = "查询电压"
Height = 375
Left = 720
TabIndex = 14
Top = 240
Width = 975
End
Begin VB.Label LabelU
Caption = "×1V"
Height = 255
Index = 1
Left = 3000
TabIndex = 13
Top = 360
Width = 615
End
Begin VB.Label LabelI
Caption = "×0.1A"
Height = 255
Index = 1
Left = 3000
TabIndex = 12
Top = 720
Width = 855
End
Begin VB.Label LabelT
Caption = "×10N.M"
Height = 255
Index = 1
Left = 3000
TabIndex = 11
Top = 1080
Width = 735
End
End
Begin VB.CommandButton cmdExit
Caption = "退出程序"
Height = 375
Left = 8160
TabIndex = 8
Top = 4080
Width = 975
End
Begin VB.CommandButton cmdCfgSPort
Caption = "配置串口"
Enabled = 0 'False
Height = 375
Left = 480
TabIndex = 7
Top = 0
Width = 1335
End
Begin VB.Timer tmRX
Enabled = 0 'False
Interval = 50
Left = 8400
Top = 0
End
Begin MSCommLib.MSComm Comm
Left = 5160
Top = 1920
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
InputLen = 1
RThreshold = 1
BaudRate = 2400
ParitySetting = 1
InputMode = 1
End
Begin VB.Timer Timer
Left = 5760
Top = 0
End
Begin RichTextLib.RichTextBox RTBCmdLine
Height = 3480
Left = 7080
TabIndex = 0
Top = 480
Width = 2055
_ExtentX = 3625
_ExtentY = 6138
_Version = 393217
ScrollBars = 3
TextRTF = $"frmMain.frx":0000
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
Begin MSComDlg.CommonDialog CommonDialog1
Left = 6360
Top = 0
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.Frame Frame2
Caption = "监视串口窗口"
Height = 4575
Left = 6840
TabIndex = 6
Top = 120
Width = 2535
Begin VB.CommandButton CmdClear
Caption = "清除"
Height = 375
Left = 240
TabIndex = 9
Top = 3960
Width = 975
End
End
Begin VB.Frame Frame1
Caption = "命令编辑窗口"
ClipControls = 0 'False
Height = 4575
Left = 4200
TabIndex = 1
Top = 120
Width = 2535
Begin VB.CommandButton cmdImport
Caption = "输入"
Height = 375
Left = 1320
TabIndex = 4
Top = 3960
Width = 975
End
Begin VB.CommandButton cmdEdit
Caption = "编辑"
Height = 375
Left = 240
TabIndex = 3
Top = 3960
Width = 975
End
Begin RichTextLib.RichTextBox RTBCode
Height = 3480
Left = 240
TabIndex = 5
Top = 360
Width = 2055
_ExtentX = 3625
_ExtentY = 6138
_Version = 393217
ScrollBars = 3
TextRTF = $"frmMain.frx":008F
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.ListBox LstCode
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3480
Left = 240
TabIndex = 2
Top = 360
Width = 2055
End
End
Begin VB.Frame Frame4
Caption = "控制命令组合设置"
Height = 1815
Left = 120
TabIndex = 19
Top = 480
Width = 3975
Begin VB.CommandButton CommandAddCalcel
Caption = "取消添加"
Height = 495
Left = 1440
TabIndex = 36
Top = 1200
Width = 1095
End
Begin VB.CommandButton CommandAdd
Caption = "添加命令"
Height = 495
Left = 120
TabIndex = 26
Top = 360
Width = 1215
End
Begin VB.CommandButton CommandRun
Caption = "运行"
Height = 495
Left = 2640
TabIndex = 25
Top = 1200
Width = 1215
End
Begin VB.CommandButton CommandFinish
Caption = "完成"
Height = 495
Left = 120
TabIndex = 24
Top = 1200
Width = 1215
End
Begin VB.ComboBox ComboCmd
CausesValidation= 0 'False
Height = 300
ItemData = "frmMain.frx":0129
Left = 2280
List = "frmMain.frx":012B
TabIndex = 23
Top = 360
Width = 1575
End
Begin VB.TextBox TextPara
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 270
Left = 2280
TabIndex = 22
Top = 600
Width = 975
End
Begin VB.TextBox TextDelay
BeginProperty DataFormat
Type = 1
Format = "0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 1
EndProperty
Height = 270
Left = 2280
TabIndex = 21
Top = 840
Width = 975
End
Begin VB.CommandButton CommandAddOk
Caption = "添加完成"
Height = 495
Left = 120
TabIndex = 20
Top = 720
Width = 1215
End
Begin VB.Label Labelms
Caption = "毫秒"
Height = 255
Left = 3360
TabIndex = 35
Top = 840
Width = 375
End
Begin VB.Label LabelCmd
Caption = "控制命令"
Height = 175
Left = 1440
TabIndex = 29
Top = 360
Width = 735
End
Begin VB.Label LabelPara
Caption = "控制参数"
Height = 200
Left = 1440
TabIndex = 28
Top = 600
Width = 735
End
Begin VB.Label LabelDelay
Caption = "延时"
Height = 255
Left = 1440
TabIndex = 27
Top = 840
Width = 735
End
End
Begin VB.Menu MNU_File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -