📄 info.frm
字号:
VERSION 5.00
Begin VB.Form INFO_FRM
Caption = "INFO"
ClientHeight = 6075
ClientLeft = 1875
ClientTop = 1470
ClientWidth = 9765
LinkTopic = "Form1"
ScaleHeight = 6075
ScaleWidth = 9765
Begin VB.CommandButton Command4
Caption = "强制输出"
Height = 615
Left = 7320
TabIndex = 13
Top = 4320
Width = 1575
End
Begin VB.CommandButton Command3
Caption = "原位查询"
Height = 495
Left = 7320
TabIndex = 12
Top = 3360
Width = 1575
End
Begin VB.CommandButton Command2
Caption = "输入检查"
Height = 495
Left = 7200
TabIndex = 11
Top = 2520
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "入出口扫描"
Height = 495
Left = 7200
TabIndex = 10
Top = 960
Width = 1575
End
Begin VB.CommandButton DB_READ_Button
Caption = "DBD_READ"
Height = 495
Left = 7200
TabIndex = 9
Top = 1680
Width = 1455
End
Begin VB.TextBox AGZUSTAND
Height = 375
Left = 480
TabIndex = 8
Top = 1800
Width = 975
End
Begin VB.TextBox AGTYP
Height = 375
Left = 480
TabIndex = 7
Top = 1200
Width = 2415
End
Begin VB.CommandButton IDCANCEL
Caption = "zur點k/cancel"
Height = 375
Left = 600
TabIndex = 6
Top = 2880
Width = 1335
End
Begin VB.CommandButton IDOK
Caption = "lesen/read"
Height = 375
Left = 2280
TabIndex = 5
Top = 2880
Width = 1215
End
Begin VB.OptionButton VERB
Caption = "4"
Height = 255
Index = 3
Left = 2280
TabIndex = 3
Top = 480
Width = 495
End
Begin VB.OptionButton VERB
Caption = "3"
Height = 255
Index = 2
Left = 1680
TabIndex = 2
Top = 480
Width = 495
End
Begin VB.OptionButton VERB
Caption = "2"
Height = 255
Index = 1
Left = 1080
TabIndex = 1
Top = 480
Width = 495
End
Begin VB.OptionButton VERB
Caption = "1"
Height = 255
Index = 0
Left = 600
TabIndex = 0
Top = 480
Width = 495
End
Begin VB.Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Verbindung/connection"
Height = 615
Left = 480
TabIndex = 4
Top = 240
Width = 2415
End
End
Attribute VB_Name = "INFO_FRM"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
DBD_WRITE.Show 1, Me
End Sub
Private Sub Command2_Click()
INPUT_SHAPE.Show 1, Me
End Sub
Private Sub Command3_Click()
flow_chat.Show 1, Me
End Sub
Private Sub Command4_Click()
force_output.Show 1, Me
End Sub
Private Sub DB_READ_Button_Click()
DBD_READ_Frame.Show 1, Me
End Sub
Private Sub Form_Activate()
AGTYP.Text = " "
VERB(VerbIdx).value = True
AGZUSTAND.Text = " "
End Sub
Private Sub IDCANCEL_Click()
INFO_FRM.Visible = False
End Sub
Private Sub IDOK_Click()
Static AGINFO As infotyp
Static value As Byte
res = new_ss(VerbIdx + 1)
If (res = 0) Then
#If S7_300 Then
res = ag_info(AGINFO)
#End If
#If S7_200 Then
res = as200_ag_info(AGINFO)
#End If
AGTYP.Text = AGINFO.mlfb
End If
If (res = 0) Then
#If S7_300 Then
res = ag_zustand(value)
#End If
#If S7_200 Then
res = as200_ag_zustand(value)
#End If
If (value = 0) Then
AGZUSTAND.Text = "RUN"
Else
AGZUSTAND.Text = "STOP"
End If
End If
If (res <> 0) Then
ERROR_FRM.Show 1, Me
End If
End Sub
Private Sub VERB_Click(Index As Integer)
VerbIdx = Index
AGTYP.Text = ""
AGZUSTAND.Text = ""
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -