﻿Option Strict Off
Option Explicit On
Module RemoteIO

    '======================================================================
    '======================================================================
    '	API-CAP(W32)
    '	RemoteIO.VB					CONTEC.CO.,LTD.
    '======================================================================
    '======================================================================

    '======================================================================
    ' Function Prototype
    '======================================================================  
    Declare Auto Function FITR_Open Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal AccRight_Val() As Byte) As UShort
    Declare Auto Function FITR_Read Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal Vaddress As UInteger, ByVal Size As UShort, ByVal Buffer() As Byte) As UShort
    Declare Auto Function FITR_Write Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal Vaddress As UInteger, ByVal Size As UShort, ByVal Buffer() As Byte) As UShort
    Declare Auto Function FITR_Reset Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort) As UShort
    Declare Auto Function FITR_Close Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort) As UShort
    Declare Auto Function FITR_Set_Opt Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal TimeOut As UShort, ByVal Retry_Cnt As UShort) As UShort
    Declare Auto Function FITR_Task_Interval Lib "RemoteIO.DLL" (ByVal IntervalTime As UShort) As UShort
    Declare Auto Function FITR_Task_Start Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort) As UShort
    Declare Auto Function FITR_Task_Stop Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort) As UShort
    Declare Auto Function FITR_Set_Node Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal IP_Address As UInteger, ByVal Port_num As UShort, ByVal Mac_Address() As Byte) As UShort
    Declare Auto Function FITR_Multi_Open Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal Multi_IP_Address() As Byte, ByVal AccRight_Val() As Byte) As UShort
    Declare Auto Function FITR_Multi_Close Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort) As UShort
    Declare Auto Function FITR_Multi_Read Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal Vaddress As UInteger, ByVal Size As UShort, ByVal Buffer() As Byte) As UShort
    Declare Auto Function FITR_Multi_Reset Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort) As UShort
    Declare Auto Function FITR_Multi_Write Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal Vaddress As UInteger, ByVal Size As UShort, ByVal Buffer() As Byte) As UShort
    Declare Auto Function FITR_Scan_Set_Opt Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal TimeOut As UShort, ByVal Retry_Cnt As UShort) As UShort
    Declare Auto Function FITR_IO_InpData Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal DeviceID As UShort, ByVal Data() As Byte) As UShort
    Declare Auto Function FITR_IO_OutData Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal DeviceID As UShort, ByVal Data() As Byte) As UShort
    Declare Auto Function FITR_IO_OutDataByte Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal DeviceID As UShort, ByVal Channel_Offset As UShort, ByVal Data() As Byte, ByVal Data_Size As UShort) As UShort
    Declare Auto Function FITR_IO_StaData Lib "RemoteIO.DLL" (ByVal GroupID As UShort, ByVal UnitID As UShort, ByVal DeviceID As UShort, ByVal Data() As Byte) As UShort

End Module