| System SZARP - dokumentacja techniczna: SZARP v.3.1 | ||
|---|---|---|
| Poprzedni | Rozdział 7. Obsługiwane urządzenia | Następny |
Zgodność ze specyfikacją: 4 .
Obsługiwane urządzenia: Sterownik ten może służyć do odczytu danych z 2 programów:
- Wonderware InTouch - popularne oprogramowanie SCADA pod Windows (powinno też działać z dowolnym innym serwerem DDE, który na żądanie Request zwraca tekstową reprezentację wartości parametru)
- MBENET - sterownik protokołu Modbus do oprogramowania InTouch
Protokół komunikacji: Sterownik wykorzystuje protokół XMLRPC do komunikacji z proxy DDE uruchomionym na serwerze Windows.
Wymaga uruchomienia na serwerze z Windows skryptu utils/ddeproxy.py, służącego jako proxy do komunikacji z protokołem DDE.
Przykładowa konfiguracja:
<device daemon="/opt/szarp/bin/ddedmn" path="/dev/null" dde:uri="http://192.168.1.1:8080" dde:read_freq="10"
xmlns:dde="http://www.praterm.com.pl/SZARP/ipk-extra" dde:appname="VIEW">
<unit id="1" type="2" subtype="1" bufsize="1">
<param name="Kocioł 1:DDE:Temperatura wody przed kotłem" short_name="Twe" unit="°C" prec="1"
dde:topic="Tagname" dde:item="Batch%Conc" dde:type="integer" dde:prec="1" base_ind="auto">
....
Where:
dde:uri is URI of DDE proxy (XMLRPC server)
dde:read_freq is polling frequency (in seconds), minimum and default value is 10 seconds
dde:appname is DDE application name, default is 'MBENET' for MBENET driver, use 'VIEW' for standard InTouch
installation
dde:topic is DDE topic, for InTouch it's always 'Tagname', for MBENET use correct value
dde:item is DDE item name, for InTouch it's a Tagname of param, for MBENET it's Modbus
register address
dde:prec optional precision of 'string' parameter, value is divided by 10 ^ dde:prec, default is 0
dde:type:
- for InTouch use "string" - numbers are passed from InTouch as string and parsed according to parameter
precision; if you need to split large value into 2 parameters, use same topic and id for both parameters
and aditional dde:word="msw" and dde:word="lsw" attributes for most- and less- significant word.
- for MBENET use on of:
- 'integer' - simple one register short integer value (precision dependant)
- 'float' - double precision float, hold in two Modbus registers and saved as two following SZARP
parameters
- 'short_float' - double precision float, hold in two Modbus registers, but copied as one SZARP
parameter
| Poprzedni | Spis treści | Następny |
| Sterownik dbdmn | Początek rozdziału | Sterownik defdmn |