Class MyProcessImage

java.lang.Object
io.openems.edge.controller.api.modbus.MyProcessImage
All Implemented Interfaces:
com.ghgande.j2mod.modbus.procimg.ProcessImage

public class MyProcessImage extends Object implements com.ghgande.j2mod.modbus.procimg.ProcessImage
This implementation answers Modbus-TCP Slave requests.
  • Field Details

  • Constructor Details

  • Method Details

    • getInputRegisterRange

      public com.ghgande.j2mod.modbus.procimg.InputRegister[] getInputRegisterRange(int offset, int count) throws MyIllegalAddressException
      Specified by:
      getInputRegisterRange in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
      Throws:
      MyIllegalAddressException
    • getRegisterRange

      public com.ghgande.j2mod.modbus.procimg.Register[] getRegisterRange(int offset, int count) throws MyIllegalAddressException
      Specified by:
      getRegisterRange in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
      Throws:
      MyIllegalAddressException
    • getRegister

      public com.ghgande.j2mod.modbus.procimg.Register getRegister(int ref) throws MyIllegalAddressException
      Specified by:
      getRegister in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
      Throws:
      MyIllegalAddressException
    • getInputRegister

      public com.ghgande.j2mod.modbus.procimg.InputRegister getInputRegister(int ref)
      From here, the methods are not implemented!.
      Specified by:
      getInputRegister in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getInputRegisterCount

      public int getInputRegisterCount()
      Specified by:
      getInputRegisterCount in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getDigitalOutRange

      public com.ghgande.j2mod.modbus.procimg.DigitalOut[] getDigitalOutRange(int offset, int count)
      Specified by:
      getDigitalOutRange in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getDigitalOut

      public com.ghgande.j2mod.modbus.procimg.DigitalOut getDigitalOut(int ref)
      Specified by:
      getDigitalOut in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getDigitalOutCount

      public int getDigitalOutCount()
      Specified by:
      getDigitalOutCount in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getDigitalInRange

      public com.ghgande.j2mod.modbus.procimg.DigitalIn[] getDigitalInRange(int offset, int count)
      Specified by:
      getDigitalInRange in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getDigitalIn

      public com.ghgande.j2mod.modbus.procimg.DigitalIn getDigitalIn(int ref)
      Specified by:
      getDigitalIn in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getDigitalInCount

      public int getDigitalInCount()
      Specified by:
      getDigitalInCount in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getRegisterCount

      public int getRegisterCount()
      Specified by:
      getRegisterCount in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getFile

      public com.ghgande.j2mod.modbus.procimg.File getFile(int ref)
      Specified by:
      getFile in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getFileByNumber

      public com.ghgande.j2mod.modbus.procimg.File getFileByNumber(int ref)
      Specified by:
      getFileByNumber in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getFileCount

      public int getFileCount()
      Specified by:
      getFileCount in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getFIFO

      public com.ghgande.j2mod.modbus.procimg.FIFO getFIFO(int ref)
      Specified by:
      getFIFO in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getFIFOByAddress

      public com.ghgande.j2mod.modbus.procimg.FIFO getFIFOByAddress(int ref)
      Specified by:
      getFIFOByAddress in interface com.ghgande.j2mod.modbus.procimg.ProcessImage
    • getFIFOCount

      public int getFIFOCount()
      Specified by:
      getFIFOCount in interface com.ghgande.j2mod.modbus.procimg.ProcessImage