📄 coil.frm
字号:
VERSION 4.00
Begin VB.Form Form1
Appearance = 0 'Flat
BackColor = &H00C0C0C0&
Caption = "Form1"
ClientHeight = 4875
ClientLeft = 2190
ClientTop = 1530
ClientWidth = 4590
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 5280
Left = 2130
LinkMode = 1 'Source
LinkTopic = "Form1"
ScaleHeight = 4875
ScaleMode = 0 'User
ScaleTop = 2000
ScaleWidth = 8367.19
Top = 1185
Width = 4710
Begin VB.TextBox Text6
Appearance = 0 'Flat
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 276
TabIndex = 13
Text = "Text6"
Top = 2160
Width = 3816
End
Begin VB.CommandButton Command4
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Command4"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1860
TabIndex = 0
Top = 1260
Width = 1185
End
Begin VB.CommandButton Command3
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Command3"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 420
TabIndex = 1
Top = 1260
Width = 1185
End
Begin VB.CommandButton Command2
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Command2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1860
TabIndex = 4
Top = 816
Width = 1185
End
Begin VB.CommandButton Command1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Command1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 420
TabIndex = 6
Top = 816
Width = 1185
End
Begin VB.TextBox Text3
Appearance = 0 'Flat
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 270
TabIndex = 7
Text = "Text3"
Top = 3510
Width = 3816
End
Begin VB.TextBox Text2
Appearance = 0 'Flat
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 276
TabIndex = 12
Text = "Text2"
Top = 3000
Width = 3816
End
Begin VB.TextBox Text1
Appearance = 0 'Flat
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 270
TabIndex = 11
Text = "Text1"
Top = 2610
Width = 3816
End
Begin VB.TextBox Text5
Appearance = 0 'Flat
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 360
Left = 270
TabIndex = 8
Text = "Text5"
Top = 1800
Width = 3816
End
Begin VB.TextBox Text4
Appearance = 0 'Flat
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 372
Left = 270
TabIndex = 5
Text = "Text4"
Top = 3870
Width = 3816
End
Begin VB.Timer Timer1
Enabled = 0 'False
Left = 0
Tag = "clock & read plc buffer "
Top = 480
End
Begin VB.OptionButton Option2
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Option2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 492
Left = 2400
TabIndex = 3
Top = 4320
Width = 1608
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H80000005&
Caption = "Option1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 492
Left = 360
TabIndex = 2
Top = 4320
Width = 1572
End
Begin MSCommLib.MSComm MSComm1
Left = 0
Top = 0
_Version = 65536
_ExtentX = 847
_ExtentY = 847
_StockProps = 0
CDTimeout = 0
CommPort = 1
CTSTimeout = 0
DSRTimeout = 0
DTREnable = -1 'True
Handshaking = 0
InBufferSize = 1024
InputLen = 0
Interval = 1000
NullDiscard = 0 'False
OutBufferSize = 512
ParityReplace = "?"
RThreshold = 0
RTSEnable = 0 'False
Settings = "9600,n,8,1"
SThreshold = 0
End
Begin VB.Label Label3
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Caption = "Label3"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 492
Left = 840
TabIndex = 14
Top = 120
Width = 3012
End
Begin VB.Label Label2
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
Caption = "Label2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 372
Left = 3420
TabIndex = 9
Top = 1260
Width = 648
End
Begin VB.Label Label1
Appearance = 0 'Flat
BackColor = &H80000005&
BorderStyle = 1 'Fixed Single
Caption = "Label1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H80000008&
Height = 372
Left = 3420
TabIndex = 10
Top = 816
Width = 648
End
End
Attribute VB_Name = "Form1"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Dim M0CH%(7)
Dim flag As Integer
Private Sub Command1_Click()
M0CH%(0) = 1
End Sub
Private Sub Command2_Click()
M0CH%(1) = 1
End Sub
Private Sub Command3_Click()
M0CH%(2) = 1
End Sub
Private Sub Command4_Click()
M0CH%(3) = 1
End Sub
Private Sub display(disp_data$)
' Y0钡翴陪ボ
If CInt(Mid$(disp_data$, 8, 1)) = 1 Then
If Form1.Label1.BackColor <> QBColor(12) Then Form1.Label1.BackColor = QBColor(12)
Else
If Form1.Label1.BackColor <> QBColor(8) Then Form1.Label1.BackColor = QBColor(8)
End If
' Y1钡翴陪ボ
If CInt(Mid$(disp_data$, 7, 1)) = 1 Then
If Form1.Label2.BackColor <> QBColor(12) Then Form1.Label2.BackColor = QBColor(12)
Else
If Form1.Label2.BackColor <> QBColor(8) Then Form1.Label2.BackColor = QBColor(8)
End If
End Sub
Private Sub Form_Load()
Form1.Caption = "FX2钡翴
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -