Original source code from: https://sourceforge.net/p/modrssim
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)
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) |
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
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