form1.frm
来自「JAPAN RTOS TOPPERS/JSP kernel 1.4 PreRel」· FRM 代码 · 共 98 行
FRM
98 行
VERSION 5.00
Object = "{194B359F-594E-4EE4-A804-84723D1CF1C4}#1.0#0"; "device.dll"
Begin VB.Form Form1
Caption = "僨僶僀僗丒僔儈儏儗乕僞"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 'Windows 偺婛掕抣
Begin ATLDEVICELibCtl.DeviceControl DeviceControl2
Height = 495
Left = 1440
OleObjectBlob = "Form1.frx":0000
TabIndex = 6
Top = 120
Visible = 0 'False
Width = 735
End
Begin VB.Frame Frame1
Height = 2175
Left = 600
TabIndex = 1
Top = 840
Width = 3855
Begin VB.Label Label6
Caption = "廃婜僞僗僋俀"
Height = 495
Left = 120
TabIndex = 5
Top = 960
Width = 1095
End
Begin VB.Label Label5
Caption = "廃婜僞僗僋侾"
Height = 375
Left = 120
TabIndex = 4
Top = 600
Width = 1215
End
Begin VB.Label Counter2
Caption = "0"
Height = 375
Left = 1560
TabIndex = 3
Top = 960
Width = 375
End
Begin VB.Label Counter1
Caption = "0"
Height = 255
Left = 1560
TabIndex = 2
Top = 600
Width = 375
End
End
Begin ATLDEVICELibCtl.DeviceControl DeviceControl1
Height = 495
Left = 240
OleObjectBlob = "Form1.frx":0028
TabIndex = 0
Top = 120
Visible = 0 'False
Width = 735
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
DeviceControl1.Connect '僨僶僀僗儅僱乕僕儍偲愙懕偡傞
DeviceControl2.Connect '僨僶僀僗儅僱乕僕儍偲愙懕偡傞
DeviceControl1.Map &H1000, 4 '0x1000斣抧偵1僶僀僩偺儗僕僗僞傪儅僢僾偡傞
DeviceControl2.Map &H2000, 4 '0x2000斣抧偵4僶僀僩偺儗僕僗僞傪儅僢僾偡傞
End Sub
Private Sub Form_Unload(Cancel As Integer)
DeviceControl1.Close '僨僶僀僗儅僱乕僕儍偲偺愙懕傪夝彍偡傞
DeviceControl2.Close '僨僶僀僗儅僱乕僕儍偲偺愙懕傪夝彍偡傞
End Sub
Private Sub DeviceControl1_OnWrite(ByVal address As Long, ByVal sz As Long)
Counter1 = DeviceControl1.Value '彂偒崬傑傟偨僨乕僞偺撉傒弌偟
End Sub
Private Sub DeviceControl2_OnWrite(ByVal address As Long, ByVal sz As Long)
Counter2 = DeviceControl2.Value '彂偒崬傑傟偨僨乕僞偺撉傒弌偟
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?