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

📄 status.frm

📁 西门子 通信程序 vb与西门子PLc通讯程序源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form STATUS_FRM 
   Caption         =   "STATUS"
   ClientHeight    =   5295
   ClientLeft      =   2775
   ClientTop       =   1245
   ClientWidth     =   4680
   LinkTopic       =   "STATUS"
   ScaleHeight     =   5295
   ScaleWidth      =   4680
   Begin VB.Frame Frame2 
      Height          =   2535
      Left            =   720
      TabIndex        =   7
      Top             =   1800
      Width           =   2415
      Begin VB.TextBox STATIONADR 
         Height          =   285
         Left            =   1440
         TabIndex        =   11
         Top             =   480
         Width           =   735
      End
      Begin VB.TextBox RACKNO 
         Height          =   285
         Left            =   1440
         TabIndex        =   10
         Top             =   1440
         Width           =   735
      End
      Begin VB.TextBox SEGMENTID 
         Height          =   285
         Left            =   1440
         TabIndex        =   9
         Top             =   960
         Width           =   735
      End
      Begin VB.TextBox SLOTNO 
         Height          =   285
         Left            =   1440
         TabIndex        =   8
         Top             =   1920
         Width           =   735
      End
      Begin VB.Label Label1 
         Caption         =   "station adr"
         Height          =   255
         Left            =   240
         TabIndex        =   15
         Top             =   480
         Width           =   975
      End
      Begin VB.Label Label2 
         Caption         =   "segment id"
         Height          =   255
         Left            =   120
         TabIndex        =   14
         Top             =   960
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "rack no"
         Height          =   255
         Left            =   120
         TabIndex        =   13
         Top             =   1440
         Width           =   975
      End
      Begin VB.Label Label4 
         Caption         =   "slot no"
         Height          =   255
         Left            =   120
         TabIndex        =   12
         Top             =   1920
         Width           =   855
      End
   End
   Begin VB.OptionButton VERB 
      Caption         =   "1"
      Height          =   255
      Index           =   0
      Left            =   840
      TabIndex        =   5
      Top             =   360
      Width           =   495
   End
   Begin VB.OptionButton VERB 
      Caption         =   "2"
      Height          =   255
      Index           =   1
      Left            =   1320
      TabIndex        =   4
      Top             =   360
      Width           =   495
   End
   Begin VB.OptionButton VERB 
      Caption         =   "3"
      Height          =   255
      Index           =   2
      Left            =   1920
      TabIndex        =   3
      Top             =   360
      Width           =   495
   End
   Begin VB.OptionButton VERB 
      Caption         =   "4"
      Height          =   255
      Index           =   3
      Left            =   2520
      TabIndex        =   2
      Top             =   360
      Width           =   495
   End
   Begin VB.CommandButton IDCANCEL 
      Caption         =   "zur點k/cancel"
      Height          =   375
      Left            =   720
      TabIndex        =   1
      Top             =   4680
      Width           =   1335
   End
   Begin VB.TextBox IDSTATUS 
      Height          =   375
      Left            =   720
      TabIndex        =   0
      Top             =   1200
      Width           =   3015
   End
   Begin VB.Frame Frame1 
      BackColor       =   &H00C0C0C0&
      Caption         =   "Verbindung/connection"
      Height          =   615
      Left            =   720
      TabIndex        =   6
      Top             =   120
      Width           =   2415
   End
   Begin VB.Label Label5 
      Caption         =   "status/state"
      Height          =   255
      Left            =   720
      TabIndex        =   16
      Top             =   960
      Width           =   975
   End
End
Attribute VB_Name = "STATUS_FRM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
STATIONADR.Text = plcadr(VerbIdx).adr
SEGMENTID.Text = plcadr(VerbIdx).SEGMENTID
RACKNO.Text = plcadr(VerbIdx).RACKNO
SLOTNO.Text = plcadr(VerbIdx).SLOTNO

VERB(VerbIdx).value = True
End Sub
Private Sub IDCANCEL_Click()
STATUS_FRM.Visible = False
End Sub

Private Sub VERB_Click(Index As Integer)
VerbIdx = Index

STATIONADR.Text = plcadr(VerbIdx).adr
SEGMENTID.Text = plcadr(VerbIdx).SEGMENTID
RACKNO.Text = plcadr(VerbIdx).RACKNO
SLOTNO.Text = plcadr(VerbIdx).SLOTNO

res = new_ss(VerbIdx + 1)

If (res = 0) Then
    IDSTATUS.Text = "ok"
    Else
    ErrorText = "                                                                          "
    res = error_message(res, ErrorText)
    IDSTATUS.Text = ErrorText
End If
End Sub


⌨️ 快捷键说明

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