C# Class libmodbussharp.ModbusCore

Inheritance: IDisposable
Exibir arquivo Open project: mk8/modbus-sharp Class Usage Examples

Public Properties

Property Type Description
MODBUS_TCP_MAX_ADU_LENGTH int

Public Methods

Method Description
AcceptTcp ( ) : void
BitsInputRead ( int start ) : bool
BitsInputRead ( int start, int length ) : int
BitsRWRead ( int start ) : bool
BitsRWRead ( int start, int length ) : int
BitsRWWrite ( int index ) : int
BitsRWWrite ( int index, int length ) : int
Close ( ) : void
Connect ( ) : bool
DirectWriteBitRW ( int index, bool val ) : int
DirectWriteRegisterRW ( int index, System.Single val ) : int
DirectWriteRegisterRW ( int index, short val ) : int
DirectWriteRegisterRW ( int index, ushort val ) : int
Dispose ( ) : void
Error ( int errno ) : string
GetRegisterInputAsFloat ( int index ) : float
GetRegisterRWAsFloat ( int index ) : float
ListenTcp ( int maxWaitingQueue ) : void
MappingDispose ( ) : void
MappingNew ( int NBit, int NInputBit, int NHoldingRegisters, int NInputRegister ) : bool
ModbusCore ( string AddressTarget, int port ) : System
ModbusCore ( string target, int baud, char pariry, int nBits, int stopBits ) : System
Receive ( ) : byte[]
RegistersInputRead ( int start ) : int
RegistersInputRead ( int start, int length ) : int
RegistersRWRead ( int start ) : int
RegistersRWRead ( int start, int length ) : int
RegistersRWWrite ( int index ) : int
RegistersRWWrite ( int index, int length ) : int
RegistersRWWriteAndRead ( int readIndex, int readLength, int writeIndex, int writeLength ) : int
Reply ( byte query ) : int
SetByteTimeout ( int usecTimeout ) : void
SetRegisterRWAsFloat ( int index, float val ) : void
SetResponseTimeout ( int usecTimeout ) : void
SetRsuRts ( int flag ) : int
SetSlave ( int slave ) : void

Private Methods

Method Description
CheckContext ( ) : void
CheckForModbusError ( ) : void
CheckMapping ( ) : void
GetBitsInput ( int index ) : bool
GetBitsRW ( int index ) : bool
GetLastError ( ) : int
GetRegisterInputSigned ( int index ) : short
GetRegisterInputUnsigned ( int index ) : ushort
GetRegisterRWSigned ( int index ) : short
GetRegisterRWUnsigned ( int index ) : ushort
Initialize ( ) : void
SetBitsInput ( int index, bool val ) : void
SetBitsRW ( int index, bool val ) : void
SetRegisterInput ( int index, short val ) : void
SetRegisterInput ( int index, ushort val ) : void
SetRegisterRW ( int index, short val ) : void
SetRegisterRW ( int index, ushort val ) : void

Method Details

AcceptTcp() public method

public AcceptTcp ( ) : void
return void

BitsInputRead() public method

public BitsInputRead ( int start ) : bool
start int
return bool

BitsInputRead() public method

public BitsInputRead ( int start, int length ) : int
start int
length int
return int

BitsRWRead() public method

public BitsRWRead ( int start ) : bool
start int
return bool

BitsRWRead() public method

public BitsRWRead ( int start, int length ) : int
start int
length int
return int

BitsRWWrite() public method

public BitsRWWrite ( int index ) : int
index int
return int

BitsRWWrite() public method

public BitsRWWrite ( int index, int length ) : int
index int
length int
return int

Close() public method

public Close ( ) : void
return void

Connect() public method

public Connect ( ) : bool
return bool

DirectWriteBitRW() public method

public DirectWriteBitRW ( int index, bool val ) : int
index int
val bool
return int

DirectWriteRegisterRW() public method

public DirectWriteRegisterRW ( int index, System.Single val ) : int
index int
val System.Single
return int

DirectWriteRegisterRW() public method

public DirectWriteRegisterRW ( int index, short val ) : int
index int
val short
return int

DirectWriteRegisterRW() public method

public DirectWriteRegisterRW ( int index, ushort val ) : int
index int
val ushort
return int

Dispose() public method

public Dispose ( ) : void
return void

Error() public method

public Error ( int errno ) : string
errno int
return string

GetRegisterInputAsFloat() public method

public GetRegisterInputAsFloat ( int index ) : float
index int
return float

GetRegisterRWAsFloat() public method

public GetRegisterRWAsFloat ( int index ) : float
index int
return float

ListenTcp() public method

public ListenTcp ( int maxWaitingQueue ) : void
maxWaitingQueue int
return void

MappingDispose() public method

public MappingDispose ( ) : void
return void

MappingNew() public method

public MappingNew ( int NBit, int NInputBit, int NHoldingRegisters, int NInputRegister ) : bool
NBit int
NInputBit int
NHoldingRegisters int
NInputRegister int
return bool

ModbusCore() public method

public ModbusCore ( string AddressTarget, int port ) : System
AddressTarget string
port int
return System

ModbusCore() public method

public ModbusCore ( string target, int baud, char pariry, int nBits, int stopBits ) : System
target string
baud int
pariry char
nBits int
stopBits int
return System

Receive() public method

public Receive ( ) : byte[]
return byte[]

RegistersInputRead() public method

public RegistersInputRead ( int start ) : int
start int
return int

RegistersInputRead() public method

public RegistersInputRead ( int start, int length ) : int
start int
length int
return int

RegistersRWRead() public method

public RegistersRWRead ( int start ) : int
start int
return int

RegistersRWRead() public method

public RegistersRWRead ( int start, int length ) : int
start int
length int
return int

RegistersRWWrite() public method

public RegistersRWWrite ( int index ) : int
index int
return int

RegistersRWWrite() public method

public RegistersRWWrite ( int index, int length ) : int
index int
length int
return int

RegistersRWWriteAndRead() public method

public RegistersRWWriteAndRead ( int readIndex, int readLength, int writeIndex, int writeLength ) : int
readIndex int
readLength int
writeIndex int
writeLength int
return int

Reply() public method

public Reply ( byte query ) : int
query byte
return int

SetByteTimeout() public method

public SetByteTimeout ( int usecTimeout ) : void
usecTimeout int
return void

SetRegisterRWAsFloat() public method

public SetRegisterRWAsFloat ( int index, float val ) : void
index int
val float
return void

SetResponseTimeout() public method

public SetResponseTimeout ( int usecTimeout ) : void
usecTimeout int
return void

SetRsuRts() public method

public SetRsuRts ( int flag ) : int
flag int
return int

SetSlave() public method

public SetSlave ( int slave ) : void
slave int
return void

Property Details

MODBUS_TCP_MAX_ADU_LENGTH public_oe static_oe property

public static int MODBUS_TCP_MAX_ADU_LENGTH
return int