This library create for easy generate modbus commands on swift
-
Read coil (one bit) register: readCoilStatus = 0x01
-
Read discrete (one bit) register: readDiscreteInputs = 0x02
-
Read holding (16 bit) register: readHoldingRegisters = 0x03
-
Read input (16 bit) register: readInputRegisters = 0x04
-
Write coil (one bit) register: forceSingleCoil = 0x05
-
Write holding (16 bit bit) register: presetSingleRegister = 0x06
-
Write multiply coil (one bit) registers: forceMultipleCoils = 0x0F
-
Write multiply holding (16 bit bit) registers: presetMultipleRegisters = 0x10