Class FC1ReadCoilsTask

java.lang.Object
io.openems.edge.bridge.modbus.api.task.AbstractTask<com.ghgande.j2mod.modbus.msg.ReadCoilsRequest,com.ghgande.j2mod.modbus.msg.ReadCoilsResponse>
io.openems.edge.bridge.modbus.api.task.AbstractReadTask<com.ghgande.j2mod.modbus.msg.ReadCoilsRequest,com.ghgande.j2mod.modbus.msg.ReadCoilsResponse,CoilElement,Boolean>
io.openems.edge.bridge.modbus.api.task.AbstractReadDigitalInputsTask<com.ghgande.j2mod.modbus.msg.ReadCoilsRequest,com.ghgande.j2mod.modbus.msg.ReadCoilsResponse>
io.openems.edge.bridge.modbus.api.task.FC1ReadCoilsTask
All Implemented Interfaces:
ReadTask, Task, ManagedTask

public class FC1ReadCoilsTask extends AbstractReadDigitalInputsTask<com.ghgande.j2mod.modbus.msg.ReadCoilsRequest,com.ghgande.j2mod.modbus.msg.ReadCoilsResponse>
Implements a Read Coils Task, implementing Modbus function code 1 (http://www.simplymodbus.ca/FC01.htm).
  • Constructor Details

    • FC1ReadCoilsTask

      public FC1ReadCoilsTask(int startAddress, Priority priority, CoilElement... elements)
  • Method Details

    • createModbusRequest

      protected com.ghgande.j2mod.modbus.msg.ReadCoilsRequest createModbusRequest()
      Description copied from class: AbstractReadTask
      Factory for a ModbusRequest.
      Specified by:
      createModbusRequest in class AbstractReadTask<com.ghgande.j2mod.modbus.msg.ReadCoilsRequest,com.ghgande.j2mod.modbus.msg.ReadCoilsResponse,CoilElement,Boolean>
      Returns:
      a new ModbusRequest
    • parseBitResponse

      protected com.ghgande.j2mod.modbus.util.BitVector parseBitResponse(com.ghgande.j2mod.modbus.msg.ReadCoilsResponse response)
      Specified by:
      parseBitResponse in class AbstractReadDigitalInputsTask<com.ghgande.j2mod.modbus.msg.ReadCoilsRequest,com.ghgande.j2mod.modbus.msg.ReadCoilsResponse>