• Libraries
  • Shop
  • Doc
  • Free Modbus
  • Support
  • Login
FieldTalk Modbus Master Library for .NET
FieldTalk Modbus Master Library for .NET
Namespaces
FieldTalk.Modbus.Master
MbusElamOverTcpMasterProtocol Class
MbusElamOverTcpMasterProtocol Constructor
MbusElamOverTcpMasterProtocol Properties
MbusElamOverTcpMasterProtocol Methods
Click or drag to resizeClick or drag to resize

MbusElamOverTcpMasterProtocol Class

Extended Lufkin Automation Modbus Master Protocol
Inheritance Hierarchy
SystemObject
  FieldTalk.Modbus.MasterMbusMasterFunctions
    FieldTalk.Modbus.MasterMbusIpClientBase
      FieldTalk.Modbus.MasterMbusElamOverTcpMasterProtocol

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 class MbusElamOverTcpMasterProtocol : MbusIpClientBase
Public Class MbusElamOverTcpMasterProtocol
	Inherits MbusIpClientBase
public ref class MbusElamOverTcpMasterProtocol : public MbusIpClientBase

The MbusElamOverTcpMasterProtocol type exposes the following members.

Constructors
  NameDescription
Public methodMbusElamOverTcpMasterProtocol
Creates new instance
Top
Properties
  NameDescription
Public propertyhostName
Host name
(Inherited from MbusIpClientBase.)
Public propertypollDelay
Poll delay property
(Inherited from MbusMasterFunctions.)
Public propertyport
TCP port property
(Overrides MbusIpClientBaseport.)
Public propertyretryCnt
Retry count property
(Inherited from MbusMasterFunctions.)
Public propertytimeout
Time-out port property
(Inherited from MbusMasterFunctions.)
Top
Methods
  NameDescription
Public methodcloseProtocol
Closes an open protocol including any associated communication resources (COM ports or sockets).
(Inherited from MbusMasterFunctions.)
Public methodconfigureBigEndianInts
Configures 32-bit int data type functions to do a word swap
(Inherited from MbusMasterFunctions.)
Public methodconfigureBigEndianInts(Int32)
Configures 32-bit int data type functions to do a word swap on a per slave basis
(Inherited from MbusMasterFunctions.)
Public methodconfigureCountFromOne
Configures the reference counting scheme to start with one for all slaves.
(Inherited from MbusMasterFunctions.)
Public methodconfigureCountFromOne(Int32)
Configures the reference counting scheme to start with one for a slave.
(Inherited from MbusMasterFunctions.)
Public methodconfigureCountFromZero
Configures the reference counting scheme to start with zero for all slaves.
(Inherited from MbusMasterFunctions.)
Public methodconfigureCountFromZero(Int32)
Configures the reference counting scheme to start with zero for a slave.
(Inherited from MbusMasterFunctions.)
Public methodconfigureEnron32BitMode
Configures all slaves for Daniel/ENRON 32-bit Mode.
(Inherited from MbusMasterFunctions.)
Public methodconfigureEnron32BitMode(Int32)
Configures a slave for Daniel/ENRON 32-bit Mode.
(Inherited from MbusMasterFunctions.)
Public methodconfigureIeeeFloats
Configures float data type functions NOT to do a word swap
(Inherited from MbusMasterFunctions.)
Public methodconfigureIeeeFloats(Int32)
Configures float data type functions NOT to do a word swap on a per slave basis
(Inherited from MbusMasterFunctions.)
Public methodconfigureLittleEndianInts
Configures 32-bit int data type functions NOT to do a word swap
(Inherited from MbusMasterFunctions.)
Public methodconfigureLittleEndianInts(Int32)
Configures 32-bit int data type functions NOT to do a word swap on a per slave basis
(Inherited from MbusMasterFunctions.)
Public methodconfigureStandard32BitMode
Configures all slaves for Standard 32-bit Mode.
(Inherited from MbusMasterFunctions.)
Public methodconfigureStandard32BitMode(Int32)
Configures a slave for Standard 32-bit Mode.
(Inherited from MbusMasterFunctions.)
Public methodconfigureSwappedFloats
Configures float data type functions to do a word swap
(Inherited from MbusMasterFunctions.)
Public methodconfigureSwappedFloats(Int32)
Configures float data type functions to do a word swap on a per slave basis
(Inherited from MbusMasterFunctions.)
Public methodcustomFunction
User Defined Function Code
(Inherited from MbusMasterFunctions.)
Public methodDispose
Releases any associated communication resources (serial ports or sockets).
(Inherited from MbusMasterFunctions.)
Public methodforceMultipleCoils(Int32, Int32, Boolean)
Modbus function 15 (0F hex), Force Multiple Coils.
(Inherited from MbusMasterFunctions.)
Public methodforceMultipleCoils(Int32, Int32, Boolean, Int32)
Modbus function 15 (0F hex), Force Multiple Coils.
(Inherited from MbusMasterFunctions.)
Public methodgetPollDelay
Returns the poll delay time
(Inherited from MbusMasterFunctions.)
Public methodgetPort
Returns the TCP port number used by the protocol.
(Inherited from MbusIpClientBase.)
Public methodgetRetryCnt
Returns the automatic retry count
(Inherited from MbusMasterFunctions.)
Public methodgetSuccessCounter
Returns how often a message transfer was successful
(Inherited from MbusMasterFunctions.)
Public methodgetTimeout
Returns the current time-out setting
(Inherited from MbusMasterFunctions.)
Public methodgetTotalCounter
Returns how often a message transfer has been executed
(Inherited from MbusMasterFunctions.)
Public methodisOpen
Returns whether the protocol is open or not.
(Inherited from MbusMasterFunctions.)
Public methodmaskWriteRegister
Modbus function 22 (16 hex), Mask Write Register.
(Inherited from MbusMasterFunctions.)
Public methodopenProtocol
Connects to a TCP slave.
(Inherited from MbusIpClientBase.)
Public methodopenProtocol(String)
Connects to a TCP slave.
(Inherited from MbusIpClientBase.)
Public methodreadCoils(Int32, Int32, Boolean)
Modbus function 1 (01 hex), Read Coil Status/Read Coils.
(Inherited from MbusMasterFunctions.)
Public methodreadCoils(Int32, Int32, Boolean, Int32)
Modbus function 1 (01 hex), Read Coil Status/Read Coils.
(Inherited from MbusMasterFunctions.)
Public methodCode examplereadDeviceIdentification
Modbus function 43 (hex 2B) subfunction 14 (hex 0E), Read Device Identification
(Inherited from MbusMasterFunctions.)
Public methodreadExceptionStatus
Modbus function 7 (07 hex), Read Exception Status.
(Inherited from MbusMasterFunctions.)
Public methodreadFileRecord(Int32, MbusMasterFunctionsFileSubRequest)
Modbus function 20, Read File Record.
(Inherited from MbusMasterFunctions.)
Public methodreadFileRecord(Int32, Int32, Int32, Int32, Int16)
Modbus function 20, Read File Record.
(Inherited from MbusMasterFunctions.)
Public methodreadInputDiscretes(Int32, Int32, Boolean)
Modbus function 2 (02 hex), Read Inputs Status/Read Input Discretes.
(Inherited from MbusMasterFunctions.)
Public methodreadInputDiscretes(Int32, Int32, Boolean, Int32)
Modbus function 2 (02 hex), Read Inputs Status/Read Input Discretes.
(Inherited from MbusMasterFunctions.)
Public methodreadInputMod10000(Int32, Int32, Int32)
Modbus function 4 (04 hex) for 32-bit modulo-10000 long int data types, Read Input Registers as modulo-10000 long int data.
(Inherited from MbusMasterFunctions.)
Public methodreadInputMod10000(Int32, Int32, Int32, Int32)
Modbus function 4 (04 hex) for 32-bit modulo-10000 long int data types, Read Input Registers as modulo-10000 long int data.
(Inherited from MbusMasterFunctions.)
Public methodreadInputRegisters(Int32, Int32, Array)
Modbus function 4 (04 hex), Read Input Registers (16-bit, 32-bit, 64-bit and floating point single and double).
(Inherited from MbusMasterFunctions.)
Public methodreadInputRegisters(Int32, Int32, Array, Int32)
Modbus function 4 (04 hex), Read Input Registers (16-bit, 32-bit, 64-bit and floating point single and double).
(Inherited from MbusMasterFunctions.)
Public methodreadMultipleMod10000(Int32, Int32, Int32)
Modbus function 3 (03 hex) for 32-bit modulo-10000 long int data types, Read Holding Registers/Read Multiple Registers as modulo-10000 long int data.
(Inherited from MbusMasterFunctions.)
Public methodreadMultipleMod10000(Int32, Int32, Int32, Int32)
Modbus function 3 (03 hex) for 32-bit modulo-10000 long int data types, Read Holding Registers/Read Multiple Registers as modulo-10000 long int data.
(Inherited from MbusMasterFunctions.)
Public methodreadMultipleRegisters(Int32, Int32, Array)
Modbus function 3 (03 hex), Read Holding Registers (16-bit, 32-bit, 64-bit and floating point single and double).
(Inherited from MbusMasterFunctions.)
Public methodreadMultipleRegisters(Int32, Int32, Array, Int32)
Modbus function 3 (03 hex), Read Holding Registers (16-bit, 32-bit, 64-bit and floating point single and double).
(Inherited from MbusMasterFunctions.)
Public methodreadWriteRegisters(Int32, Int32, Int16, Int32, Int16)
Modbus function 23 (17 hex), Read/Write Registers.
(Inherited from MbusMasterFunctions.)
Public methodreadWriteRegisters(Int32, Int32, Int16, Int32, Int32, Int16, Int32)
Modbus function 23 (17 hex), Read/Write Registers.
(Inherited from MbusMasterFunctions.)
Public methodresetSuccessCounter
Resets successful message transfer counter
(Inherited from MbusMasterFunctions.)
Public methodresetTotalCounter
Resets total message transfer counter
(Inherited from MbusMasterFunctions.)
Public methodrestartCommunicationsOption
Modbus function code 8, sub-function 01, Restart Communications Option
(Inherited from MbusMasterFunctions.)
Public methodreturnQueryData
Modbus function code 8, sub-function 00, Return Query Data.
(Inherited from MbusMasterFunctions.)
Public methodsetClosingTimeout
Configures socket close time-out
(Inherited from MbusIpClientBase.)
Public methodsetPollDelay
Poll delay property
(Inherited from MbusMasterFunctions.)
Public methodsetPort
Sets the TCP port number of the Modbus slave device.
(Inherited from MbusIpClientBase.)
Public methodsetRetryCnt
Configures the automatic retry setting
(Inherited from MbusMasterFunctions.)
Public methodsetTimeout
Configures time-out
(Inherited from MbusMasterFunctions.)
Public methodwriteCoil
Modbus function 5 (05 hex), Force Single Coil/Write Coil.
(Inherited from MbusMasterFunctions.)
Public methodwriteFileRecord(Int32, MbusMasterFunctionsFileSubRequest)
Modbus function 21, Write File Record.
(Inherited from MbusMasterFunctions.)
Public methodwriteFileRecord(Int32, Int32, Int32, Int32, Int16)
Modbus function 21, Write File Record.
(Inherited from MbusMasterFunctions.)
Public methodwriteMultipleMod10000(Int32, Int32, Int32)
Modbus function 16 (10 hex) for 32-bit modulo-10000 long int data types, Preset Multiple Registers/Write Multiple Registers with modulo-10000 long int data.
(Inherited from MbusMasterFunctions.)
Public methodwriteMultipleMod10000(Int32, Int32, Int32, Int32)
Modbus function 16 (10 hex) for 32-bit modulo-10000 long int data types, Preset Multiple Registers/Write Multiple Registers with modulo-10000 long int data.
(Inherited from MbusMasterFunctions.)
Public methodwriteMultipleRegisters(Int32, Int32, Array)
Modbus function 16 (10 hex), Write Multiple Registers (16-bit, 32-bit, 64-bit and floating point single and double).
(Inherited from MbusMasterFunctions.)
Public methodwriteMultipleRegisters(Int32, Int32, Array, Int32)
Modbus function 16 (10 hex), Write Multiple Registers (16-bit, 32-bit, 64-bit and floating point single and double).
(Inherited from MbusMasterFunctions.)
Public methodwriteSingleRegister(Int32, Int32, Int16)
Modbus function 6 (06 hex), Preset Single Register/Write Single Register.
(Inherited from MbusMasterFunctions.)
Public methodwriteSingleRegister(Int32, Int32, UInt16)
Modbus function 6 (06 hex), Preset Single Register/Write Single Register.
(Inherited from MbusMasterFunctions.)
Top
Remarks
This class realizes the Extended Lufkin Automation (ELAM) Modbus protocol encapsulated in a TCP stream. This proprietary Modbus extension allows adressing of up to 2295 slave units and the retrieval of up to 2500 registers for Modbus functions 3 and 4.

It's implementation is based on the specification "ELAM Extended Lufkin Automation Modbus Version 1.01" published by LUFKIN Automation. The ELAM multiple instruction requests extensions are not implemented.

Tests showed the following size limits with a LUFKIN SAM Well Manager device: Coils: 1992 for read Registers: 2500 to read, 60 for write

It is possible to instantiate multiple instances of this class for establishing multiple connections on different serial ports (They should be executed in separate threads).

See Also

Reference

FieldTalk.Modbus.Master Namespace

Other Resources

Data and Control Functions for all Modbus Protocol Flavours
IP based Protocols
FieldTalk Modbus Master Library for .NET
Library version 2.15.2
Speak to the Experts
Modbus Organization Member logo

We are member of the Modbus Organization, Inc.

Buy with Confidence
30-day money back guarantee All our FieldTalk web sales are backed by a 30-day Money Back Guarantee.
We Accept
Bank VISA MasterCard PayPal
Customer Info
  • Info & Contact
  • Customer Login
  • Terms of Service
  • Terms of Sale
  • Privacy Policy
© 2005-2025 proconX Pty Ltd. All rights reserved. proconX and FieldTalk are trademarks of proconX Pty Ltd.
All other trademarks and registered trademarks appearing on www.modbusdriver.com are the property of their respective owners.