📄 linkev1000.frm
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form LinkEV1000
Caption = "LinkEV1000"
ClientHeight = 3435
ClientLeft = 60
ClientTop = 450
ClientWidth = 10620
LinkTopic = "Form1"
ScaleHeight = 3435
ScaleWidth = 10620
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cm_s4
Caption = "自由停车"
Height = 375
Left = 8520
TabIndex = 34
Top = 1320
Width = 975
End
Begin VB.Frame Frame1
Caption = "简易操作:"
Height = 1575
Left = 6480
TabIndex = 28
Top = 1800
Width = 3015
Begin VB.OptionButton Option7
Caption = "改闭环转速"
Height = 255
Left = 360
TabIndex = 33
Top = 1200
Width = 1455
End
Begin VB.OptionButton Option6
Caption = "读运行频率"
Height = 255
Left = 360
TabIndex = 32
Top = 960
Width = 1575
End
Begin VB.OptionButton Option5
Caption = "读转速"
Height = 255
Left = 360
TabIndex = 31
Top = 720
Width = 1815
End
Begin VB.OptionButton Option4
Caption = "带起动调整Hz"
Height = 255
Left = 360
TabIndex = 30
Top = 480
Width = 1815
End
Begin VB.OptionButton Option3
Caption = "不带起动调整Hz"
Height = 255
Left = 360
TabIndex = 29
Top = 240
Value = -1 'True
Width = 1695
End
End
Begin VB.CheckBox Check1
Caption = "定时"
Height = 180
Left = 7080
TabIndex = 27
Top = 960
Width = 735
End
Begin VB.Timer Timer2
Enabled = 0 'False
Interval = 200
Left = 9720
Top = 2040
End
Begin VB.TextBox valu
Height = 375
Left = 5040
TabIndex = 26
Top = 2400
Width = 1095
End
Begin VB.CheckBox dd01
Caption = "Check1"
Height = 255
Left = 4560
TabIndex = 25
Top = 600
Value = 1 'Checked
Width = 255
End
Begin VB.CommandButton cm_s3
Caption = "停止"
Height = 375
Left = 7920
TabIndex = 24
Top = 1320
Width = 615
End
Begin VB.CommandButton cm_s2
Caption = "反转"
Height = 375
Left = 7320
TabIndex = 23
Top = 1320
Width = 615
End
Begin VB.CommandButton cm_s1
Caption = "正转"
Height = 375
Left = 6720
TabIndex = 22
Top = 1320
Width = 615
End
Begin VB.TextBox Trev
Height = 375
Left = 1560
TabIndex = 20
Top = 2400
Width = 3015
End
Begin MSCommLib.MSComm com1
Left = 9720
Top = 360
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
CommPort = 3
DTREnable = -1 'True
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 80
Left = 9720
Top = 1200
End
Begin VB.TextBox dat2
Height = 375
Left = 4800
TabIndex = 19
Text = "1800"
Top = 1320
Width = 1695
End
Begin VB.ComboBox cd0
Height = 300
ItemData = "LinkEV1000.frx":0000
Left = 840
List = "LinkEV1000.frx":000D
TabIndex = 17
Text = "读参数"
Top = 1320
Width = 1215
End
Begin VB.TextBox cd2
Height = 375
Left = 3720
TabIndex = 16
Text = "00"
Top = 1320
Width = 735
End
Begin VB.ComboBox cd1
Height = 300
ItemData = "LinkEV1000.frx":0029
Left = 3120
List = "LinkEV1000.frx":005D
TabIndex = 13
Text = "0"
Top = 1320
Width = 615
End
Begin VB.OptionButton Option2
Caption = "Option2"
Height = 375
Left = 240
TabIndex = 12
Top = 1320
Width = 255
End
Begin VB.OptionButton Option1
Caption = "Option1"
Height = 255
Left = 240
TabIndex = 11
Top = 480
Value = -1 'True
Width = 255
End
Begin VB.CommandButton Command1
Caption = "发送命令"
Height = 495
Left = 6720
TabIndex = 10
Top = 360
Width = 1695
End
Begin VB.TextBox dat
Height = 375
Left = 4800
TabIndex = 8
Text = "1800"
Top = 480
Width = 1695
End
Begin VB.TextBox cmd2
Height = 375
Left = 3720
MaxLength = 2
TabIndex = 7
Text = "1"
Top = 480
Width = 615
End
Begin VB.TextBox cmd1
Height = 375
Left = 2760
MaxLength = 2
TabIndex = 5
Text = "0"
Top = 480
Width = 615
End
Begin VB.TextBox cmd0
Height = 375
Left = 1800
MaxLength = 2
TabIndex = 3
Text = "2"
Top = 480
Width = 615
End
Begin VB.TextBox pt
Height = 375
Left = 840
MaxLength = 3
TabIndex = 0
Text = "01"
Top = 480
Width = 615
End
Begin VB.Label Label9
Caption = "接收数据:"
Height = 255
Left = 480
TabIndex = 21
Top = 2520
Width = 975
End
Begin VB.Label Label8
Caption = "F"
Height = 255
Left = 3000
TabIndex = 18
Top = 1365
Width = 135
End
Begin VB.Label Label7
Height = 255
Left = 480
TabIndex = 15
Top = 1920
Width = 7575
End
Begin VB.Label Label6
Caption = "参数项目:"
Height = 255
Left = 2040
TabIndex = 14
Top = 1365
Width = 975
End
Begin VB.Label Label5
Caption = "数据设定(10进制)"
Height = 255
Left = 4800
TabIndex = 9
Top = 240
Width = 1695
End
Begin VB.Label Label4
Caption = "命令索引"
Height = 255
Left = 3600
TabIndex = 6
Top = 240
Width = 735
End
Begin VB.Label Label3
Caption = "辅助索引"
Height = 255
Left = 2640
TabIndex = 4
Top = 240
Width = 735
End
Begin VB.Label Label2
Caption = "命令"
Height = 255
Left = 1920
TabIndex = 2
Top = 240
Width = 495
End
Begin VB.Label Label1
Caption = "部位"
Height = 255
Left = 960
TabIndex = 1
Top = 240
Width = 495
End
End
Attribute VB_Name = "LinkEV1000"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim data_sent(17) As String
Dim com_sent As String
Dim zt As Byte
Dim uz As Byte
Private Sub Check1_Click()
If Timer2.Enabled = False Then
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -