📄 pc机控制教学信息.frm
字号:
EndProperty
ForeColor = &H00FF0000&
Height = 615
Left = 2280
TabIndex = 11
Text = "关"
Top = 2760
Width = 615
End
Begin VB.TextBox 工位1
BeginProperty Font
Name = "楷体_GB2312"
Size = 26.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 615
Left = 2280
TabIndex = 10
Text = "关"
Top = 2040
Width = 615
End
Begin VB.TextBox 运行状态
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 480
MultiLine = -1 'True
TabIndex = 9
Top = 9720
Width = 14895
End
Begin VB.CommandButton 工位3开
Caption = "继电器3开"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 600
TabIndex = 8
Top = 3480
Width = 1575
End
Begin VB.CommandButton 工位2开
Caption = "继电器2开"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 600
TabIndex = 7
Top = 2760
Width = 1575
End
Begin VB.CommandButton 工位4开
Caption = "继电器4开"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Index = 0
Left = 600
TabIndex = 6
Top = 4200
Width = 1575
End
Begin VB.CommandButton 工位1开
Caption = "继电器1开"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 600
TabIndex = 5
Top = 2040
Width = 1575
End
Begin VB.TextBox labtime
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 7200
TabIndex = 4
Top = 240
Width = 1935
End
Begin VB.TextBox labweek
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 5400
TabIndex = 3
Top = 240
Width = 615
End
Begin VB.TextBox labday
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 3480
TabIndex = 2
Top = 240
Width = 375
End
Begin VB.TextBox labmonth
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 2880
TabIndex = 1
Top = 240
Width = 375
End
Begin VB.TextBox labyear
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Left = 2040
TabIndex = 0
Top = 240
Width = 615
End
Begin VB.Timer Timer1
Interval = 10
Left = 480
Top = 2040
End
Begin MSCommLib.MSComm MSComm1
Left = 720
Top = 5880
_ExtentX = 1005
_ExtentY = 1005
_Version = 393216
DTREnable = -1 'True
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "30路继电器运行界面"
BeginProperty Font
Name = "宋体"
Size = 21.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 110
Top = 1080
Width = 5055
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "串口号:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000C000&
Height = 375
Index = 0
Left = 4800
TabIndex = 109
Top = 1245
Width = 1455
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "波特率:"
BeginProperty Font
Name = "楷体_GB2312"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000C000&
Height = 375
Index = 2
Left = 7440
TabIndex = 108
Top = 1250
Width = 1455
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "时间:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 6480
TabIndex = 107
Top = 240
Width = 855
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "星期:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4680
TabIndex = 106
Top = 240
Width = 855
End
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "日"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3960
TabIndex = 105
Top = 240
Width = 255
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "月"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3240
TabIndex = 104
Top = 240
Width = 255
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "年"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 2640
TabIndex = 103
Top = 240
Width = 255
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "日期:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1440
TabIndex = 102
Top = 240
Width = 615
End
Begin VB.Image Image1
Height = 24000
Left = -480
Picture = "pc机控制教学信息.frx":0074
Top = -1680
Width = 38400
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'**************************************************************************************
'********************************** 设置串口号部分*************************************
Private Sub Combo1_Click()
If Combo1.Text = "COM1" Then
MSComm1.PortOpen = False
MSComm1.CommPort = 1
MSComm1.PortOpen = True
ElseIf Combo1.Text = "COM2" Then
MSComm1.PortOpen = False
MSComm1.CommPort = 2
MSComm1.PortOpen = True
ElseIf Comb
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -