SourceCode/Bond/SGMeasurement/PLCSignalListener.h
@@ -1,4 +1,4 @@ #pragma once #pragma once #include "CCLinkIEControl.h" @@ -87,6 +87,17 @@ */ bool ReadProductID(std::string& strProductID); /** * @brief 将产品 ID(字符串形式)写入 PLC 内部。 * * @param strProductID 输入参数,要写入的产品 ID。 * 字符串会按字节对齐,每两个字节组成一个 Word, * 写入 PLC 的指定寄存器区域,不足时自动补零。 * @return true 写入成功。 * @return false 写入失败。 */ bool WriteProductID(const std::string& strProductID); private: /** * @brief 输出日志信息(封装日志回调)。