package com.example.pdaplccontrol; public interface PlcValueSender { /** * 只在用户选择线体时写一次,避免持续写入覆盖触摸屏侧操作。 */ void sendLineNumber(short lineNumber) throws PlcCommunicationException; /** * 只在用户完成重量输入时写一次;PLC 侧按克整数保存重量。 */ void sendWeightGrams(short weightGrams) throws PlcCommunicationException; }