Virtual Modbus generic context
sim-modbus-generic service simulates a generic Modbus slave device which can accept read and write register commands.
Features provided
A standard Modbus context with 10 000 registers of all types (coils, discretes, inputs and holdings).
The service itself does not modify Modbus registers in any way.
Deployment
Note
A Virtual Modbus port must be deployed first.
eva svc create sim.modbus1.generic /opt/eva4/sim/svc-tpl-sim-modbus-generic.yml
where the service configuration template is:
command: sim/sim-modbus-generic
bus:
path: var/bus.ipc
config:
port_svc: sim.modbus1.port
unit: 1
persistent: true
user: eva
EAPI methods
The following methods can be called via the local bus (see EAPI commons):
save
Description |
Stores Modbus context to disk (if persistent) |
Parameters |
none |
Returns |
nothing |