Din |
This class will trigger BaseEvent event.
public sealed class Din1Tstat8 : GenericDevice, ISendParameters
The Din1Tstat8 type exposes the following members.
| Name | Description | |
|---|---|---|
| Din1Tstat8(UInt32, CrestronControlSystem) | Constructor to create a new Din1Tstat8 object. | |
| Din1Tstat8(UInt32, IDeviceBranch) | Constructor to create a new Din1Tstat8 object. |
| Name | Description | |
|---|---|---|
| Channel |
Collection of Thermostat Control Channels.
This property will trigger BaseEvent event with event ids defined in Din1Tstat8. | |
| ConnectedIpList |
A property containing the list of the ConnectedIpInformation objects which contain information about the devices that are connected to this IP ID.
This property is only valid for an ethernet device. If this is not an ethernet device, then this property will return null.
If this is an ethernet device, the list will be non-null. It will be empty if no devices are connected.
The order of items in this list is not guaranteed.
(Inherited from GenericDevice) | |
| Description |
Get/Set the description of this device.
(Inherited from GenericBase) | |
| Disposed |
Property to indicate if the device has been disposed.
(Inherited from GenericDevice) | |
| ID |
Property to get the ID of the device.
(Inherited from GenericDevice) | |
| IsOnline |
Property to get the current online state of the device.
(Inherited from GenericDevice) | |
| Name |
Get the name of this device.
(Inherited from GenericBase) | |
| ParameterFahrenheitOrCelsius | Parameter to set the device temperature units as Deg C or Deg F (default = Deg C) true: temperature units are Deg F; false: temperature units are Deg C | |
| ParameterHeatAnticipator | Low number = more frequent cycles, faster response. High number = less frequent cycles, slower response. Default value is 3, valid value range is 1 to 6. | |
| ParameterMainValveTimeDelay | Parameter to set the delay before main valve opens, up to 5 minutes based on zone valve time to open specification (default = 0sec). Use the SecondsToUshort(Single) to convert the seconds to a ushort value or the UshortToSeconds(UInt16) to convert the ushort value to seconds. Default value is 0 seconds, valid range is 0 to 300 seconds. | |
| ParameterSystemFailsafe | Must be in Celsius, 200 = 20.0 deg C, default is 20.0, Minimum is 5.0 and maximum is 20.0. | |
| Parent |
The parent that a given object was added to.
(Inherited from GenericBase) | |
| Registerable |
Property to indicate that this device can be registered.
(Inherited from GenericDevice) | |
| Registered |
Property to get the current registration state of the device.
(Inherited from GenericDevice) | |
| RegistrationFailureReason |
Property to get the Registration Failure Reason, this will match the return value from the call to register.
(Inherited from GenericDevice) | |
| SIMPLDeviceImplementation |
Internal protected member used for actual device control.
(Inherited from GenericDevice) | |
| Type |
Property to determine to type of device this is.
(Inherited from GenericDevice) | |
| UnRegistrationFailureReason |
Property to get the Unregistration Failure Reason, this will match the return value from the call to unregister.
(Inherited from GenericDevice) | |
| UserSpecifiedObject |
Can be assigned anything that user wants.
(Inherited from GenericBase) | |
| XioEndpointStubSIMPLDevice |
The SIMPL "stub" Device that the XiO Director creates for an endpoint to send the 1C/0E to the
correct place in hierarchy.
(Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| Dispose |
Clean up of resources.
(Inherited from GenericBase) | |
| Dispose(Boolean) |
Method to perform the actual disposing of the device.
(Inherited from GenericDevice) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Destructor of the device.
(Inherited from GenericDevice) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| OnBaseEvent(Int32) |
Protected member used to fire the BaseEvent with the default extended information.
(Inherited from GenericBase) | |
| OnBaseEvent(Int32, UInt16) |
Protected member used to fine the BaseEvent with extended event information.
(Inherited from GenericBase) | |
| Register |
Register this device with the system.
(Inherited from GenericDevice) | |
| SendParameters | This will send the parameters fields (if any) to the device. It allows the parameters to be modified and resent without unregistering and re-registering a device. | |
| ToString |
Return the name of the device.
(Inherited from GenericDevice) | |
| UnRegister |
Unregister this device with the system. This function can not be called from the device's own SigChange event handler.
On successful unregistration, if this device supports the OnlineStatusChange event, it will trigger indicating the device when offline. (Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| BaseEvent |
Generic base event, triggered when the there are no other handlers available
for a specific EventID.
(Inherited from GenericBase) | |
| IpInformationChange |
Event that tells what IP Address is connected/disconnected from an IP ID for a non-UDP device.
This is only valid for an Ethernet device. An exception will be thrown if it is not.
(Inherited from GenericDevice) | |
| OnlineStatusChange |
Event triggered when the Online status of the device changes.
(Inherited from GenericDevice) |
| Name | Description | |
|---|---|---|
| ErrorFeedbackEventId |
The value of ErrorFeedback has changed.
The BaseEvent event will trigger for this event id and Index will indicate the index into the Channel collection. | |
| IsHeatingFeedbackEventId |
The state of IsHeatingFeedback has changed.
The BaseEvent event will trigger for this event id and Index will indicate the index into the Channel collection. | |
| ModeHeatFeedbackEventId |
The state of ModeHeatFeedback has changed.
The BaseEvent event will trigger for this event id and Index will indicate the index into the Channel collection. | |
| ModeOffFeedbackEventId |
The state of ModeOffFeedback has changed.
The BaseEvent event will trigger for this event id and Index will indicate the index into the Channel collection. | |
| SetPointFeedbackEventId |
The value of SetPointFeedback has changed.
The BaseEvent event will trigger for this event id and Index will indicate the index into the Channel collection. | |
| TemperatureFeedbackEventId |
The value of TemperatureFeedback has changed.
The BaseEvent event will trigger for this event id and Index will indicate the index into the Channel collection. |
Din1Tstat8 _myDin1Tstat8;
public ControlSystemDin1Tstat8()
{
//Register console commands
CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is an DIN-1TSTAT8 CreateDevice command", ConsoleAccessLevelEnum.AccessOperator);
CrestronConsole.AddNewConsoleCommand(SetSetPointCmd, "SetSetPoint", "This is an DIN-1TSTAT8 SetSetPoint command", ConsoleAccessLevelEnum.AccessOperator);
}
// Method to create the device object
public void CreateDeviceCmd(String args)
{
_myDin1Tstat8 = new Din1Tstat8(0x25, this);
_myDin1Tstat8.Register();
_myDin1Tstat8.BaseEvent += _din1Tstat8_BaseEvent;
}
//Event handler for the top level slot join changes
public void _din1Tstat8_BaseEvent(GenericBase device, BaseEventArgs args)
{
if (args.EventId == Din1Tstat8.ModeOffFeedbackEventId)
{
CrestronConsole.PrintLine("Mode Off Feedback event occurred {0}.\r\n", _myDin1Tstat8.Channel[(uint)args.Index].ModeOffFeedback);
}
else if (args.EventId == Din1Tstat8.TemperatureFeedbackEventId)
{
CrestronConsole.PrintLine("Temperature Feedback event occurred {0} and index is {1}.\r\n", _myDin1Tstat8.Channel[(uint)args.Index].TemperatureFeedback.UShortValue, args.Index);
}
}
//Method to set the set point value
public void SetSetPointCmd(String args)
{
var stra = args.Split(' ');
var index = Convert.ToUInt16(stra[0]);
var value = Convert.ToUInt16(stra[1]);
_myDin1Tstat8.Channel[index].Setpoint.UShortValue = value;
}
}