C# 클래스 libmodbussharp.ModbusCore

상속: IDisposable
파일 보기 프로젝트 열기: mk8/modbus-sharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
MODBUS_TCP_MAX_ADU_LENGTH int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

AcceptTcp() 공개 메소드

public AcceptTcp ( ) : void
리턴 void

BitsInputRead() 공개 메소드

public BitsInputRead ( int start ) : bool
start int
리턴 bool

BitsInputRead() 공개 메소드

public BitsInputRead ( int start, int length ) : int
start int
length int
리턴 int

BitsRWRead() 공개 메소드

public BitsRWRead ( int start ) : bool
start int
리턴 bool

BitsRWRead() 공개 메소드

public BitsRWRead ( int start, int length ) : int
start int
length int
리턴 int

BitsRWWrite() 공개 메소드

public BitsRWWrite ( int index ) : int
index int
리턴 int

BitsRWWrite() 공개 메소드

public BitsRWWrite ( int index, int length ) : int
index int
length int
리턴 int

Close() 공개 메소드

public Close ( ) : void
리턴 void

Connect() 공개 메소드

public Connect ( ) : bool
리턴 bool

DirectWriteBitRW() 공개 메소드

public DirectWriteBitRW ( int index, bool val ) : int
index int
val bool
리턴 int

DirectWriteRegisterRW() 공개 메소드

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

DirectWriteRegisterRW() 공개 메소드

public DirectWriteRegisterRW ( int index, short val ) : int
index int
val short
리턴 int

DirectWriteRegisterRW() 공개 메소드

public DirectWriteRegisterRW ( int index, ushort val ) : int
index int
val ushort
리턴 int

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

Error() 공개 메소드

public Error ( int errno ) : string
errno int
리턴 string

GetRegisterInputAsFloat() 공개 메소드

public GetRegisterInputAsFloat ( int index ) : float
index int
리턴 float

GetRegisterRWAsFloat() 공개 메소드

public GetRegisterRWAsFloat ( int index ) : float
index int
리턴 float

ListenTcp() 공개 메소드

public ListenTcp ( int maxWaitingQueue ) : void
maxWaitingQueue int
리턴 void

MappingDispose() 공개 메소드

public MappingDispose ( ) : void
리턴 void

MappingNew() 공개 메소드

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

ModbusCore() 공개 메소드

public ModbusCore ( string AddressTarget, int port ) : System
AddressTarget string
port int
리턴 System

ModbusCore() 공개 메소드

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

Receive() 공개 메소드

public Receive ( ) : byte[]
리턴 byte[]

RegistersInputRead() 공개 메소드

public RegistersInputRead ( int start ) : int
start int
리턴 int

RegistersInputRead() 공개 메소드

public RegistersInputRead ( int start, int length ) : int
start int
length int
리턴 int

RegistersRWRead() 공개 메소드

public RegistersRWRead ( int start ) : int
start int
리턴 int

RegistersRWRead() 공개 메소드

public RegistersRWRead ( int start, int length ) : int
start int
length int
리턴 int

RegistersRWWrite() 공개 메소드

public RegistersRWWrite ( int index ) : int
index int
리턴 int

RegistersRWWrite() 공개 메소드

public RegistersRWWrite ( int index, int length ) : int
index int
length int
리턴 int

RegistersRWWriteAndRead() 공개 메소드

public RegistersRWWriteAndRead ( int readIndex, int readLength, int writeIndex, int writeLength ) : int
readIndex int
readLength int
writeIndex int
writeLength int
리턴 int

Reply() 공개 메소드

public Reply ( byte query ) : int
query byte
리턴 int

SetByteTimeout() 공개 메소드

public SetByteTimeout ( int usecTimeout ) : void
usecTimeout int
리턴 void

SetRegisterRWAsFloat() 공개 메소드

public SetRegisterRWAsFloat ( int index, float val ) : void
index int
val float
리턴 void

SetResponseTimeout() 공개 메소드

public SetResponseTimeout ( int usecTimeout ) : void
usecTimeout int
리턴 void

SetRsuRts() 공개 메소드

public SetRsuRts ( int flag ) : int
flag int
리턴 int

SetSlave() 공개 메소드

public SetSlave ( int slave ) : void
slave int
리턴 void

프로퍼티 상세

MODBUS_TCP_MAX_ADU_LENGTH 공개적으로 정적으로 프로퍼티

public static int MODBUS_TCP_MAX_ADU_LENGTH
리턴 int