91 lines
2.7 KiB
C++
91 lines
2.7 KiB
C++
#ifndef IOSETWIDGET_H
|
|
#define IOSETWIDGET_H
|
|
#include <QFrame>
|
|
#include "ui_iosetwidget.h"
|
|
|
|
class IOSetWidget:public QFrame
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit IOSetWidget(QWidget* parent=nullptr);
|
|
|
|
public slots:
|
|
void on_sbRSECATAddr_valueChanged(int value);
|
|
void on_sbDOECATAddr_valueChanged(int value);
|
|
void on_sbDIECATAddr_valueChanged(int value);
|
|
void cbRedLightDONumCtTextChangedHandl(QString value);
|
|
void cbLaserDONumCtTextChangedHandl(QString value);
|
|
void cbYellowDONumCtTextChangedHandl(QString value);
|
|
void cbVacuumSuckerDONumCtTextChangedHandl(QString value);
|
|
void cbGreenLightDONumCtTextChangedHandl(QString value);
|
|
void cbFanDONum_currentTextChanged(const QString &value);
|
|
void cbLightSourceDONum_currentTextChanged(const QString &value);
|
|
void cbRunBtnDONum_currentTextChanged(const QString &value);
|
|
void cbStopBtnDONum_currentTextChanged(const QString &value);
|
|
void cbStopBtnDINum_currentTextChanged(const QString &value);
|
|
void cbRunBtnDINum_currentTextChanged(const QString &value);
|
|
void cbEStopDINum_currentTextChanged(const QString &value);
|
|
void cbDoorDINum1_currentTextChanged(const QString &value);
|
|
void cbDoorDINum2_currentTextChanged(const QString &value);
|
|
void cbAirValveDONum_currentTextChanged(const QString &value);
|
|
void cbCucegaoDONum_currentTextChanged(const QString &value);
|
|
void cbPin18DONum_currentTextChanged(const QString &value);
|
|
void cbLightDONum_currentTextChanged(const QString &value);
|
|
// void cbAirValveDONum_2_currentTextChanged(const QString &value);
|
|
void cbAirValveOpenDINum_currentTextChanged(const QString &value);
|
|
void cbAirValveCloseDINum_currentTextChanged(const QString &value);
|
|
void cbCuCeGaoDINum_currentTextChanged(const QString &value);
|
|
void setInState(int value);
|
|
|
|
void cbAllPressureDINum_currentTextChanged(const QString &value);
|
|
void cbUPS_currentTextChanged(const QString &value);
|
|
private slots:
|
|
|
|
|
|
void on_chkRed_clicked();
|
|
|
|
void on_chkYallow_clicked();
|
|
|
|
void on_chkGreen_clicked();
|
|
|
|
void on_chkStopBtn_clicked();
|
|
|
|
void on_chkRunBtn_clicked();
|
|
|
|
void on_chkVacuumSucker_clicked();
|
|
|
|
void on_chkLaser_clicked();
|
|
|
|
void on_chkFan_clicked();
|
|
|
|
void on_chkLightSource_clicked();
|
|
|
|
void on_chkAirValve_clicked();
|
|
|
|
|
|
void on_chkCucegao_clicked();
|
|
|
|
void on_chkPin18_clicked();
|
|
|
|
void on_chkLight_clicked();
|
|
|
|
private:
|
|
void loadSet();
|
|
int runBtnDINum;
|
|
int stopBtnDINum;
|
|
int estopBtnDINum;
|
|
int door1DINum;
|
|
int door2DINum;
|
|
int airValveOpenNum;
|
|
int airValveCloseNum;
|
|
int CuCeGaoNumDo;
|
|
int CuCeGaoNumDi;
|
|
int AllPressureDINum;
|
|
int UPS;
|
|
|
|
private:
|
|
Ui::IOSetWidget* ui;
|
|
};
|
|
|
|
#endif // IOSETWIDGET_H
|