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

📄 pc机控制教学信息.frm

📁 15入15出继电器控制板
💻 FRM
📖 第 1 页 / 共 5 页
字号:
      Width           =   1935
   End
   Begin VB.TextBox labweek 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Left            =   11160
      TabIndex        =   3
      Top             =   1080
      Width           =   615
   End
   Begin VB.TextBox labday 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Left            =   13320
      TabIndex        =   2
      Top             =   600
      Width           =   375
   End
   Begin VB.TextBox labmonth 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Left            =   12720
      TabIndex        =   1
      Top             =   600
      Width           =   375
   End
   Begin VB.TextBox labyear 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   270
      Left            =   11880
      TabIndex        =   0
      Top             =   600
      Width           =   615
   End
   Begin VB.Timer Timer1 
      Interval        =   10
      Left            =   720
      Top             =   1440
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   480
      Top             =   600
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   -1  'True
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "日期:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000A&
      Height          =   255
      Left            =   11280
      TabIndex        =   57
      Top             =   600
      Width           =   615
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "30路继电器运行界面"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   21.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000A&
      Height          =   495
      Left            =   5160
      TabIndex        =   65
      Top             =   720
      Width           =   5055
   End
   Begin VB.Label Label10 
      BackStyle       =   0  'Transparent
      Caption         =   "串口号:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C000&
      Height          =   375
      Index           =   0
      Left            =   5160
      TabIndex        =   64
      Top             =   2205
      Width           =   1455
   End
   Begin VB.Label Label10 
      BackStyle       =   0  'Transparent
      Caption         =   "波特率:"
      BeginProperty Font 
         Name            =   "楷体_GB2312"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C000&
      Height          =   375
      Index           =   2
      Left            =   7800
      TabIndex        =   63
      Top             =   2205
      Width           =   1455
   End
   Begin VB.Label Label8 
      BackStyle       =   0  'Transparent
      Caption         =   "时间:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000A&
      Height          =   255
      Left            =   12240
      TabIndex        =   62
      Top             =   1080
      Width           =   855
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "星期:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000A&
      Height          =   255
      Left            =   10440
      TabIndex        =   61
      Top             =   1080
      Width           =   855
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "日"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000A&
      Height          =   255
      Left            =   13800
      TabIndex        =   60
      Top             =   600
      Width           =   255
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "月"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000A&
      Height          =   255
      Left            =   13080
      TabIndex        =   59
      Top             =   600
      Width           =   255
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "年"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000A&
      Height          =   255
      Left            =   12480
      TabIndex        =   58
      Top             =   600
      Width           =   255
   End
   Begin VB.Image Image1 
      Height          =   24000
      Left            =   -1920
      Picture         =   "pc机控制教学信息.frx":0074
      Top             =   0
      Width           =   38400
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************************************************************
'********************************** 设置串口号部分*************************************
Private Sub Combo1_Click()
If Combo1.Text = "COM1" Then
MSComm1.PortOpen = False
MSComm1.CommPort = 1
MSComm1.PortOpen = True
ElseIf Combo1.Text = "COM2" Then
MSComm1.PortOpen = False
MSComm1.CommPort = 2
MSComm1.PortOpen = True
ElseIf Combo1.Text = "COM3" Then
MSComm1.PortOpen = False
MSComm1.CommPort = 3
MSComm1.PortOpen = True
ElseIf Combo1.Text = "COM4" Then
MSComm1.PortOpen = False
MSComm1.CommPort = 4
MSComm1.PortOpen = True
ElseIf Combo1.Text = "COM5" Then
MSComm1.PortOpen = False
MSComm1.CommPort = 5
MSComm1.PortOpen = True
Else:
MSComm1.PortOpen = False
MSComm1.CommPort = 6
MSComm1.PortOpen = True
End If
End Sub
'**************************************************************************************
'********************************** 设置波特率部分*************************************
Private Sub Combo2_Click()
If Combo2.Text = "1200" Then
MSComm1.Settings = "1200,n,8,1"
ElseIf Combo2.Text = "2400" Then
MSComm1.Settings = "2400,n,8,1"
ElseIf Combo2.Text = "4800" Then
MSComm1.Settings = "4800,n,8,1"
ElseIf Combo2.Text = "9600" Then
MSComm1.Settings = "9600,n,8,1"
Else:
MSComm1.Settings = "19200,n,8,1"
End If
End Sub






Private Sub Label9_Click()

⌨️ 快捷键说明

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