Skip to content

Utility for convenient packet generation for Modbus protocol in Swift

License

Notifications You must be signed in to change notification settings

ivanesik/ModSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ModSwift

Swift Xcode MIT


Summary


This library create for easy generate modbus commands on swift

Requirements


Functions


  • 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

Installation


Usage


License