Test.java 403 B

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