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

# MbusMasterFunctions writeFileRecord Method (Int32, MbusMasterFunctions FileSubRequest )

Modbus function 21, Write 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 writeFileRecord(
    	int slaveAddr,
    	MbusMasterFunctionsFileSubRequest[] subReqArr
    )

    Public Function writeFileRecord (
    	slaveAddr As Integer,
    	subReqArr As MbusMasterFunctionsFileSubRequest()
    ) As Integer

    public:
    int writeFileRecord(
    	int slaveAddr,
    	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-27)

#### Return Value

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

Note
No broadcast supported

See Also

#### Reference

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