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

📄 read_frm.frm

📁 VB和西门子s300plc串口通讯程序 能实现读写功能
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form READ_FRM 
   Caption         =   "读PLC"
   ClientHeight    =   5745
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7125
   LinkTopic       =   "Form1"
   ScaleHeight     =   5745
   ScaleWidth      =   7125
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame4 
      Caption         =   "读取的值"
      Height          =   1335
      Left            =   3240
      TabIndex        =   21
      Top             =   3720
      Width           =   3735
      Begin VB.ListBox ListView 
         Height          =   960
         ItemData        =   "READ_FRM.frx":0000
         Left            =   120
         List            =   "READ_FRM.frx":0002
         TabIndex        =   31
         Top             =   240
         Width           =   2295
      End
      Begin VB.OptionButton ViewType 
         Caption         =   "二进制"
         Height          =   255
         Index           =   2
         Left            =   2520
         TabIndex        =   30
         Top             =   960
         Width           =   1095
      End
      Begin VB.OptionButton ViewType 
         Caption         =   "十进制"
         Height          =   255
         Index           =   1
         Left            =   2520
         TabIndex        =   29
         Top             =   600
         Width           =   975
      End
      Begin VB.OptionButton ViewType 
         Caption         =   "十六进制"
         Height          =   255
         Index           =   0
         Left            =   2520
         TabIndex        =   28
         Top             =   240
         Width           =   1095
      End
   End
   Begin VB.CommandButton IDCANCEL 
      Caption         =   "CANCEL"
      Height          =   375
      Left            =   3480
      TabIndex        =   20
      Top             =   5280
      Width           =   1575
   End
   Begin VB.Frame Frame3 
      Caption         =   "连接状态"
      Height          =   1695
      Left            =   120
      TabIndex        =   9
      Top             =   120
      Width           =   6855
      Begin VB.TextBox AGSTATUS 
         Height          =   375
         Left            =   1440
         TabIndex        =   19
         Top             =   1200
         Width           =   5055
      End
      Begin VB.TextBox SEGMENTID 
         Height          =   375
         Index           =   1
         Left            =   3720
         TabIndex        =   13
         Top             =   240
         Width           =   855
      End
      Begin VB.TextBox RACKNO 
         Height          =   375
         Index           =   2
         Left            =   1440
         TabIndex        =   12
         Top             =   720
         Width           =   855
      End
      Begin VB.TextBox SLOTNO 
         Height          =   375
         Index           =   3
         Left            =   3720
         TabIndex        =   11
         Top             =   720
         Width           =   855
      End
      Begin VB.TextBox STATIONADR 
         Height          =   375
         Index           =   0
         Left            =   1440
         TabIndex        =   10
         Top             =   240
         Width           =   855
      End
      Begin VB.Label Label1 
         Caption         =   "状态描述"
         Height          =   375
         Left            =   120
         TabIndex        =   18
         Top             =   1200
         Width           =   1095
      End
      Begin VB.Label Label2 
         Caption         =   "Station Adr"
         Height          =   375
         Left            =   120
         TabIndex        =   17
         Top             =   240
         Width           =   1095
      End
      Begin VB.Label Label3 
         Caption         =   "Segment ID"
         Height          =   375
         Left            =   2520
         TabIndex        =   16
         Top             =   240
         Width           =   1455
      End
      Begin VB.Label Label4 
         Caption         =   "Rock No."
         Height          =   375
         Left            =   120
         TabIndex        =   15
         Top             =   720
         Width           =   1455
      End
      Begin VB.Label Label5 
         Caption         =   "Slot No."
         Height          =   375
         Left            =   2520
         TabIndex        =   14
         Top             =   720
         Width           =   1455
      End
   End
   Begin VB.Frame Frame2 
      Caption         =   "请选择要读取数据的位置/数量/类型"
      Height          =   1695
      Left            =   3240
      TabIndex        =   2
      Top             =   1920
      Width           =   3735
      Begin VB.OptionButton DataType 
         Caption         =   "字型"
         Height          =   255
         Index           =   1
         Left            =   2520
         TabIndex        =   33
         Top             =   360
         Width           =   975
      End
      Begin VB.OptionButton DataType 
         Caption         =   "实数型"
         Height          =   255
         Index           =   2
         Left            =   2520
         TabIndex        =   32
         Top             =   680
         Width           =   975
      End
      Begin VB.TextBox DATAAMT 
         Height          =   270
         Index           =   2
         Left            =   1440
         TabIndex        =   27
         Top             =   1200
         Width           =   855
      End
      Begin VB.TextBox DATAADR 
         Height          =   270
         Index           =   1
         Left            =   1440
         TabIndex        =   26
         Top             =   780
         Width           =   855
      End
      Begin VB.TextBox DBID 
         Height          =   270
         Index           =   0
         Left            =   1440
         TabIndex        =   25
         Top             =   360
         Width           =   855
      End
      Begin VB.Label READPAR 
         Caption         =   "字/字节个数"
         Height          =   255
         Index           =   2
         Left            =   240
         TabIndex        =   24
         Top             =   1200
         Width           =   1095
      End
      Begin VB.Label READPAR 
         Caption         =   "字/字节地址"
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   23
         Top             =   780
         Width           =   1095
      End
      Begin VB.Label READPAR 
         Caption         =   "数据块号"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   22
         Top             =   360
         Width           =   975
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "请选择要读取的PLC数据区域"
      Height          =   3135
      Left            =   120
      TabIndex        =   1
      Top             =   1920
      Width           =   3015
      Begin VB.OptionButton DataField 
         Caption         =   "数据块(DB Words)"
         Height          =   255
         Index           =   5
         Left            =   360
         TabIndex        =   8
         Top             =   2760
         Width           =   2535
      End
      Begin VB.OptionButton DataField 
         Caption         =   "计数(Counter Words)"
         Height          =   255
         Index           =   4
         Left            =   360
         TabIndex        =   7
         Top             =   2280
         Width           =   2535
      End
      Begin VB.OptionButton DataField 
         Caption         =   "时间(Timer Words)"
         Height          =   255
         Index           =   3
         Left            =   360
         TabIndex        =   6
         Top             =   1800
         Width           =   2535
      End
      Begin VB.OptionButton DataField 
         Caption         =   "存储区(Flag Bytes)"
         Height          =   255
         Index           =   2
         Left            =   360
         TabIndex        =   5
         Top             =   1320
         Width           =   2535
      End
      Begin VB.OptionButton DataField 
         Caption         =   "输出(Output Bytes)"
         Height          =   255
         Index           =   1
         Left            =   360
         TabIndex        =   4
         Top             =   840
         Width           =   2535
      End
      Begin VB.OptionButton DataField 
         Caption         =   "输入(Input Bytes)"
         Height          =   255
         Index           =   0
         Left            =   360
         TabIndex        =   3
         Top             =   360
         Width           =   2535
      End
   End
   Begin VB.CommandButton IDREAD 
      Caption         =   "READ"
      Height          =   375
      Left            =   1200
      TabIndex        =   0
      Top             =   5280
      Width           =   1695
   End
End
Attribute VB_Name = "READ_FRM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ShowValue()
Dim i, j, k As Long
Dim s As String

⌨️ 快捷键说明

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