⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmcontrolcode.frm

📁 上位机的命令编辑和执行器
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmControlCode 
   Caption         =   "修改控制码"
   ClientHeight    =   4845
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6285
   LinkTopic       =   "Form1"
   ScaleHeight     =   4845
   ScaleWidth      =   6285
   StartUpPosition =   3  'Windows Default
   Begin VB.Frame Frame2 
      Caption         =   "电机控制命令"
      Height          =   1695
      Left            =   360
      TabIndex        =   1
      Top             =   600
      Width           =   2775
      Begin VB.TextBox TextShutDown 
         Height          =   285
         Left            =   1080
         TabIndex        =   7
         Top             =   1200
         Width           =   1215
      End
      Begin VB.TextBox TextNV 
         Height          =   285
         Left            =   1080
         TabIndex        =   6
         Top             =   720
         Width           =   1215
      End
      Begin VB.TextBox TextPV 
         Height          =   285
         Left            =   1080
         TabIndex        =   5
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "停机"
         Height          =   195
         Left            =   480
         TabIndex        =   4
         Top             =   1200
         Width           =   360
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "反转"
         Height          =   195
         Left            =   480
         TabIndex        =   3
         Top             =   720
         Width           =   360
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "正转"
         Height          =   195
         Left            =   480
         TabIndex        =   2
         Top             =   360
         Width           =   360
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "请输入16进制数据"
      Height          =   4455
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   6015
      Begin VB.Frame Frame5 
         Caption         =   "其它调试命令"
         Height          =   1335
         Left            =   3240
         TabIndex        =   12
         Top             =   2280
         Width           =   2535
         Begin VB.TextBox TextSensor 
            Height          =   285
            Left            =   1320
            TabIndex        =   32
            Top             =   960
            Width           =   975
         End
         Begin VB.TextBox TextSingle 
            Height          =   285
            Left            =   1080
            TabIndex        =   31
            Top             =   600
            Width           =   1215
         End
         Begin VB.TextBox TextStep 
            Height          =   285
            Left            =   1080
            TabIndex        =   30
            Top             =   240
            Width           =   1215
         End
         Begin VB.Label Label13 
            AutoSize        =   -1  'True
            Caption         =   "开始转矩传感"
            Height          =   195
            Left            =   120
            TabIndex        =   29
            Top             =   960
            Width           =   1080
         End
         Begin VB.Label Label12 
            AutoSize        =   -1  'True
            Caption         =   "单字节发送"
            Height          =   195
            Left            =   120
            TabIndex        =   28
            Top             =   600
            Width           =   900
         End
         Begin VB.Label Label11 
            AutoSize        =   -1  'True
            Caption         =   "同步命令码"
            Height          =   195
            Left            =   120
            TabIndex        =   27
            Top             =   240
            Width           =   900
         End
      End
      Begin VB.Frame Frame4 
         Caption         =   "系统参数设定"
         Height          =   1695
         Left            =   3240
         TabIndex        =   11
         Top             =   360
         Width           =   2535
         Begin VB.TextBox TextLr 
            Height          =   285
            Left            =   1080
            TabIndex        =   26
            Top             =   1320
            Width           =   1215
         End
         Begin VB.TextBox TextLs 
            Height          =   285
            Left            =   1080
            TabIndex        =   25
            Top             =   960
            Width           =   1215
         End
         Begin VB.TextBox TextRr 
            Height          =   285
            Left            =   1080
            TabIndex        =   24
            Top             =   600
            Width           =   1215
         End
         Begin VB.TextBox TextRs 
            Height          =   285
            Left            =   1080
            TabIndex        =   23
            Top             =   240
            Width           =   1215
         End
         Begin VB.Label Label10 
            AutoSize        =   -1  'True
            Caption         =   "转子电感"
            Height          =   195
            Left            =   240
            TabIndex        =   22
            Top             =   1320
            Width           =   720
         End
         Begin VB.Label Label9 
            AutoSize        =   -1  'True
            Caption         =   "定子电感"
            Height          =   195
            Left            =   240
            TabIndex        =   21
            Top             =   960
            Width           =   720
         End
         Begin VB.Label Label8 
            AutoSize        =   -1  'True
            Caption         =   "转子电阻"
            Height          =   195
            Left            =   240
            TabIndex        =   20
            Top             =   600
            Width           =   720
         End
         Begin VB.Label Label7 
            AutoSize        =   -1  'True
            Caption         =   "定子电阻"
            Height          =   195
            Left            =   240
            TabIndex        =   19
            Top             =   240
            Width           =   720
         End
      End
      Begin VB.Frame Frame3 
         Caption         =   "查询系统运行情况"
         Height          =   1335
         Left            =   240
         TabIndex        =   10
         Top             =   2280
         Width           =   2775
         Begin VB.TextBox TextReqT 
            Height          =   285
            Left            =   1080
            TabIndex        =   18
            Top             =   960
            Width           =   1215
         End
         Begin VB.TextBox TextReqI 
            Height          =   285
            Left            =   1080
            TabIndex        =   17
            Top             =   600
            Width           =   1215
         End
         Begin VB.TextBox TextReqU 
            Height          =   285
            Left            =   1080
            TabIndex        =   16
            Top             =   240
            Width           =   1215
         End
         Begin VB.Label Label6 
            AutoSize        =   -1  'True
            Caption         =   "查询转矩"
            Height          =   195
            Left            =   120
            TabIndex        =   15
            Top             =   960
            Width           =   720
         End
         Begin VB.Label Label5 
            AutoSize        =   -1  'True
            Caption         =   "查询电流"
            Height          =   195
            Left            =   120
            TabIndex        =   14
            Top             =   600
            Width           =   720
         End
         Begin VB.Label Label4 
            AutoSize        =   -1  'True
            Caption         =   "查询电压"
            Height          =   195
            Left            =   120
            TabIndex        =   13
            Top             =   240
            Width           =   720
         End
      End
      Begin VB.CommandButton CommandCancel 
         Caption         =   "取消"
         Height          =   375
         Left            =   3840
         TabIndex        =   9
         Top             =   3720
         Width           =   1095
      End
      Begin VB.CommandButton CommandOK 
         Caption         =   "确定"
         Height          =   375
         Left            =   1200
         TabIndex        =   8
         Top             =   3720
         Width           =   1095
      End
   End
End
Attribute VB_Name = "frmControlCode"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CommandCancel_Click()
    Unload frmControlCode
End Sub

Private Sub CommandOK_Click()
   '获取各项控制码
   CodePV = TextPV.Text
   CodeNV = TextNV.Text
   CodeShutDown = TextShutDown.Text
   CodeRs = TextRs.Text
   CodeRr = TextRr.Text
   CodeLs = TextLs.Text
   CodeLr = TextLr.Text
   CodeReU = TextReqU.Text
   CodeReqI = TextReqI.Text
   CodeReqT = TextReqT.Text
   CodeStep = TextStep.Text
   CodeSingle = TextSingle.Text
   CodeSensor = TextSensor.Text
       InitialCodeMap   '刷新控制码
   frmControlCode.Hide
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -