Class T322ai
Driver for Temco Controls T322ai analog input module. Provides 22 channels of analog input supporting both voltage (0-10V) and current (4-20mA) measurements. Implements controller interfaces for creating voltage and current input ports.
Assembly: Temco.T3xxx.dll
View Source
public class T322ai : T3xxx, IT322ai, IT3Module, ICurrentInputController, IVoltageInputController, IDigitalInputController, ICounterController, IPinController
Inheritance: System.Object -> Meadow.Foundation.IOExpanders.T3xxx
Implements:
Meadow.Foundation.IOExpanders.IT322ai, Meadow.Foundation.IOExpanders.IT3Module, Meadow.Hardware.ICurrentInputController, Meadow.Hardware.IVoltageInputController, Meadow.Hardware.IDigitalInputController, Meadow.Hardware.ICounterController, Meadow.Hardware.IPinController
Properties
Pins
Gets the pin definitions for this T322ai module, providing access to all 22 analog input pins.
View Source
public T322ai.PinDefinitions Pins { get; }
Methods
CreateCurrentInputPort(IPin)
Creates a current input port configured for 4-20mA measurement on the specified pin. Automatically configures the channel for current input range and sets it to auto mode.
View Source
public Task<ICurrentInputPort> CreateCurrentInputPort(IPin pin)
Returns
System.Threading.Tasks.Task<Meadow.Hardware.ICurrentInputPort>: A new ICurrentInputPort instance configured for current measurement.
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin to configure as a current input port. |
CreateVoltageInputPort(IPin)
Creates a voltage input port configured for 0-10V measurement on the specified pin. Automatically configures the channel for voltage input range and sets it to auto mode.
View Source
public Task<IVoltageInputPort> CreateVoltageInputPort(IPin pin)
Returns
System.Threading.Tasks.Task<Meadow.Hardware.IVoltageInputPort>: A new IVoltageInputPort instance configured for voltage measurement.
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin to configure as a voltage input port. |
CreateDigitalInputPort(IPin, ResistorMode)
Creates an IDigitalInputPort on the specified pin.
View Source
public IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode = ResistorMode.Disabled)
Returns
Meadow.Hardware.IDigitalInputPort
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin on which to create the port. |
Meadow.Hardware.ResistorMode | resistorMode | The ResistorMode specifying whether an |
external pull-up/pull-down resistor is used, or an internal pull-up/pull-down
resistor should be configured for default state. |
CreateCounter(IPin, InterruptMode)
Creates an ICounter instance on the specified pin with the specified interrupt edge mode.
View Source
public ICounter CreateCounter(IPin pin, InterruptMode edge = InterruptMode.EdgeRising)
Returns
Meadow.Hardware.ICounter: The created counter instance.
Parameters
| Type | Name | Description |
|---|---|---|
Meadow.Hardware.IPin | pin | The pin to create the counter on. |
Meadow.Hardware.InterruptMode | edge | The interrupt edge mode for the counter. |
ReadBaudRate()
Gets the Modbus communication bitrate the sensor is configured to use
View Source
public override 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 override 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 override Task WriteModbusAddress(byte newAddress)
Returns
System.Threading.Tasks.Task
Parameters
| Type | Name |
|---|---|
System.Byte | newAddress |
Implements
- Meadow.Foundation.IOExpanders.IT322ai
- Meadow.Foundation.IOExpanders.IT3Module
Meadow.Hardware.ICurrentInputControllerMeadow.Hardware.IVoltageInputControllerMeadow.Hardware.IDigitalInputControllerMeadow.Hardware.ICounterControllerMeadow.Hardware.IPinController