Class T3xxx
Abstract base class for Temco Controls T3xxx series modules. Provides common functionality for communicating with T3 modules via Modbus protocol. Implements IPinController to manage module pins and I/O operations.
Assembly: Temco.T3xxx.dll
View Source
public abstract class T3xxx : IT3Module, IPinController
Derived:
Meadow.Foundation.IOExpanders.T322ai, Meadow.Foundation.IOExpanders.T38i8o6do
Implements:
Meadow.Foundation.IOExpanders.IT3Module, Meadow.Hardware.IPinController
Properties
ModbusClient
Gets the Modbus client used for communication with the T3 module.
View Source
protected IModbusBusClient ModbusClient { get; }
ModbusAddress
Gets the Modbus address of this T3 module on the bus.
View Source
public byte ModbusAddress { get; protected set; }
Methods
ReadModbusAddress()
Reads the current Modbus address of the T3 module.
View Source
public ValueTask<byte> ReadModbusAddress()
Returns
System.Threading.Tasks.ValueTask<System.Byte>: A ValueTask containing the module's Modbus address.
ReadSerialNumber()
Reads the serial number of the T3 module.
View Source
public Task<int> ReadSerialNumber()
Returns
System.Threading.Tasks.Task<System.Int32>: A task containing the module's unique serial number.
ReadFirmwareVersion()
Reads the firmware version of the T3 module.
View Source
public Task<float> ReadFirmwareVersion()
Returns
System.Threading.Tasks.Task<System.Single>: A task containing the module's firmware version as a float value.
ReadModel()
Reads the model identifier of the T3 module.
View Source
public Task<T3ModuleModel> ReadModel()
Returns
System.Threading.Tasks.Task<Meadow.Foundation.IOExpanders.T3ModuleModel>: A task containing the T3ModuleModel enum value identifying the specific module type.
ReadHardwareRevision()
Reads the hardware revision of the T3 module.
View Source
public Task<byte> ReadHardwareRevision()
Returns
System.Threading.Tasks.Task<System.Byte>: A task containing the module's hardware revision number.
ReadBaudRate()
Gets the Modbus communication bitrate the sensor is configured to use
View Source
public abstract Task<int> ReadBaudRate()
Returns
System.Threading.Tasks.Task<System.Int32>: A task containing the bitrate in bits per second
WriteBaudRate(int)
Sets the Modbus communication bitrate the sensor is configured to use
View Source
public abstract Task WriteBaudRate(int bitrate)
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name |
|---|---|
System.Int32 | bitrate |
WriteModbusAddress(byte)
Sets the Modbus node address of the sensor
View Source
public abstract Task WriteModbusAddress(byte newAddress)
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name |
|---|---|
System.Byte | newAddress |
Implements
- Meadow.Foundation.IOExpanders.IT3Module
Meadow.Hardware.IPinController