Skip to content

poolborges/modrssim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Modbus simulator (FORK)

Build and Release License: GPL v3

1. Release and Download

GitHub pre-release GitHub release GitHub all releases

ℹ️
Generated: 2024-11-07 07:37:58 -0800

2. Summary

Original source code from: https://sourceforge.net/p/modrssim

Mod_RSsim :: Screnshot

3. About

Modbus PLC simulator supports the modbus and TCP protocols

  • It can be used as a virtual PLC for training and development purposes

  • For testing of a MODBUS RTU serial controller without having to obtain 254 small MODBUS PLCs in an office

  • It implements or supported:

    • Common MODBUS functions: Holding Registers; Coil

    • Allen Broadle DF1

    • JO SCC DF1

Protocols Supported

  • MODBUS RS-232

  • MODBUS TCP/IP

  • JO SCC DF1

  • Allen Broadle DF1

Features

  • Import CSV files containing register values (Righ click or Con Menu)

  • Turns the simulator into read-only mode (registers cannot be set)

UI

  • Set the transparency of the window

Platform supported:

  • Windows XP (SP3), Vista, Windows 7, Windows 8, Windows 10, Windows 11

Active Script (VBScript)

Table 1. List of functions available
Function Signature Description

AddDebugString

AddDebugString(LPCTSTR text)

DisplayAbout

()

GetRegisterValue

(long registertype, long registernumber)

SetRegisterValue

SetRegisterValue(long registertype, long registernumber, long registervalue)

GetLastRunTime

GetLastRunTime()

StationEnabled

StationEnabled(short stationid)

Disablestation

long TransmitRegisters(short sourceStation, short destinationStation, long file_areaNumber, long startRegister,long numRegisters)

ClearRegisters

ClearRegisters()

EnableStation

EnableStation(short stationid)

Example os VBScript
dim n

Randomize
n = Int((65535 * Rnd) + 1)'Generate random value between 1 and 65535.
n = n - 32767             ' some signed values to test with :-)
SetRegisterValue 3, (270*Rnd), n

4. MICS

PLC Brand
ABB
Allen-Bradley
Siemens
Honeywell
Mitsubishi
Yokogawa
Toshiba
General Electric
Omron
Schneider Automation
Reliance
Hitachi
Modicon/Gould
AutomationDirect/PLC Direct/Koyo
Cutler Hammer

Industrials Protocols

  • Ethernet

  • ControlNet

  • DH-485

  • RS-232

  • RS-485

  • Ethernet/IP

Packages

No packages published

Languages

  • C++ 95.1%
  • HTML 2.9%
  • C 2.0%