Skip to content

Latest commit

 

History

History
178 lines (132 loc) · 3.75 KB

README.adoc

File metadata and controls

178 lines (132 loc) · 3.75 KB

Modbus simulator (FORK)

Build and Release License: GPL v3

1. Release and Download

GitHub pre-release GitHub release GitHub all releases

ℹ️
Generated: 2024-12-27 01:03:54 -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