FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
MbusMasterFunctions Class
MbusMasterFunctions Methods
readFileRecord Method
readFileRecord Method (Int32, MbusMasterFunctions.FileSubRequest[])
readFileRecord Method (Int32, Int32, Int32, Int32, Int16[])

# MbusMasterFunctions readFileRecord Method (Int32, MbusMasterFunctions FileSubRequest )

Modbus function 20, Read File Record.

Namespace: FieldTalk.Modbus.Master
Assembly: FieldTalk.Modbus.Master (in FieldTalk.Modbus.Master.dll) Version: 2.15.2-eval+3d8362b4bb861c05760d48b11d303e954bb8597c
Syntax
C#
VB
C++
Copy

    public int readFileRecord(
    	int slaveAddr,
    	MbusMasterFunctionsFileSubRequest[] subReqArr
    )

    Public Function readFileRecord (
    	slaveAddr As Integer,
    	<OutAttribute> subReqArr As MbusMasterFunctionsFileSubRequest()
    ) As Integer

    public:
    int readFileRecord(
    	int slaveAddr,
    	[InAttribute] [OutAttribute] array<MbusMasterFunctionsFileSubRequest>^ subReqArr
    )

#### Parameters

slaveAddr
  Type: System
  Int32
  Modbus address of slave device or unit identifier (Range: 0 - 255)
subReqArr
  Type:
  FieldTalk.Modbus.Master
  MbusMasterFunctions
  FileSubRequest
  Array with list of subrequests (Range 1-35)

#### Return Value

Type: Int32
BusProtocolErrors.FTALK_SUCCESS on success or error code. See BusProtocolErrors for possible error codes.
Remarks
Performs a file record read for a list of subrequests.

Note
No broadcast supported

See Also

#### Reference

MbusMasterFunctions Class
readFileRecord Overload
FieldTalk.Modbus.Master Namespace
FieldTalk Modbus Master Library for .NET
Library version 2.15.2