📄 main.frm
字号:
VERSION 5.00
Begin VB.Form Main
BorderStyle = 3 'Fixed Dialog
Caption = "VB DeskWinNC Control Simple Demo"
ClientHeight = 7905
ClientLeft = 30
ClientTop = 255
ClientWidth = 8955
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7905
ScaleWidth = 8955
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 500
Left = 4320
Top = 7320
End
Begin VB.CommandButton Command5
Caption = "清空显示内容"
Height = 300
Left = 7560
TabIndex = 50
Top = 5280
Width = 1215
End
Begin VB.CommandButton btnFeedMinus
Caption = "Feed --"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5160
TabIndex = 49
Top = 5280
Width = 1215
End
Begin VB.Timer Timer1
Left = 3720
Top = 7320
End
Begin VB.TextBox txtTime
Height = 270
Left = 6120
TabIndex = 48
Text = "200"
Top = 7320
Width = 495
End
Begin VB.CommandButton cmdStop
Caption = "暂停"
Enabled = 0 'False
Height = 300
Left = 7800
TabIndex = 45
Top = 7320
Width = 975
End
Begin VB.CommandButton cmdStart
Caption = "开始"
Height = 300
Left = 6840
TabIndex = 44
Top = 7320
Width = 975
End
Begin VB.TextBox txtNote
Height = 1455
Left = 6600
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 43
Top = 5760
Width = 2175
End
Begin VB.ListBox lstCategory
Height = 4560
ItemData = "Main.frx":0000
Left = 7680
List = "Main.frx":0007
TabIndex = 39
Top = 480
Width = 975
End
Begin VB.ListBox lstSubCategory
Height = 4560
Left = 6480
TabIndex = 38
Top = 480
Width = 1095
End
Begin VB.CommandButton btnOutputs
Caption = "Output"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5160
TabIndex = 37
Top = 6000
Width = 1215
End
Begin VB.CommandButton btnFeedPlus
Caption = "Feed ++"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5160
TabIndex = 36
Top = 4560
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "RPM OFF"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 5160
TabIndex = 35
Top = 3720
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "Chase Enc"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3240
TabIndex = 32
Top = 1440
Width = 1455
End
Begin VB.CheckBox chkMode
Caption = "2nd Gen Control"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4320
TabIndex = 31
Top = 240
Value = 1 'Checked
Width = 1935
End
Begin VB.CommandButton btnNegA
Caption = "Jog A-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4800
TabIndex = 30
Top = 3000
Width = 1335
End
Begin VB.CommandButton btnPosA
Caption = "Jog A+"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4800
TabIndex = 29
Top = 2400
Width = 1335
End
Begin VB.TextBox txtGcode
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2160
TabIndex = 26
Text = "G1 X5 Y5 Z10 F1000.0"
Top = 1920
Width = 3735
End
Begin VB.CommandButton Command2
Caption = "Execute GCode"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 25
Top = 1920
Width = 1815
End
Begin VB.CommandButton Command1
Caption = "Read Inputs"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 4800
TabIndex = 24
Top = 1440
Width = 1332
End
Begin VB.TextBox txtDist
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 288
Left = 2400
TabIndex = 22
Text = "50"
Top = 1440
Width = 612
End
Begin VB.TextBox txtAccel
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 288
Left = 4560
TabIndex = 20
Text = "2000"
Top = 720
Width = 612
End
Begin VB.TextBox txtMaxSPS
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 288
Left = 3600
TabIndex = 19
Text = "650"
Top = 720
Width = 612
End
Begin VB.TextBox txtStartVel
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 288
Left = 2640
TabIndex = 18
Text = "200"
Top = 720
Width = 612
End
Begin VB.TextBox txtScale
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 288
Left = 5520
TabIndex = 17
Text = "1"
Top = 720
Width = 612
End
Begin VB.TextBox txtPort
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 288
Left = 3480
TabIndex = 16
Text = "4"
Top = 240
Width = 612
End
Begin VB.CommandButton btnNegX
Caption = "Jog X-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3360
TabIndex = 8
Top = 3000
Width = 1335
End
Begin VB.CommandButton btnPosX
Caption = "Jog X+"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 3360
TabIndex = 7
Top = 2400
Width = 1335
End
Begin VB.CommandButton btnNegY
Caption = "Jog Y-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1800
TabIndex = 6
Top = 3000
Width = 1455
End
Begin VB.CommandButton btnPosY
Caption = "Jog Y+"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1800
TabIndex = 5
Top = 2400
Width = 1455
End
Begin VB.CommandButton btnDown
Caption = "Jog Z-"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 4
Top = 3000
Width = 1455
End
Begin VB.CommandButton btnUp
Caption = "Jog Z+"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
TabIndex = 3
Top = 2400
Width = 1455
End
Begin VB.CommandButton btnSetAccel
Caption = "Set Acceleration"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 240
TabIndex = 1
Top = 720
Width = 1932
End
Begin VB.CommandButton btnInit
Caption = "Initialize Controller"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -