FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
MbusUdpMasterProtocol Class
MbusUdpMasterProtocol Methods
adamSendReceiveAsciiCmd Method
setPort Method

# MbusUdpMasterProtocol adamSendReceiveAsciiCmd Method

Send/Receive ADAM 5000/6000 ASCII command.

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 adamSendReceiveAsciiCmd(
    	string command,
    	out string response
    )

    Public Function adamSendReceiveAsciiCmd (
    	command As String,
    	<OutAttribute> ByRef response As String
    ) As Integer

    public:
    int adamSendReceiveAsciiCmd(
    	String^ command,
    	[OutAttribute] String^% response
    )

#### Parameters

command
  Type: System
  String
  Command string. Must not be longer than 255 characters.
response
  Type: System
  String
  Response string. A possible trailing CR is removed.

#### Return Value

Type: Int32
BusProtocolErrors.FTALK_SUCCESS on success or error code. See BusProtocolErrors for possible error codes.
Remarks
Sends an ADAM 5000/6000 ASCII command to the device and receives the reply as ASCII string. (e.g. "$01M" to retrieve the module name)

Note
No broadcast supported

See Also

#### Reference

MbusUdpMasterProtocol Class
FieldTalk.Modbus.Master Namespace
FieldTalk Modbus Master Library for .NET
Library version 2.15.2