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