Click or drag to resize

Pc200 Class

PC-200 Power Conditioner on Ethernet Interface.

This class will trigger BaseEvent event.

Inheritance Hierarchy

Namespace: Crestron.SimplSharpPro.GeneralIO.PowerConditioners
Assembly: Crestron.SimplSharpPro.GeneralIO (in Crestron.SimplSharpPro.GeneralIO.dll) Version: 2.21.121
Syntax
C#
public sealed class Pc200 : PcX00

The Pc200 type exposes the following members.

Constructors
 NameDescription
Public methodPc200 Constructor to generate a new Pc200 device.
Top
Properties
 NameDescription
Public propertyConnectedIpList 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)
Public propertyDataLoggingFeedback Property to indicate that logging to internal filesystem is enabled (true) or disabled (false).

The BaseEvent event will trigger with DataLoggingFeedbackEventId.


(Inherited from PcX00)
Public propertyCode exampleDescription Get/Set the description of this device.
(Inherited from GenericBase)
Public propertyDisposed Property to indicate if the device has been disposed.
(Inherited from GenericDevice)
Public propertyFrontPanelDisplayBrightness Property to set the Front Panel Display Brightness Valid range is 0 to 65535. Please use thePercentToUshort(Single)to convert the percentage to a ushort value
(Inherited from PcX00)
Public propertyFrontPanelDisplayBrightnessFeedback Property to report the Front Panel Display Brightness

The BaseEvent event will trigger with FrontPanelDisplayBrightnessFeedbackEventId.

Valid range is 0 to 65535. Please use theUshortToPercent(UInt16)to convert the ushort to a percentage value.
(Inherited from PcX00)
Public propertyFrontPanelDisplayFeedback Property to indicate that the front panel display is ON (true) or OFF (false).

The BaseEvent event will trigger with FrontPanelDisplayFeedbackEventId.


(Inherited from PcX00)
Public propertyFrontPanelLockFeedback Property to indicate that the front panel is locked (true) or unlocked (false).

The BaseEvent event will trigger with FrontPanelLockFeedbackEventId.


(Inherited from PcX00)
Public propertyHostnameOrIPAddressToPingObsolete.
Property to set the Hostname or IP address of the device to ping. This specifies the device to ping and if the ping fails then the outlet specified by OutletToShutdownOnPingFailure is turned off and on.
(Inherited from PcX00)
Public propertyHostnameOrIPAddressToPingFeedbackObsolete.
Property to return the Hostname or IP address of device to ping.

The BaseEvent event will trigger with HostnameOrIPAddressToPingFeedbackEventId.


(Inherited from PcX00)
Public propertyID Property to get the ID of the device.
(Inherited from GenericDevice)
Public propertyInputCurrentFeedback Property to report the total RMS Current reading in Amps.

The BaseEvent event will trigger with InputCurrentFeedbackEventId.


(Inherited from PcXxx)
Public propertyInputEnergyFeedback Property to report the Energy reading converted to an integer from a 9-digit decimal string format. This property is valid for Pc200, CresnetPc200, "Pc350v12", "CresnetPc350v12" "Pc350v18" and "CresnetPc350v18" devices only, return value is 0 otherwise.

The BaseEvent event will trigger with InputEnergyFeedbackEventId.


(Inherited from PcXxx)
Public propertyInputEnergyFeedbackRaw Property to report the Energy reading formatted as a 9-digit decimal string. This property is valid for Pc200, CresnetPc200, "Pc350v12", "CresnetPc350v12" "Pc350v18" and "CresnetPc350v18" devices only.

The BaseEvent event will trigger with InputEnergyFeedbackEventId.


(Inherited from PcXxx)
Public propertyInputPowerFeedback Property to report the Power reading in Watts. This property is valid for Pc200, CresnetPc200, "Pc350v12", "CresnetPc350v12" "Pc350v18" and "CresnetPc350v18" devices only.

The BaseEvent event will trigger with InputPowerFeedbackEventId.


(Inherited from PcXxx)
Public propertyInputVoltageFeedback Property to report the latest RMS voltage reading in volts.

The BaseEvent event will trigger with InputVoltageFeedbackEventId.


(Inherited from PcXxx)
Public propertyIsOnline Property to get the current online state of the device.
(Inherited from GenericDevice)
Public propertyName Get the name of this device.
(Inherited from GenericBase)
Public propertyOutletBanks Collection of OutletBanks this power condition can control.
(Inherited from PcXxx)
Public propertyOutletToShutdownOnPingFailureObsolete.
Property to get/set the outlet bank to shutdown on a ping failure. The get returns the last value which was set and not the feedback OutletToShutdownOnPingFailureFeedback reported by the device
(Inherited from PcX00)
Public propertyOutletToShutdownOnPingFailureFeedbackObsolete.
Property to report the outlet bank to shutdown on a ping failure.

The BaseEvent event will trigger with OutletToShutdownOnPingFailureFeedbackEventId.

This always reports the last outlet value
(Inherited from PcX00)
Public propertyOverCurrentCutoff Property to set the high RMS current limit in Amps. Automatic shutdown when total current is above this threshold.
(Inherited from PcXxx)
Public propertyOverCurrentCutoffFeedback Property to report the high RMS current limit in Amps.

The BaseEvent event will trigger with OverCurrentCutoffFeedbackEventId.


(Inherited from PcXxx)
Public propertyOverCurrentFeedback Property to indicate that a over current condition detected.

The BaseEvent event will trigger with OverCurrentFeedbackEventId.


(Inherited from PcXxx)
Public propertyOverVoltageCutoff Property to set the high RMS voltage limit in volts. Automatic shutdown when voltage is above this threshold.
(Inherited from PcXxx)
Public propertyOverVoltageCutoffFeedback Property to report the high RMS voltage limit in volts.

The BaseEvent event will trigger with OverVoltageCutoffFeedbackEventId.


(Inherited from PcXxx)
Public propertyOverVoltageFeedback Property to indicate that a over voltage condition detected.

The BaseEvent event will trigger with OverVoltageFeedbackEventId.


(Inherited from PcXxx)
Public propertyParent The parent that a given object was added to.
(Inherited from GenericBase)
Public propertyPingFailureFeedback Property to indicate that a ping attempt has failed. This property is not valid for "Pc350v12", "CresnetPc350v12" "Pc350v18" and "CresnetPc350v18" devices.

The BaseEvent event will trigger with PingFailureFeedbackEventId.


(Inherited from PcX00)
Public propertyPingFailureReportingFeedbackObsolete.
Property to indicate that reporting of ping failure is enabled (true) or disabled (false).

The BaseEvent event will trigger with PingFailureReportingFeedbackEventId.


(Inherited from PcX00)
Public propertyPingInterval Property to set the delay between ping attempts in minutes.
(Inherited from PcX00)
Public propertyPingIntervalFeedback Property to report the delay between ping attempts in seconds.

The BaseEvent event will trigger with PingIntervalFeedbackEventId.


(Inherited from PcX00)
Public propertyPingMonitorEnabledFeedback Property to indicate if the ping monitor feature is enabled (true) or disabled (false).

The BaseEvent event will trigger with PingMonitorEnabledFeedbackEventId.


(Inherited from PcX00)
Public propertyPowerCycleDelay Property to set the power cycle delay. This is the time in seconds, the outlets will be turned off when the PowerCycle or PowerCycle method is called.
(Inherited from PcX00)
Public propertyPowerCycleDelayFeedback Property to report the power cycle delay. This is the time in seconds, the outlets will be turned off when the PowerCycle or PowerCycle method is called.

The BaseEvent event will trigger with PowerCycleDelayFeedbackEventId.


(Inherited from PcX00)
Public propertyPowerCycleFeedback Property to indicate that the power is being cycled to all the outlets.

The BaseEvent event will trigger with PowerCycleFeedbackEventId.

This property will stay true for the time defined by the PowerCycleDelay property.
(Inherited from PcX00)
Public propertyPowerSwitchOnFeedback Property to indicate that the front panel power switch is activated.

The BaseEvent event will trigger with PowerSwitchOnFeedbackEventId.


(Inherited from PcX00)
Public propertyProtectionCompromisedFeedback Property to indicate that the surge protection has failed.

The BaseEvent event will trigger with ProtectionCompromisedEventId.


(Inherited from PcXxx)
Public propertyRegisterable Property to indicate that this device can be registered.
(Inherited from GenericDevice)
Public propertyRegistered Property to get the current registration state of the device.
(Inherited from GenericDevice)
Public propertyRegistrationFailureReason Property to get the Registration Failure Reason, this will match the return value from the call to register.
(Inherited from GenericDevice)
Public propertySamplingInterval Property to set the interval between join updates and log entries in seconds.
(Inherited from PcX00)
Public propertySamplingIntervalFeedback Property to report the interval between join updates and log entries in seconds.

The BaseEvent event will trigger with SamplingIntervalFeedbackEventId.


(Inherited from PcX00)
Public propertyShowOutletControlMenuFeedback Property to indicate that outlet control menu is enabled on the top level (true) or is hidden (false).

The BaseEvent event will trigger with ShowOutletControlMenuFeedbackEventId.


(Inherited from PcX00)
Protected propertySIMPLDeviceImplementation Internal protected member used for actual device control.
(Inherited from GenericDevice)
Public propertySurgeDetectedFeedback Property to indicate that the surge protection failure is detected. This property is not valid for "Pc350v12", "CresnetPc350v12" "Pc350v18" and "CresnetPc350v18" devices.

The BaseEvent event will trigger with SurgeProtectionFeedbackEventId.


(Inherited from PcX00)
Public propertyTemperatureFeedback Property to report the latest temperature reading in Celsius/Fahrenheit.

The BaseEvent event will trigger with TemperatureFeedbackEventId.


(Inherited from PcXxx)
Public propertyTemperatureFormatReportingFeedback Property to indicate that the temperature is specified and reported in Celsius (true) or fahrenheit (false).

The BaseEvent event will trigger with TemperatureFormatReportingFeedbackEventId.


(Inherited from PcX00)
Public propertyTemperatureHighCutoff Property to set high temperature limit. Automatic shutdown when temperature is above this threshold.
(Inherited from PcX00)
Public propertyTemperatureHighCutoffFeedback Property to report the high temperature limit.

The BaseEvent event will trigger with TemperatureHighCutoffFeedbackEventId.


(Inherited from PcX00)
Public propertyTemperatureOverRangeFeedback Property to indicate that the temperature outside limits. This property is not valid for "Pc350v12", "CresnetPc350v12" "Pc350v18" and "CresnetPc350v18" devices.

The BaseEvent event will trigger with TemperatureOverRangeFeedbackEventId.


(Inherited from PcX00)
Public propertyTemperatureReadingValidFeedback Property to indicate that the temperature readings are valid. This property is not valid for "Pc350v12", "CresnetPc350v12" "Pc350v18" and "CresnetPc350v18" devices.

The BaseEvent event will trigger with TemperatureReadingValidFeedbackEventId.


(Inherited from PcX00)
Public propertyType Property to determine to type of device this is.
(Inherited from GenericDevice)
Public propertyUnderVoltageCutoff Property to set the low RMS voltage limit in volts. Automatic shutdown when voltage is below this threshold.
(Inherited from PcXxx)
Public propertyUnderVoltageCutoffFeedback Property to report the low RMS voltage limit in volts.

The BaseEvent event will trigger with UnderVoltageCutoffFeedbackEventId.


(Inherited from PcXxx)
Public propertyUnderVoltageFeedback Property to indicate that an under voltage condition detected.

The BaseEvent event will trigger with UnderVoltageFeedbackEventId.


(Inherited from PcXxx)
Public propertyUnRegistrationFailureReason Property to get the Unregistration Failure Reason, this will match the return value from the call to unregister.
(Inherited from GenericDevice)
Public propertyUserSpecifiedObject Can be assigned anything that user wants.
(Inherited from GenericBase)
Public propertyWiringFaultFeedback Property to indicate that wiring fault detected.

The BaseEvent event will trigger with WiringFaultEventId.


(Inherited from PcXxx)
Protected propertyXioEndpointStubSIMPLDevice 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)
Top
Methods
 NameDescription
Public methodDisableDataLogging Method to disable logging to internal filesystem.
(Inherited from PcX00)
Public methodDisablePingMonitor Method to disable the ping monitoring feature of the power condition.
(Inherited from PcX00)
Public methodDisableReportingPingFailureObsolete.
Method to disable reporting of ping failure.
(Inherited from PcX00)
Public methodDisableShowOutletControlMenu Method to hide outlet control menu on top level (bypass security).
(Inherited from PcX00)
Public methodDispose Clean up of resources.
(Inherited from GenericBase)
Protected methodDispose(Boolean) Method to perform the actual disposing of the device.
(Inherited from GenericDevice)
Public methodEnableDataLogging Method to enable logging to internal filesystem.
(Inherited from PcX00)
Public methodEnablePingMonitor Method to enable the ping monitoring feature of the power condition.

This method needs to be invoked before setting any of the Outlet properties.


(Inherited from PcX00)
Public methodEnableReportingPingFailureObsolete.
Method to enable reporting of ping failure.
(Inherited from PcX00)
Public methodEnableShowOutletControlMenu Method to show outlet control menu on top level (bypass security).
(Inherited from PcX00)
Public methodEnableTemperatureReportingInCelsius Method to set that the temperature is specified and reported in Celsius.
(Inherited from PcX00)
Public methodEnableTemperatureReportingInFahrenheit Method to set that the temperature is specified and reported in Fahrenheit.
(Inherited from PcX00)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalize Destructor of the device.
(Inherited from GenericDevice)
Public methodFrontPanelDisplayOff Method to turn off the front panel display.
(Inherited from PcX00)
Public methodFrontPanelDisplayOn Method to turn on the front panel display
(Inherited from PcX00)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodLockFrontPanel Method to lock the front panel.
(Inherited from PcX00)
Protected methodOnBaseEvent(Int32) Protected member used to fire the BaseEvent with the default extended information.
(Inherited from GenericBase)
Protected methodOnBaseEvent(Int32, UInt16) Protected member used to fine the BaseEvent with extended event information.
(Inherited from GenericBase)
Public methodPowerCycle Method to power cycle all the outlets. The outlets will stay off for the duration specified by the PowerCycleDelay property for Pc200, CresnetPc200, Pc300 and CresnetPc300.
(Inherited from PcXxx)
Public methodRegister Register this device with the system.
(Inherited from GenericDevice)
Public methodResetEnergyCount Method to reset accumulated energy count for all outlets.
(Inherited from PcXxx)
Public methodToString Return the name of the device.
(Inherited from GenericDevice)
Public methodUnlockFrontPanel Method to unlock the front panel.
(Inherited from PcX00)
Public methodUnRegister 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)
Top
Events
 NameDescription
Public eventBaseEvent Generic base event, triggered when the there are no other handlers available for a specific EventID.
(Inherited from GenericBase)
Public eventIpInformationChange 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)
Public eventOnlineStatusChange Event triggered when the Online status of the device changes.
(Inherited from GenericDevice)
Top
Fields
 NameDescription
Public fieldNumberOfOutletBanks Number of OutletBank objects in the OutletBanks collection for this power conditioner.
(Inherited from PcXxx)
Public fieldNumberOfPingMonitors Number of PingMonitor or "Pc350vPingMonitor" objects in the PingMonitors or "Pc350vPingMonitor" collection for this power conditioner.
(Inherited from PcXxx)
Public fieldPingMonitors Collection of PingMonitor objects where the Target and Outlet can be set.
(Inherited from PcX00)
Top
Example
C#
static PcX00 _pc200;

public ControlSystemPcX00()
{
    //Register console commands
    CrestronConsole.AddNewConsoleCommand(CreateDeviceCmd, "CreateDevice", "This is a PC-X00 CreateDevice command", ConsoleAccessLevelEnum.AccessOperator);
}

// Method to handle sig change events for PC-X00
static void PcX00_EventHandler(GenericBase genericBase, BaseEventArgs args) 
{
    if (args.EventId == PcX00.PowerSwitchOnFeedbackEventId)
    {
        CrestronConsole.PrintLine("PowerSwitchOnFeedbackEventId event occurred");
    }
    else if (args.EventId == PcX00.OutletBankEnergyFeedbackEventId)
    {
        CrestronConsole.PrintLine("OutletBankEnergyFeedbackEventId for Outlet Bank {0} event occurred", args.Index);
    }
}

public void CreateDeviceCmd(String args)
{
    //Initialize the PC-200 device for Ethernet Communication
    _pc200 = new Pc200(0x16, this);

    _pc200.BaseEvent += PcX00_EventHandler;

    //Register the PC-200 with the Control system
    //This will enable the gateway connection ("127.0.0.1") in the system at the 
    //ID specified above that the PC-200 will connect to.
    _pc200.Register();
}

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also