C# Class PHmiIoDevice.Melsec.MelsecIoDevice

Inheritance: IIoDevice
Show file Open project: phmi/phmi

Public Methods

Method Description
Dispose ( ) : void
MelsecIoDevice ( string options ) : System
Open ( ) : void
Read ( PHmiIoDeviceTools.ReadParameter readParameters ) : object[]
Write ( PHmiIoDeviceTools.WriteParameter writeParameters ) : void

Private Methods

Method Description
GetBitFromByte ( byte b, int index ) : bool
GetBytes ( IList bytes, int index, int length ) : byte[]
GetBytes ( object value ) : byte[]
GetValue ( byte bytes, Type type ) : object
ReadBits ( IEnumerable bitsAddresses, bool>.IDictionary bitsData, ReadDelegate readDel, string label ) : void
ReadBitsFinal ( bool>.IDictionary bitsData, ReadDelegate readDel, int readStart, int length, IEnumerable addresses, string label ) : void
ReadOnce ( PHmiIoDeviceTools.ReadParameter readParameters ) : object[]
ReadRegisters ( int>.IEnumerable registersAddresses, int>.IDictionary registersData, ReadDelegate readDel ) : void
ReadRegistersFinal ( int>.IDictionary registersData, ReadDelegate readDel, int readStart, int length, int>.IEnumerable addresses ) : void
TypeToRegistersCount ( Type type ) : int?
WriteOnce ( IEnumerable writeParameters ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

MelsecIoDevice() public method

public MelsecIoDevice ( string options ) : System
options string
return System

Open() public method

public Open ( ) : void
return void

Read() public method

public Read ( PHmiIoDeviceTools.ReadParameter readParameters ) : object[]
readParameters PHmiIoDeviceTools.ReadParameter
return object[]

Write() public method

public Write ( PHmiIoDeviceTools.WriteParameter writeParameters ) : void
writeParameters PHmiIoDeviceTools.WriteParameter
return void