Skip to main content

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​
Declaration
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​
Declaration
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​
Declaration
public Task<ICurrentInputPort> CreateCurrentInputPort(IPin pin)
Returns​

System.Threading.Tasks.Task<Meadow.Hardware.ICurrentInputPort>: A new ICurrentInputPort instance configured for current measurement.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe 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​
Declaration
public Task<IVoltageInputPort> CreateVoltageInputPort(IPin pin)
Returns​

System.Threading.Tasks.Task<Meadow.Hardware.IVoltageInputPort>: A new IVoltageInputPort instance configured for voltage measurement.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin to configure as a voltage input port.

CreateDigitalInputPort(IPin, ResistorMode)​

Creates an IDigitalInputPort on the specified pin.

View Source​
Declaration
public IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode = ResistorMode.Disabled)
Returns​

Meadow.Hardware.IDigitalInputPort

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin on which to create the port.
Meadow.Hardware.ResistorModeresistorModeThe 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​
Declaration
public ICounter CreateCounter(IPin pin, InterruptMode edge = InterruptMode.EdgeRising)
Returns​

Meadow.Hardware.ICounter: The created counter instance.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin to create the counter on.
Meadow.Hardware.InterruptModeedgeThe interrupt edge mode for the counter.

ReadBaudRate()​

Gets the Modbus communication bitrate the sensor is configured to use

View Source​
Declaration
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​
Declaration
public override Task WriteBaudRate(int bitrate)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.Int32bitrate

WriteModbusAddress(byte)​

Sets the Modbus node address of the sensor

View Source​
Declaration
public override Task WriteModbusAddress(byte newAddress)
Returns​

System.Threading.Tasks.Task

Parameters​
TypeName
System.BytenewAddress

Implements​