Blower.h
/** * (c)2017 CDP Technologies AS */ #ifndef TANKCONTROLLIB_BLOWER_H #define TANKCONTROLLIB_BLOWER_H #include <CDPSystem/Base/CDPComponent.h> #include <Signal/CDPSignal.h> #include <OSAPI/Timer/CDPParameterTimer.h> #include <CDPAlarm/CDPAlarm.h> namespace TankControlLib { class Blower : public CDPComponent { public: Blower(); ~Blower() override; void Create(const char* fullName) override; void Destroy() override; void CreateModel() override; void Configure(const char* componentXML) override; void ProcessNull() override; void ProcessRunning(); void ProcessStop(); bool TransitionRunningToStop(); bool TransitionStopToRunning(); bool TransitionNullToStop(); protected: CDPParameterTimer DelayTime; CDPSignal<bool> FeedingActiveTank1; CDPSignal<bool> FeedingActiveTank2; CDPSignal<bool> BlowerActive; using CDPComponent::requestedState; using CDPComponent::ts; using CDPComponent::fs; }; } // namespace TankControlLib #endif
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.