123456789101112131415161718192021222324 |
- #pragma once
- #include "CIO.h"
- class CCylinder
- {
- public:
- CCylinder(CIO* output, CIO*posInput,CIO* negInput,std::string name);
- ~CCylinder();
- LONG MovePosDir(bool sync = true);
- LONG MoveNegDir(bool sync = true);
- LONG WaitDone();
- private:
- const int TIMEOUT = 10000; //ms
- bool m_dir{ false };//false:¸º·½Ïò; true:Õý·½Ïò
- std::string m_sName = "";
- CIO* m_pOutput = nullptr;
- CIO* m_pPosInput = nullptr;
- CIO* m_pNegInput = nullptr;
-
- };
|