
Doc: I297PLGB 1110 26/11/2010 s. 11 / 12
Wybór taryfy (grupa 252)
Możliwy jest wybór aktywnej taryfy z poniższego zakresu:
oDMG 800: od 1 do 4
oDMG 900: od 1 do 8
By wykonaćta operacjęurządzenie Master musi byćustawione jak
podano poniżej:
oOUTPUT = 2
Przykład:
Bajt 1 0xFC (252)
Bajt 2 0x03 (3) wybór taryfy 3
Tariff selection (group 252)
It is possible to selct the active tariff, the possible range is:
oDMG 800: from 1 to 4
oDMG 900: from 1 to 8
To execute this operation the master device exchange memory
must be configured s follows:
oOUTPUT = 2
Example:
Byte 1 0xFC (252)
Byte 2 0x03 (3) Tariff 3 selection
Pomiary konfigurowalne (grupa 255)
Urządzenie typu Master (PLC, PC, SCADA) może decydować, który
pojedynczy pomiar ma byćodczytany z DMG, maksymalnie 8
pomiarów w tym samym czasie.
By wykonaćpowyższąoperacjęurządzenie Master musi być
zaprogramowane w następujący sposób:
WYJŚCIE = 2 + (2 x numer pomiaru)
WEJŚCIE = 2 + (4 x numer pomiaru)
Jak równieżmożna wybraćodpowiedni model od 20 do 27
z pliku LovatoXX.gsd:
Moduł= Custom X Pomiary
Gdzie X oznacza numer pomiaru.
By wyświetlaćpomiary urządzenie Master podaje na wyjściu bajt
pamięci 1 z wartością255 (numer grupy) i w drugim bajcie
ile pomiarów ma byćodczytanych ( wartość od 1 do 8).
W kolejnym bajcie należy ustawićadres odczytu. Adres specyfikuje
sięw ten sam sposób co w protokołach Modbus. Można podać
maksymalnie 8 adresów.
Na wejściu, urządzenie Master może odebraćdo 34 bajtów.
W pierwszym znajdowac siębędzie wartość 255 (numer grupy), drugi
jest bajtem statusu błędu, gdzie każdy pojedynczy bit wskazuje czy
wybrany pomiar jest ważny czy nie. Na przykład, jeśli miernik DMG
wskazuje błąd o kodzie 0x05 (binarnie 00000101) oznacza to,
że adresy pomiarów 1 i 3 nie sądostępne. Jeśli kod błędu to 0xFF,
oznacza to, że numer pomiarów nie jest ważny lub wszystkie adresy
nie sąważne.
Kolejne bajty zawierająwartości pomiarów, a każdy pomiar zajmuje
4 bajty.
Przykład:
Odczyty napięcia fazowego L1 (adres Modbus 0x0002) i napięcia
fazowego L2 (adres Modbus 0x0004).
Wyjście
Bajt 1 0xFF (255) konfigurowalna grupa pomiarów
Bajt 2 0x02 (2) ilość pomiarów
Bajt 3 0x00 (0) adres pierwszego pomiaru (MSB)
Bajt 4 0x02 (2) adres pierwszego pomiaru (LSB)
Bajt 5 0x00 (0) adres drugiego pomiaru (MSB)
Bajt 6 0x04 (4) adres drugiego pomiaru (LSB)
Wejście
Bajt 1 0xFF (255)
Bajt 2 0x00 (0)
Bajt 3 0x00 (0)
Bajt 4 0x00 (0)
Bajt 5 0x5A (90)
Bajt 6 0x8C (140)
Bajt 7 0x00 (0)
Bajt 8 0x00 (0)
Bajt 9 0x5A (90)
Bajt 10 0xBB (187)
Napięcie fazowe L1 = 0x00005A8C = 23180 (tj. 231,80V).
Napięcie fazowe L2 = 0x00005ABB = 23227 (tj. 232,27V).
Wartości należy podzielićprzez 100, jak podano w instrukcji Modbus
odnośnie jednostki pomiaru.
Configuarable measures (group 255)
The master device can decide which single measures are to be
read from the DMG, with maximum 8 measures at the same time.
To execute this operation the master device exchange memory
must be configured s follows:
OUTPUT = 2 + (2 x measure Nr.)
INPUT = 2 + (4 x measure Nr.)
Otherwise it is possible to select from LovatoXX.GSD file one of the
modules from 20 to 27:
Module = Custom X Measures
Where X indicates the number of measures.
To visualize the measurements the master writes in the output
memory byte 1 value 255 (group number) and in byte 2 how many
measurements are to be read.
In the following byte sit is necessary to set the address of the
measurement. The address to be specified is the same as used
with modbus protocol. It is possible to specify max 8 addresses.
In input, the master can receive up to 34 bytes. The first will hold
value 255 (group number), the secondi is the error status
byte,where every single bits indicatesi f the selected measurement
is valid or not. For example, if the DMG returns error code 0x05 (
00000101 bin) it means that the address of measurement 1 and 3
are not available If error code is 0xFF, it means that the number of
measurements is not valid or all of the addresses are not valid.
The following bytes hold the values of the measurements, each of
them taking 4-bytes.
Example:
Reading of L1 phase voltage (modbus address 0x0002) and L2 phase
voltage (modbus address 0x0004) .
Output
Byte 1 0xFF (255) configurable measures group
Byte 2 0x02 (2) measure number
Byte 3 0x00 (0) address of first measure (MSB)
Byte 4 0x02 (2) address of first measure (LSB)
Byte 5 0x00 (0) address of second measure (MSB)
Byte 6 0x04 (4) address of second measure (LSB)
Input
Byte 1 0xFF (255)
Byte 2 0x00 (0)
Byte 3 0x00 (0)
Byte 4 0x00 (0)
Byte 5 0x5A (90)
Byte 6 0x8C (140)
Byte 7 0x00 (0)
Byte 8 0x00 (0)
Byte 9 0x5A (90)
Byte 10 0xBB (187)
L1 phase voltage = 0x00005A8C = 23180 (231.80V).
L2 phase voltage = 0x00005ABB = 23227 (232.27V).
Values must be divided by 100, as stated in the unit of measure of
modbus manual.