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

📄 commessage2.frm

📁 电源控制器的单片机汇编程序和VB源程序
💻 FRM
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form Form1 
   Caption         =   "控制软件"
   ClientHeight    =   1995
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7320
   LinkTopic       =   "Form1"
   ScaleHeight     =   1995
   ScaleWidth      =   7320
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command1 
      Caption         =   "退出"
      Height          =   375
      Left            =   5640
      TabIndex        =   13
      Top             =   1320
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "COM口选择"
      Height          =   615
      Left            =   480
      TabIndex        =   8
      Top             =   1200
      Width           =   3375
      Begin VB.OptionButton Option 
         Caption         =   "COM4"
         Height          =   255
         Index           =   3
         Left            =   2520
         TabIndex        =   12
         Top             =   240
         Width           =   735
      End
      Begin VB.OptionButton Option 
         Caption         =   "COM3"
         Height          =   255
         Index           =   2
         Left            =   1680
         TabIndex        =   11
         Top             =   240
         Width           =   735
      End
      Begin VB.OptionButton Option 
         Caption         =   "COM2"
         Height          =   255
         Index           =   1
         Left            =   960
         TabIndex        =   10
         Top             =   240
         Width           =   735
      End
      Begin VB.OptionButton Option 
         Caption         =   "COM1"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   9
         Top             =   240
         Width           =   735
      End
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   4560
      Top             =   1200
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      CommPort        =   12
      DTREnable       =   -1  'True
      RThreshold      =   1
      BaudRate        =   19200
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备8"
      Height          =   375
      Index           =   7
      Left            =   5520
      TabIndex        =   7
      Top             =   600
      Width           =   1215
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备7"
      Height          =   375
      Index           =   6
      Left            =   3720
      TabIndex        =   6
      Top             =   600
      Width           =   1215
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备6"
      Height          =   375
      Index           =   5
      Left            =   1920
      TabIndex        =   5
      Top             =   600
      Width           =   1215
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备5"
      Height          =   375
      Index           =   4
      Left            =   120
      TabIndex        =   4
      Top             =   600
      Width           =   1215
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备4"
      Height          =   375
      Index           =   3
      Left            =   5520
      TabIndex        =   3
      Top             =   120
      Width           =   1215
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备3"
      Height          =   375
      Index           =   2
      Left            =   3720
      TabIndex        =   2
      Top             =   120
      Width           =   1215
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备2"
      Height          =   375
      Index           =   1
      Left            =   1920
      TabIndex        =   1
      Top             =   120
      Width           =   1215
   End
   Begin VB.CommandButton Command 
      Caption         =   "设备1"
      Height          =   375
      Index           =   0
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   1215
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   7
      Left            =   6840
      Shape           =   3  'Circle
      Top             =   600
      Width           =   375
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   6
      Left            =   5040
      Shape           =   3  'Circle
      Top             =   600
      Width           =   375
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   5
      Left            =   3240
      Shape           =   3  'Circle
      Top             =   600
      Width           =   375
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   4
      Left            =   1440
      Shape           =   3  'Circle
      Top             =   600
      Width           =   375
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   3
      Left            =   6840
      Shape           =   3  'Circle
      Top             =   120
      Width           =   375
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   2
      Left            =   5040
      Shape           =   3  'Circle
      Top             =   120
      Width           =   375
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   1
      Left            =   3240
      Shape           =   3  'Circle
      Top             =   120
      Width           =   375
   End
   Begin VB.Shape Shape 
      BackColor       =   &H00C0FFC0&
      BackStyle       =   1  'Opaque
      BorderColor     =   &H00000000&
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00C0FFC0&
      Height          =   375
      Index           =   0
      Left            =   1440
      Shape           =   3  'Circle
      Top             =   120
      Width           =   375
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim TxData As Byte
Dim OutData(1) As Byte
Dim Buf As Integer
Private Sub Command_Click(Index As Integer)
        TxData = Buf
        If Shape(Index).BackColor = &HC0FFC0 Then      '该数据是否被核取?
            TxData = TxData Or 2 ^ Index '若核取则将改位置的输出变量值设定为

⌨️ 快捷键说明

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