| | |
| | | #pragma once |
| | | #include "afxdialogex.h" |
| | | #include "BlButton.h" |
| | | |
| | | // BUTTON控件 |
| | | #define BTN_MAX 7 |
| | | #define BTN_RUN 0 |
| | | #define BTN_AUTO 1 |
| | | #define BTN_PUASE 2 |
| | | #define BTN_MANUAL 3 |
| | | #define BTN_MUTE 4 |
| | | #define BTN_OPR 5 |
| | | #define BTN_STOP 6 |
| | | |
| | | // CProjectPageMain 对话框 |
| | | |
| | |
| | | |
| | | private: |
| | | void InitRxWindows(); |
| | | void SetButtonBackgroundColors(CBlButton* btn, bool bOff); |
| | | void HandleOperation(OperationType eOpType); |
| | | void WriteOperationDataToPLC(OperationType eOpType, bool bPressed); |
| | | void ReadPLCDataToUI(); |
| | | |
| | | private: |
| | | COLORREF m_crBkgnd; |
| | |
| | | IObserver* m_pObserver; |
| | | CPLC* m_pPLC; |
| | | |
| | | int nVelocityRatio; // 速度比 |
| | | double dTactTime; // 周期时间 |
| | | int nDayShiftCapacity; |
| | | int nNightShiftCapacity; |
| | | private: |
| | | // 控件 |
| | | CBlButton* m_pBlBtns[BTN_MAX]; |
| | | |
| | | // 对话框数据 |
| | | #ifdef AFX_DESIGN_TIME |