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

📄 frmmain.frm

📁 modbus 协议通讯程序
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "ModBus通讯协议调试器"
   ClientHeight    =   9210
   ClientLeft      =   2730
   ClientTop       =   750
   ClientWidth     =   10590
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   9210
   ScaleWidth      =   10590
   Begin VB.TextBox txtReceiveValue 
      Height          =   1095
      Left            =   4080
      TabIndex        =   32
      Top             =   6360
      Width           =   5655
   End
   Begin VB.TextBox txtSend 
      Height          =   1215
      Left            =   3960
      TabIndex        =   31
      Top             =   4680
      Width           =   5655
   End
   Begin VB.Frame Frame1 
      Caption         =   "查询设置"
      Height          =   1575
      Left            =   120
      TabIndex        =   26
      Top             =   1800
      Width           =   3135
      Begin VB.ComboBox combSlaveAddress 
         Height          =   300
         Left            =   1200
         TabIndex        =   28
         Top             =   480
         Width           =   1815
      End
      Begin VB.ComboBox combFunction 
         Height          =   300
         ItemData        =   "frmMain.frx":0000
         Left            =   1200
         List            =   "frmMain.frx":0002
         TabIndex        =   27
         Top             =   1020
         Width           =   1815
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "设备地址:"
         Height          =   180
         Left            =   240
         TabIndex        =   30
         Top             =   540
         Width           =   810
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "功能代码:"
         Height          =   180
         Left            =   240
         TabIndex        =   29
         Top             =   1080
         Width           =   810
      End
   End
   Begin VB.Frame Frame4 
      Caption         =   "数据段设置"
      Height          =   1695
      Left            =   120
      TabIndex        =   21
      Top             =   3480
      Width           =   3135
      Begin VB.TextBox txtDataAddress 
         Height          =   270
         Left            =   1200
         TabIndex        =   23
         Text            =   "0"
         Top             =   480
         Width           =   1215
      End
      Begin VB.TextBox txtDataLen 
         Height          =   270
         Left            =   1200
         TabIndex        =   22
         Text            =   "7"
         Top             =   960
         Width           =   1215
      End
      Begin VB.Label Label10 
         AutoSize        =   -1  'True
         Caption         =   "数据地址:"
         Height          =   180
         Left            =   240
         TabIndex        =   25
         Top             =   480
         Width           =   810
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         Caption         =   "数据长度:"
         Height          =   180
         Left            =   240
         TabIndex        =   24
         Top             =   960
         Width           =   810
      End
   End
   Begin VB.Frame Frame5 
      Caption         =   "ModBus模式"
      Height          =   735
      Left            =   120
      TabIndex        =   18
      Top             =   840
      Width           =   3135
      Begin VB.OptionButton optRTU 
         Caption         =   "RTU"
         Height          =   180
         Left            =   240
         TabIndex        =   20
         Top             =   360
         Value           =   -1  'True
         Width           =   975
      End
      Begin VB.OptionButton optASC 
         Caption         =   "ASCII"
         Height          =   180
         Left            =   1800
         TabIndex        =   19
         Top             =   360
         Width           =   975
      End
   End
   Begin VB.Timer ReceiveTime 
      Enabled         =   0   'False
      Interval        =   500
      Left            =   5400
      Top             =   8040
   End
   Begin VB.Frame Frame3 
      Caption         =   "通讯口设置"
      Height          =   3135
      Left            =   120
      TabIndex        =   5
      Top             =   5400
      Width           =   3135
      Begin VB.ComboBox combComNumber 
         Height          =   300
         ItemData        =   "frmMain.frx":0004
         Left            =   1440
         List            =   "frmMain.frx":0006
         TabIndex        =   17
         Top             =   240
         Width           =   1455
      End
      Begin VB.ComboBox combComStream 
         Height          =   300
         Left            =   1440
         TabIndex        =   15
         Top             =   2520
         Width           =   1455
      End
      Begin VB.ComboBox combComStopBit 
         Height          =   300
         Left            =   1440
         TabIndex        =   14
         Top             =   2070
         Width           =   1455
      End
      Begin VB.ComboBox combComCheck 
         Height          =   300
         Left            =   1440
         TabIndex        =   13
         Top             =   1605
         Width           =   1455
      End
      Begin VB.ComboBox combComBit 
         Height          =   300
         Left            =   1440
         TabIndex        =   12
         Top             =   1155
         Width           =   1455
      End
      Begin VB.ComboBox combComBps 
         Height          =   300
         Left            =   1440
         TabIndex        =   7
         Top             =   690
         Width           =   1455
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         Caption         =   "COM端口号:"
         Height          =   180
         Left            =   330
         TabIndex        =   16
         Top             =   300
         Width           =   900
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "握手协议:"
         Height          =   180
         Left            =   480
         TabIndex        =   11
         Top             =   2580
         Width           =   810
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "停止位:"
         Height          =   180
         Left            =   600
         TabIndex        =   10
         Top             =   2130
         Width           =   630
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "奇偶校验:"
         Height          =   180
         Left            =   420
         TabIndex        =   9
         Top             =   1665
         Width           =   810
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "数据位:"
         Height          =   180
         Left            =   600
         TabIndex        =   8
         Top             =   1215
         Width           =   630
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "波特率:"
         Height          =   180
         Left            =   600
         TabIndex        =   6
         Top             =   750
         Width           =   630
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "启动查询"
      Height          =   495
      Left            =   7440
      TabIndex        =   4
      Top             =   8040
      Width           =   1455
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   3
      Top             =   8835
      Width           =   10590
      _ExtentX        =   18680
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   1
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame2 

⌨️ 快捷键说明

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