package com.mes.ui; import com.github.xingshuangs.iot.protocol.s7.enums.EPlcType; import com.github.xingshuangs.iot.protocol.s7.service.S7PLC; public class Test { public static S7PLC s7PLC = new S7PLC(EPlcType.S1200,"192.168.1.10"); public static void main(String[] args) { System.out.println(s7PLC.readBoolean("DB10.12.0")); // s7PLC.writeBoolean("DB10.6.0",false); } }