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

📄 main.frm

📁 omron 2d code reader
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{648A5603-2C6E-101B-82B6-000000000014}#1.1#0"; "Mscomm32.ocx"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Object = "{60CC5D62-2D08-11D0-BDBE-00AA00575603}#1.0#0"; "SysTray.ocx"
Begin VB.Form MAIN 
   BackColor       =   &H8000000A&
   Caption         =   "2D Code Reader "
   ClientHeight    =   6495
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   8505
   Icon            =   "MAIN.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   6495
   ScaleWidth      =   8505
   StartUpPosition =   3  '鈞岥銥徣
   Begin VB.CommandButton dcButton2 
      BackColor       =   &H00008000&
      Caption         =   "EXIT"
      Height          =   735
      Left            =   7320
      Style           =   1  'Graphical
      TabIndex        =   30
      Top             =   240
      Width           =   1095
   End
   Begin VB.Frame Frame4 
      Caption         =   "Data list"
      Height          =   2535
      Left            =   0
      TabIndex        =   19
      Top             =   3480
      Width           =   8415
      Begin VB.CommandButton dcButton1 
         BackColor       =   &H00C0FFC0&
         Caption         =   "History record"
         Height          =   495
         Left            =   7200
         Style           =   1  'Graphical
         TabIndex        =   35
         Top             =   1560
         Width           =   1095
      End
      Begin VB.CommandButton ListClean 
         BackColor       =   &H00C0FFC0&
         Caption         =   "List clean"
         Height          =   495
         Left            =   7200
         Style           =   1  'Graphical
         TabIndex        =   34
         Top             =   360
         Width           =   1095
      End
      Begin VB.ListBox List1 
         BackColor       =   &H80000018&
         ForeColor       =   &H00000000&
         Height          =   1680
         ItemData        =   "MAIN.frx":1232
         Left            =   120
         List            =   "MAIN.frx":1234
         TabIndex        =   20
         Top             =   480
         Width           =   6735
      End
      Begin VB.Label Label2 
         BackColor       =   &H00008000&
         BorderStyle     =   1  'Fixed Single
         Caption         =   " No.#"
         ForeColor       =   &H8000000E&
         Height          =   255
         Left            =   120
         TabIndex        =   23
         Top             =   240
         Width           =   735
      End
      Begin VB.Label Label6 
         BackColor       =   &H00008000&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "       Record date"
         ForeColor       =   &H8000000E&
         Height          =   255
         Left            =   4560
         TabIndex        =   22
         Top             =   240
         Width           =   2295
      End
      Begin VB.Label Label8 
         BackColor       =   &H00008000&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "               2D code data"
         ForeColor       =   &H8000000E&
         Height          =   255
         Left            =   840
         TabIndex        =   21
         Top             =   240
         Width           =   3735
      End
   End
   Begin MSComDlg.CommonDialog CommonDialog1 
      Left            =   8040
      Top             =   720
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.Frame Operation 
      Caption         =   "Operation "
      Height          =   2055
      Left            =   0
      TabIndex        =   17
      Top             =   1320
      Width           =   3735
      Begin VB.CommandButton SystemSet 
         BackColor       =   &H00E4D1D2&
         Caption         =   "System set"
         Height          =   495
         Left            =   1080
         Style           =   1  'Graphical
         TabIndex        =   26
         Top             =   1440
         Width           =   2055
      End
      Begin VB.CommandButton dcButton5 
         BackColor       =   &H00E4D1D2&
         Caption         =   "Perform teaching"
         Height          =   495
         Left            =   1080
         Style           =   1  'Graphical
         TabIndex        =   25
         Top             =   840
         Width           =   2055
      End
      Begin VB.Timer Timer3 
         Enabled         =   0   'False
         Interval        =   100
         Left            =   240
         Top             =   1200
      End
      Begin VB.CommandButton ReadOne 
         BackColor       =   &H00E4D1D2&
         Caption         =   "Read data(one)"
         Height          =   495
         Left            =   1080
         Style           =   1  'Graphical
         TabIndex        =   24
         Top             =   240
         Width           =   2055
      End
      Begin VB.Image Image1 
         Height          =   480
         Left            =   600
         Picture         =   "MAIN.frx":1236
         Top             =   240
         Width           =   480
      End
   End
   Begin VB.Frame Frame3 
      Caption         =   "Comm."
      BeginProperty Font 
         Name            =   "SimSun"
         Size            =   9.75
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   975
      Left            =   3960
      TabIndex        =   4
      Top             =   120
      Width           =   3255
      Begin VB.CommandButton dcButton4 
         BackColor       =   &H00FF8080&
         Caption         =   "COM        SET"
         Height          =   615
         Left            =   1680
         MaskColor       =   &H00FF8080&
         Picture         =   "MAIN.frx":1540
         Style           =   1  'Graphical
         TabIndex        =   29
         Top             =   240
         Width           =   1455
      End
      Begin VB.CommandButton CommOff 
         BackColor       =   &H00E4D1D2&
         Height          =   600
         Left            =   960
         Picture         =   "MAIN.frx":184A
         Style           =   1  'Graphical
         TabIndex        =   28
         Top             =   240
         Width           =   615
      End
      Begin VB.CommandButton CommOn 
         BackColor       =   &H00E4D1D2&
         Height          =   615
         Left            =   240
         MaskColor       =   &H00FFFFFF&
         Picture         =   "MAIN.frx":1B54
         Style           =   1  'Graphical
         TabIndex        =   27
         Top             =   240
         Width           =   615
      End
   End
   Begin MSComctlLib.StatusBar StatusBar1 
      Align           =   2  'Align Bottom
      Height          =   375
      Left            =   0
      TabIndex        =   3
      Top             =   6120
      Width           =   8505
      _ExtentX        =   15002
      _ExtentY        =   661
      _Version        =   393216
      BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628} 
         NumPanels       =   4
         BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            AutoSize        =   1
            Object.Width           =   6677
            MinWidth        =   6174
            Picture         =   "MAIN.frx":1E5E
            Text            =   "Communicate stopping"
            TextSave        =   "Communicate stopping"
         EndProperty
         BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   3528
            MinWidth        =   3528
         EndProperty
         BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   2117
            MinWidth        =   2117
         EndProperty
         BeginProperty Panel4 {8E3867AB-8586-11D1-B16A-00C0F0283628} 
            Object.Width           =   2117
            MinWidth        =   2117
         EndProperty
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "俵俽 柧挬"
         Size            =   9
         Charset         =   128
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.Frame SytemState 
      BackColor       =   &H80000013&
      Caption         =   "System state area"
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "SimSun"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2175
      Left            =   3960
      TabIndex        =   2
      Top             =   1200
      Width           =   4455
      Begin VB.CommandButton BankChange 
         BackColor       =   &H00E4D1D2&
         Caption         =   "CHANGE"
         Height          =   375
         Left            =   3480
         Style           =   1  'Graphical
         TabIndex        =   33
         Top             =   1320
         Width           =   855
      End
      Begin VB.CommandButton DMChange 
         BackColor       =   &H00E4D1D2&
         Caption         =   "CHANGE"
         Height          =   375
         Left            =   3480
         Style           =   1  'Graphical
         TabIndex        =   32
         Top             =   840
         Width           =   855
      End
      Begin VB.CommandButton LSChange 
         BackColor       =   &H00E4D1D2&
         Caption         =   "CHANGE"
         Height          =   375
         Left            =   3480
         Style           =   1  'Graphical
         TabIndex        =   31
         Top             =   360
         Width           =   855
      End
      Begin VB.ComboBox Combo1 
         BackColor       =   &H80000018&
         Height          =   300
         Left            =   2760
         TabIndex        =   18
         Text            =   "0"
         Top             =   1380
         Width           =   630
      End
      Begin VB.Timer Timer2 
         Enabled         =   0   'False
         Interval        =   100
         Left            =   3360
         Top             =   0
      End
      Begin VB.Timer Timer1 
         Enabled         =   0   'False
         Interval        =   50
         Left            =   2640
         Top             =   0
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         Caption         =   "Bank"
         Height          =   180
         Left            =   2280
         TabIndex        =   16
         Top             =   1440
         Width           =   360
      End
      Begin VB.Label BankNo 
         BackColor       =   &H8000000A&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "9"
         Height          =   255
         Left            =   1800
         TabIndex        =   15
         Top             =   1440
         Width           =   375
      End
      Begin VB.Label Label9 
         Caption         =   "Reading condition No.:"
         Height          =   420
         Left            =   240
         TabIndex        =   14
         Top             =   1320
         Width           =   1290
      End
      Begin VB.Label Live 
         BorderStyle     =   1  'Fixed Single
         Caption         =   "LIVE"
         Enabled         =   0   'False
         Height          =   255
         Left            =   2880
         TabIndex        =   13
         Top             =   960
         Width           =   495
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "/"
         BeginProperty Font 
            Name            =   "SimSun"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Left            =   2520
         TabIndex        =   12
         Top             =   960
         Width           =   120
      End
      Begin VB.Label Skill 
         BackColor       =   &H8000000A&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "SKILL"
         Enabled         =   0   'False
         Height          =   255
         Left            =   1800
         TabIndex        =   11
         Top             =   960
         Width           =   495
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "Display mode:"
         Height          =   180
         Left            =   240
         TabIndex        =   10
         Top             =   960
         Width           =   1170
      End
      Begin VB.Label LSOff 
         BorderStyle     =   1  'Fixed Single
         Caption         =   "OFF"
         Enabled         =   0   'False
         Height          =   255
         Left            =   2640
         TabIndex        =   9
         Top             =   480
         Width           =   375
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "/"
         BeginProperty Font 
            Name            =   "SimSun"
            Size            =   12
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   240
         Left            =   2280
         TabIndex        =   8
         Top             =   480
         Width           =   120
      End
      Begin VB.Label LSOn 
         BackColor       =   &H8000000A&
         BorderStyle     =   1  'Fixed Single
         Caption         =   "ON"
         Enabled         =   0   'False
         Height          =   255
         Left            =   1800
         TabIndex        =   7
         Top             =   480
         Width           =   375
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "Light state:"
         Height          =   180
         Left            =   240
         TabIndex        =   6
         Top             =   480
         Width           =   1080
      End
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H8000000A&
      Height          =   975
      Left            =   360
      TabIndex        =   0
      Top             =   120
      Width           =   3135
      Begin VB.Label Data1 
         BackColor       =   &H80000007&
         BeginProperty Font 
            Name            =   "SimSun"
            Size            =   21.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   495
         Left            =   120
         TabIndex        =   5
         Top             =   360
         Width           =   2895
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "2D code data"
         BeginProperty Font 
            Name            =   "SimSun"
            Size            =   9.75
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   195
         Left            =   120
         TabIndex        =   1
         Top             =   0
         Width           =   1440
      End
   End
   Begin MSCommLib.MSComm MSComm1 
      Left            =   3120
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      _Version        =   393216
      DTREnable       =   -1  'True
   End
   Begin SysTrayCtl.cSysTray cSysTray1 
      Left            =   8040
      Top             =   0
      _ExtentX        =   900
      _ExtentY        =   900
      InTray          =   0   'False
      TrayIcon        =   "MAIN.frx":30E0
      TrayTip         =   "OMRON 2D code reader "
   End
End
Attribute VB_Name = "MAIN"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Dim ReadData As String
Dim ReadNumber As Integer
Dim OK As Integer
Dim NG As Integer
Dim No As Integer


Private Sub BankChange_Click()
On Error GoTo Errhandler
Timer2.Enabled = False
 MSComm1.InBufferCount = 0
   Call Write_db("SN", Combo1)
   instr1 = MSComm1.Input
  instr1 = Mid(instr1, 1, 2)

⌨️ 快捷键说明

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