12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //
- // Created by lloyd on 2020/9/28.
- //
- #ifndef GTCVR_GTDATASOURCE_H
- #define GTCVR_GTDATASOURCE_H
- #include <stdint-gcc.h>
- #include "DataMapping/dgns_gtbaseparam.h"
- #include "DataMapping/dgns_gtstandard.h"
- class gtdatasource {
- public:
- //double **gtformatedata;
- //int sgtpointnum;
- //double N;
- //double S;
- //std::string gtprocdate;
- public:
- std::vector<std::vector<double>> getGTTest();
- void getGTFromModbus(dgns_gtbaseparam *gt_data);
- void get_std_gt(dgns_gtbaseparam >_data, std::string sgtprodate);
- /**
- * 瑞飞modbus 接口回写工况
- * @param gk_name_CH 工况中文名称(已配置的)
- * @return 是否写入成功
- */
- bool send_gtcvr_out_content_to_modbuscode_rf(std::string gk_name_CH);
- /**
- * 瑞飞modbus 接口回写单张功图所示液量
- * @param liqproc 计算出的24h产能 t
- * @param gtnumdaily 一天内功图数量
- * @return
- */
- bool send_gtaoid_out_singlegtproc_to_modbuscode_rf(double liqproc, int gtnumdaily);
- private:
- bool write_gtcvr_out_content_to_modbus_tcp_server(uint16_t buff);
- /**
- * 标准工况类型编码后内容输入到modbus server
- * @param buff 工况既定标准输出编码数组
- * @param buffnum 个数
- * @return
- */
- bool write_gtcvr_out_content_to_modbus_tcp_server(uint16_t *buff, unsigned int buffnum);
- bool write_gtaoid_out_singlegtproc_to_modbus_tcp_server(uint16_t buff);
- };
- #endif //GTCVR_GTDATASOURCE_H
|