Plain Input 暂存输入,不填写 PLC Tag,也不自动写设备。脚本通过 template.getValue("Input Template") 读取,参数为输入实例名。
- 适合先输入、后确认的场景
- 适合需要脚本二次判断的场景
- 适合页面暂存输入,不直接写设备
var recipeName = template.getValue("Input Template");
if (recipeName !== "") {
WriteTagString("PLC_LINE01.PUMP01.RECIPE", recipeName);
}