📄 frmmcninfo.frm
字号:
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 5
Left = 1800
TabIndex = 29
Top = 4560
Width = 1695
End
Begin VB.Label Label3
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "5"
Height = 255
Index = 5
Left = 1440
TabIndex = 28
Top = 7800
Width = 255
End
Begin VB.Label Label4
Caption = "SpinMotor"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 4
Left = 1800
TabIndex = 27
Top = 4200
Width = 1575
End
Begin VB.Label Label3
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "4"
Height = 255
Index = 4
Left = 1440
TabIndex = 26
Top = 8160
Width = 255
End
Begin VB.Label Label4
Caption = "TimeUp"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 3
Left = 1560
TabIndex = 25
Top = 10200
Width = 1575
End
Begin VB.Label Label3
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "3"
Height = 255
Index = 3
Left = 1200
TabIndex = 24
Top = 10200
Width = 255
End
Begin VB.Label Label4
Caption = "SampleSensor"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 2
Left = 1800
TabIndex = 23
Top = 3840
Width = 1575
End
Begin VB.Label Label3
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "2"
Height = 255
Index = 2
Left = 1440
TabIndex = 22
Top = 3840
Width = 255
End
Begin VB.Label Label4
Caption = "PressureSensor"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 1800
TabIndex = 21
Top = 3480
Width = 1815
End
Begin VB.Label Label3
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "1"
Height = 255
Index = 1
Left = 1440
TabIndex = 20
Top = 3480
Width = 255
End
Begin VB.Label Label2
Caption = "Initialize"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 8
Left = 600
TabIndex = 19
Top = 2640
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "8"
Height = 255
Index = 8
Left = 240
TabIndex = 18
Top = 2640
Width = 255
End
Begin VB.Label Label2
Caption = "CoverOpen"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 7
Left = 600
TabIndex = 17
Top = 2280
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "7"
Height = 255
Index = 7
Left = 240
TabIndex = 16
Top = 2280
Width = 255
End
Begin VB.Label Label2
Caption = "Manual mode"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 6
Left = 600
TabIndex = 15
Top = 1920
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "6"
Height = 255
Index = 6
Left = 240
TabIndex = 14
Top = 1920
Width = 255
End
Begin VB.Label Label2
Caption = "Emergency"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 5
Left = 600
TabIndex = 13
Top = 1560
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "5"
Height = 255
Index = 5
Left = 240
TabIndex = 12
Top = 1560
Width = 255
End
Begin VB.Label Label2
Caption = "Normal"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 15
Left = 1080
TabIndex = 11
Top = 9480
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "15"
Height = 255
Index = 15
Left = 2400
TabIndex = 10
Top = 3120
Width = 255
End
Begin VB.Label Label2
Caption = "Busy"
BeginProperty Font
Name = "俵俽 俹僑僔僢僋"
Size = 12
Charset = 128
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 4
Left = 600
TabIndex = 9
Top = 1200
Width = 1935
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "4"
Height = 255
Index = 4
Left = 240
TabIndex = 8
Top = 1200
Width = 255
End
Begin VB.Label Label2
Caption = "RotaryTableTurn"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 3
Left = 600
TabIndex = 7
Top = 840
Width = 2535
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "3"
Height = 255
Index = 3
Left = 240
TabIndex = 6
Top = 840
Width = 255
End
Begin VB.Label Label2
Caption = "TorqueMeasurement"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 2
Left = 600
TabIndex = 5
Top = 480
Width = 2295
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "2"
Height = 255
Index = 2
Left = 240
TabIndex = 4
Top = 480
Width = 255
End
Begin VB.Label Label2
Caption = "ResistanceMeasurement"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 600
TabIndex = 3
Top = 120
Width = 2895
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "1"
Height = 255
Index = 1
Left = 240
TabIndex = 2
Top = 120
Width = 255
End
Begin VB.Label Label2
Caption = "Malfunction"
DataSource = "U"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 0
Left = 600
TabIndex = 1
Top = 3000
Width = 1335
End
Begin VB.Label Label1
Alignment = 2 '拞墰懙偊
BorderStyle = 1 '幚慄
Caption = "0"
Height = 255
Index = 0
Left = 240
TabIndex = 0
Top = 3000
Width = 255
End
End
Attribute VB_Name = "McnInfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit '慡偰偺曄悢傪柧帵揑偵愰尵
Private Sub Form_Load()
Call TestForm_Input(Me)
Timer1.Enabled = True
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call TestForm_OutPut(Me)
End Sub
Private Sub Timer1_Timer()
Dim J As Integer
' Call X2_Mcn_Act
'堎忢
For J = 0 To 15
If X2_Info(J) = 1 Then
Label1(J).BackColor = Makkakka
Else
Label1(J).BackColor = HaiIro
End If
Next J
For J = 1 To 15
If J = X2_Err_Info Then
Label3(J).BackColor = Makkakka
Else
Label3(J).BackColor = HaiIro
End If
Next J
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -