
Im trying now to connect it to a simulated slave in this USB connector into a PC:
https://jmux.se/products/ch340-usb-till-rs485-konverter
, using the PeakHMI MB serial slave simulator,
https://www.hmisys.com/With one exception, there dont seem to come any signals into the slave simulator. No registers are changed when I run Runtime in the PI.
When I start the Runtime in the Rasp, I get, as before without anything on the bus:
OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Device SpeedControl 1002 is disconnected. Attempting to reconnect...
Connection failed on MB device SpeedControl 1002: No such file or directory
Persistent Storage is empty
Device SpeedControl 1002 is disconnected. Attempting to reconnect...
Connection failed on MB device SpeedControl 1002: No such file or directory
Device SpeedControl 1002 is disconnected. Attempting to reconnect...
.....
Is there something I set wrong in Runtime? What means "No such file or dir" ?
The (only one) slave look like this:
Setting in the slave emulator, the USB-converter shows up fine in Win11 on COMport 10, and is said to work in order:
Data in the slave emulator:
In fact, in the help file below its written that it can only have holding registers from 4000000 and up, is this in conflict w my current holding register adress 0 at %QW100?
This program simulates some of the register space of a slave device using
MODBUS addressing and protocol.
This program supports multiple serial connections.
Each running instance of the program needs a unique set of configuration files.
This is accomplished via a command line switch. If a command line switch is not
supplied the default path (OS dependent) is used.
The command line switch format is: -path <complete path>
Example: -path "C:\Honeywell\MODBUSRTU\Com 2"
Notes:
1) A space between the -path and the first character of the path.
2) Use the quotation mark (“) at the path start and end. Quotes are required if
the path has any space characters.
3) If the path does not exist the path will be created.
Registers
The following registers are supported.
000001 - 065535 Coil
100001 - 165535 Input
300001 - 365535 Input Register
400001 - 465535 Holding Register
Function Codes
The following function codes are supported.
Command Name
01 Read coil status
02 Read input status
03 Read holding register
04 Read input registers
05 Force single coil