Skip to content

starnight/Modbus-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MODBUS Server

This is a MODBUS TCP server simulator.

Execute

Make sure the Python is version 3.7 or newer.

./server.py

The default listening port is 5020.

Impelemented Functions

  1. Read Coils
  2. Read Discrete Inputs
  3. Read Holding Registers
  4. Read Input Registers
  5. Write Single Coil
  6. Write Single Register
  7. Write Multiple Coils
  8. Write Multiple registers
  • Server will response ILLEGAL FUNCTION exception if the request function code is not listed above.
  • Server will response ILLEGAL DATA ADDRESS exception if the request address is invalid.
  • Server will response ILLEGAL DATA VALUE exception if the request data value is invalid.
  • Server will response random values if the reading request format is correct.
  • Server will accept all of the written values if the writing request format is correct.

Reference:

About

MODBUS TCP server simulator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages