Virtual ADS port

sim-ads-port service simulates ADS TCP ports. The ports are mapped to real ones which means any equipment with ADS support can connect to the virtual ADS and work with it the same way as with a real one.

A port is an entry point into virtual AMS. All AMS simulated devices are assigned to a particular port service.

Deployment

The virtual ADS port is a standard EVA ICS v4 service and can be created as:

eva svc create sim.ads1.port /opt/eva4/sim/svc-tpl-sim-ads-port.yml

where the service configuration template is:

command: sim/sim-ads-port
bus:
  path: var/bus.ipc
config:
  listen: 127.0.0.1:48898
  verbose: true
user: nobody

EAPI methods

The following methods can be called via the local bus (see EAPI commons):

list

Description

List ADS services

Parameters

none

Returns

ADS Service list

Return payload example:

[
  "ams_addr": "127.0.0.1.1.1:200",
  "svc_id": "sim.ads.dev1.core",
  "ams_addr": "127.0.0.1.1.1:851",
  "svc_id": "sim.ads.dev1.plc1",
  "ams_addr": "127.0.0.1.1.1:852",
  "svc_id": "sim.ads.dev1.plc2"
]