1

私はプラントの機械とインターフェースをとる必要があり、私たちの各プラントでは、RSLinx を使用してその機械と通信しています。このブログ投稿によると、RSLinx からデータを読み取るのは比較的簡単です。

    Dim OpcServer As New RsiOPCAuto.OPCServer
    Dim OpcGroup As RsiOPCAuto.OPCGroup
    Dim OpcItem As RsiOPCAuto.OPCItem
    Dim vItem As String = ""

    Try
        OpcServer.Connect("RSLinx Remote OPC Server", "192.168.195.128")

        ' Add this group to the shared topic
        OpcGroup = OpcServer.OPCGroups.Add("INDEC")
        OpcGroup.IsSubscribed = False
        OpcGroup.IsActive = False
        OpcGroup.UpdateRate = 250

        OpcGroup.OPCItems.DefaultAccessPath = "OPC_Test"
        OpcGroup.OPCItems.AddItem("OPC_Bit001", 1)
        OpcItem = OpcGroup.OPCItems.Item(1)

        OpcItem.Read(2, vItem)

        OpcItem = Nothing
        OpcServer.OPCGroups.RemoveAll()
        OpcGroup = Nothing
        OpcServer.Disconnect()
        OpcServer = Nothing

        'Add and Error the list box
    Catch ex As PlatformNotSupportedException
        MsgBox("Error In Get Plc Data: " & ex.Message)
    End Try

    MsgBox(vItem)

しかし... RsiOPCAuto.dllへの参照を追加する必要があると書かれていますが、わかりません:

  1. どこで見つけられるか
  2. できること
  3. ライセンスに関することなら何でも

ただし、具体的には、その DLL がどこにあるかを誰かが知っているかどうか知りたいです。

4

1 に答える 1

0

このファイル RsiOpcAuto.dll は c/programfiles/commonfiles/Rockwell にあります。ただし、ライセンスされた rslinx oem またはプロフェッショナル (ゲートウェイ) バージョン 2.54 以下が必要です。

于 2013-08-26T00:09:33.883 に答える