如果是用数值输入要用到宏指令来实现。
例如:
macro_command main()
unsigned short a //变量定义
GetData(a, "Local HMI", LW, 0, 1) //读取触摸屏本机地址LW0数据
SetData(a, "MODBUS RTU", 4x, 1#9, 1) //发送到1号站频率
SetData(a, "MODBUS RTU", 4x, 2#9, 1) //发送到2号站频率
SetData(a, "MODBUS RTU", 4x, 3#9, 1) //发送到3号站频率
SetData(a, "MODBUS RTU", 4x, 4#9, 1) //发送到4号站频率
end macro_command |