frmsysgl.frm

来自「VB与欧姆龙PLC通过RS-232串口通讯 的上位机程序」· FRM 代码 · 共 618 行 · 第 1/2 页

FRM
618
字号
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "MSCOMM32.OCX"
Begin VB.Form frmsysgl 
   Caption         =   "焦作中州炭素有限公司自动配料系统管理"
   ClientHeight    =   3450
   ClientLeft      =   165
   ClientTop       =   615
   ClientWidth     =   5070
   ControlBox      =   0   'False
   Icon            =   "frmsysgl.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3450
   ScaleWidth      =   5070
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame framdel 
      Caption         =   "数据删除"
      Height          =   1575
      Left            =   20
      TabIndex        =   3
      Top             =   0
      Width           =   5055
      Begin VB.ComboBox cbtype 
         BackColor       =   &H00F4FFF2&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   360
         Left            =   450
         Style           =   2  'Dropdown List
         TabIndex        =   17
         Top             =   240
         Width           =   2000
      End
      Begin VB.CommandButton cmdgb 
         BackColor       =   &H0080C0FF&
         Caption         =   "关闭返回(&G)"
         Height          =   420
         Left            =   3360
         Style           =   1  'Graphical
         TabIndex        =   7
         Top             =   880
         Width           =   1215
      End
      Begin VB.CommandButton cmddel 
         BackColor       =   &H0080C0FF&
         Caption         =   "数据删除(&D)"
         Height          =   420
         Left            =   3360
         Style           =   1  'Graphical
         TabIndex        =   6
         Top             =   460
         Width           =   1215
      End
      Begin VB.ComboBox cmbd 
         BackColor       =   &H00F4FFF2&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   360
         Left            =   840
         Style           =   2  'Dropdown List
         TabIndex        =   5
         Top             =   1125
         Width           =   1600
      End
      Begin VB.ComboBox cmbc 
         BackColor       =   &H00F4FFF2&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   360
         Left            =   840
         Style           =   2  'Dropdown List
         TabIndex        =   4
         Top             =   645
         Width           =   1600
      End
      Begin VB.Label lbld 
         BackStyle       =   0  'Transparent
         Caption         =   "到"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   375
         Left            =   480
         TabIndex        =   9
         Top             =   1155
         Width           =   375
      End
      Begin VB.Label lblc 
         BackStyle       =   0  'Transparent
         Caption         =   "从"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   375
         Left            =   480
         TabIndex        =   8
         Top             =   720
         Width           =   375
      End
   End
   Begin VB.Frame frmbk 
      Caption         =   "通讯参数设置"
      Height          =   1790
      Left            =   20
      TabIndex        =   0
      Top             =   1650
      Width           =   5055
      Begin VB.CheckBox chktx 
         ForeColor       =   &H00000000&
         Height          =   255
         Left            =   3840
         TabIndex        =   13
         Top             =   580
         Width           =   255
      End
      Begin VB.CommandButton cmdtx 
         BackColor       =   &H0080C0FF&
         Caption         =   "通讯设置(&T)"
         Height          =   495
         Left            =   480
         Style           =   1  'Graphical
         TabIndex        =   12
         Top             =   1080
         Width           =   1215
      End
      Begin VB.TextBox txttx 
         Alignment       =   2  'Center
         BackColor       =   &H00F4FFF2&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   405
         Left            =   1560
         TabIndex        =   11
         Top             =   500
         Width           =   1815
      End
      Begin VB.ComboBox cmdport 
         BackColor       =   &H00F4FFF2&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   405
         Left            =   240
         Style           =   2  'Dropdown List
         TabIndex        =   10
         Top             =   500
         Width           =   1215
      End
      Begin VB.CommandButton cmdreset 
         BackColor       =   &H0080C0FF&
         Caption         =   "PLC复位(&F)"
         Height          =   495
         Left            =   1695
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   1080
         Width           =   1215
      End
      Begin VB.CommandButton cmdexit 
         BackColor       =   &H0080C0FF&
         Caption         =   "关闭返回(&R)"
         Height          =   495
         Left            =   2925
         Style           =   1  'Graphical
         TabIndex        =   1
         Top             =   1080
         Width           =   1215
      End
      Begin VB.Label lbldefault 
         Alignment       =   2  'Center
         BackStyle       =   0  'Transparent
         Caption         =   "设为默认"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Left            =   3360
         TabIndex        =   16
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label lblbtl 
         Alignment       =   2  'Center
         BackStyle       =   0  'Transparent
         Caption         =   "波特率"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Left            =   2040
         TabIndex        =   15
         Top             =   240
         Width           =   855
      End
      Begin VB.Label lbldkh 
         Alignment       =   2  'Center
         BackStyle       =   0  'Transparent
         Caption         =   "端口号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00800000&
         Height          =   255
         Left            =   480
         TabIndex        =   14
         Top             =   240
         Width           =   855
      End
   End
   Begin MSCommLib.MSComm comm 
      Left            =   0
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   -1  'True
   End
   Begin VB.Timer Timersend 
      Left            =   0
      Top             =   840
   End
End
Attribute VB_Name = "frmsysgl"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim ret As Integer, reset As String, pl As String
Dim time_on As Boolean
Dim stopflat As Boolean
Dim sendflat As Boolean
Dim exitflat As Boolean
Dim rtn As Double

⌨️ 快捷键说明

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