#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; };