MXComponent 在用VB 和 LABVIEW 編程時,,批量讀寫寄存器 都只能返回一個,類型 是LONG,,怎么才能返回多個啊,應該是數組啊,FX5U,多謝互助,
Dim DATA(10) As Long
Dim DATA1 As Long
Dim ds As String
Private Sub Command1_Click()
ActUtlType1.ActLogicalStationNumber = 1
ActUtlType1.Open
End Sub
Private Sub Command2_Click()
ActUtlType1.Close
End
End Sub
Private Sub Command3_Click()
ds = "D106"
A = ActUtlType1.ReadDeviceBlock("D106", 4, DATA(10))
Text1.Text = DATA(0)
Text2.Text = DATA(1)
Text3.Text = DATA1
End Sub