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

📄 frmmbtcp.frm

📁 modbus协议用vb编写
💻 FRM
📖 第 1 页 / 共 4 页
字号:
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "ms"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   1680
         TabIndex        =   44
         Top             =   480
         Width           =   255
      End
   End
   Begin VB.Frame Frame3 
      BackColor       =   &H00C0E0FF&
      Caption         =   "Polling Mode (no wait)"
      Height          =   795
      Left            =   120
      TabIndex        =   36
      Top             =   2340
      Width           =   3195
      Begin VB.CommandButton cmdStartPolling 
         BackColor       =   &H00FFC0C0&
         Caption         =   "Start"
         Height          =   345
         Left            =   240
         Style           =   1  'Graphical
         TabIndex        =   38
         Top             =   300
         Width           =   1095
      End
      Begin VB.CommandButton cmdStopPolling 
         BackColor       =   &H00FFC0C0&
         Caption         =   "Stop"
         Height          =   345
         Left            =   1500
         Style           =   1  'Graphical
         TabIndex        =   37
         Top             =   300
         Width           =   1095
      End
   End
   Begin VB.ListBox lstReceive 
      Height          =   1425
      Left            =   5040
      TabIndex        =   15
      Top             =   5820
      Width           =   5175
   End
   Begin VB.Frame fmeExplanation 
      BackColor       =   &H00C0E0FF&
      Caption         =   "Protocol Description"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2115
      Left            =   3480
      TabIndex        =   12
      Top             =   120
      Width           =   6735
      Begin VB.TextBox txtExplanation 
         BackColor       =   &H00FFFFC0&
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1455
         Left            =   120
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   14
         Top             =   550
         Width           =   6495
      End
      Begin VB.ComboBox cboFunction 
         BackColor       =   &H00FFFFC0&
         Height          =   315
         Left            =   120
         TabIndex        =   13
         Text            =   "Modbus Function"
         Top             =   270
         Width           =   6495
      End
   End
   Begin VB.TextBox txtString 
      Height          =   255
      Left            =   120
      TabIndex        =   8
      Text            =   "1 2 0 0 0 6     1  4  0  0  0  40"
      Top             =   5220
      Width           =   8355
   End
   Begin VB.ListBox lstSend 
      Height          =   1425
      Left            =   120
      TabIndex        =   7
      Top             =   5820
      Width           =   4695
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00C0E0FF&
      Caption         =   "ModbusTCP"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000D&
      Height          =   2130
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3195
      Begin VB.CheckBox chkDataLog 
         BackColor       =   &H00C0E0FF&
         Caption         =   "Data Log"
         Height          =   255
         Left            =   720
         TabIndex        =   35
         ToolTipText     =   "Save data log to ""DataLog.txt"" "
         Top             =   1740
         Width           =   1995
      End
      Begin VB.CommandButton cmdConnect 
         BackColor       =   &H00FFC0C0&
         Caption         =   "Connect"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   400
         Left            =   720
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   1200
         Width           =   975
      End
      Begin VB.CommandButton cmdClose 
         BackColor       =   &H00FFC0C0&
         Caption         =   "Disconnect"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   400
         Left            =   1740
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   1200
         Width           =   1275
      End
      Begin VB.TextBox ServeripText 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   720
         MaxLength       =   30
         TabIndex        =   2
         Text            =   "192.168.255.1"
         Top             =   360
         Width           =   2295
      End
      Begin VB.TextBox ServerPortText 
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   720
         MaxLength       =   5
         TabIndex        =   1
         Text            =   "502"
         Top             =   750
         Width           =   2295
      End
      Begin MSWinsockLib.Winsock Winsock1 
         Left            =   240
         Top             =   1080
         _ExtentX        =   741
         _ExtentY        =   741
         _Version        =   393216
         RemotePort      =   23
      End
      Begin VB.Label ServerIPLabel 
         BackColor       =   &H00C0E0FF&
         Caption         =   "IP :"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   480
         Width           =   1215
      End
      Begin VB.Label ServerPortLabel 
         BackColor       =   &H00C0E0FF&
         Caption         =   "Port :"
         BeginProperty Font 
            Name            =   "MS Sans Serif"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   120
         TabIndex        =   5
         Top             =   840
         Width           =   1455
      End
   End
   Begin VB.Label lbTCPHead 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte5]"
      Height          =   255
      Index           =   5
      Left            =   3120
      TabIndex        =   34
      ToolTipText     =   " Length field (lower byte)=number of bytes following "
      Top             =   4980
      Width           =   495
   End
   Begin VB.Label lbTCPHead 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte4]"
      Height          =   255
      Index           =   4
      Left            =   2520
      TabIndex        =   33
      ToolTipText     =   " Length field (upper byte)=0 "
      Top             =   4980
      Width           =   495
   End
   Begin VB.Label lbTCPHead 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte3]"
      Height          =   255
      Index           =   3
      Left            =   1920
      TabIndex        =   32
      ToolTipText     =   " Protocol identifier=0 "
      Top             =   4980
      Width           =   495
   End
   Begin VB.Label lbTCPHead 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte2]"
      Height          =   255
      Index           =   2
      Left            =   1320
      TabIndex        =   31
      ToolTipText     =   " Protocol identifier=0 "
      Top             =   4980
      Width           =   495
   End
   Begin VB.Label lbTCPHead 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte1]"
      Height          =   255
      Index           =   1
      Left            =   720
      TabIndex        =   30
      ToolTipText     =   " Transaction identifier - copied by server - usually 0 "
      Top             =   4980
      Width           =   495
   End
   Begin VB.Label lbResponse 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte7]"
      Height          =   255
      Index           =   7
      Left            =   9240
      TabIndex        =   29
      Top             =   5580
      Width           =   495
   End
   Begin VB.Label lbResponse 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte6]"
      Height          =   255
      Index           =   6
      Left            =   8640
      TabIndex        =   28
      Top             =   5580
      Width           =   495
   End
   Begin VB.Label lbResponse 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte5]"
      Height          =   255
      Index           =   5
      Left            =   8040
      TabIndex        =   27
      Top             =   5580
      Width           =   495
   End
   Begin VB.Label lbResponse 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte4]"
      Height          =   255
      Index           =   4
      Left            =   7440
      TabIndex        =   26
      Top             =   5580
      Width           =   495
   End
   Begin VB.Label lbResponse 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte3]"
      Height          =   255
      Index           =   3
      Left            =   6840
      TabIndex        =   25
      Top             =   5580
      Width           =   495
   End
   Begin VB.Label lbResponse 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte2]"
      Height          =   255
      Index           =   2
      Left            =   6240
      TabIndex        =   24
      Top             =   5580
      Width           =   495
   End
   Begin VB.Label lbResponse 
      BackStyle       =   0  'Transparent
      Caption         =   "[Byte1]"
      Height          =   255
      Index           =   1
      Left            =   5640
      TabIndex        =   23
      Top             =   5580

⌨️ 快捷键说明

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