
Doc: I425IGB05_22.docx p. 9 / 10
Impostazione Tariffe (gruppo 252)
xE’ possibile selezionare la tariffa. Per eseguire questa operazione il
dispositivo master deve essere configurato nel modo seguente:
oOUTPUT = 2
Esempio:
Byte 1 0xFC (252)
Byte 2 0x03 (3) il dispositivo seleziona la tariffa 3
Tariff selection (group 252)
xIt is possible to select the active tariff. 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
Misure configurabili (gruppo 255)
xIl dispositivo master (PLC, PC, SCADA) può decidere quali misure
ricevere fino ad un massimo di 8 misure.
xPer eseguire questa operazione il dispositivo master deve essere
configurato nel modo seguente:
oOUTPUT = 2 + (2 x Nr. Misure)
oINPUT = 2 + (4 x Nr. Misure)
oppure selezionare dal file LovatoXX.gsd uno dei seguenti Moduli dal 20
al 27:
Module = Custom X Measures
dove X indica il numero di misure.
xPer visualizzare le misure il master scrive in uscita il valore 255 nel byte
1 (gruppo) e nel byte 2 il numero di misure desiderato (un valore tra 1 e
8).
xNei byte successivi si indica l’indirizzo della misura. Gli indirizzi sono gli
stessi del protocollo modbus. E’ possibile impostare fino a 8 indirizzi.
xIn ingresso il dispositivo master può ricevere fino a 34 byte dove il primo
avrà valore 255, il secondo byte è il registro di errore, ogni singolo bit
indica se l’indirizzo della misura selezionata è valido o meno. Ad
esempio, se il DMG torna un codice di errore 0x05 (00000101 bin)
significa che l’indirizzo della misura 1 e 3 non esistono. Se il codice di
errore è 0xFF significa che il numero di misure impostato non è corretto
o che l’indirizzo di tutte le misure non esiste.
xI byte successivi contengono i valori delle misure, ogni misura è
espressa con 4 byte.
Esempio:
Lettura della tensione di fase L1 (indirizzo modbus 0x0002) e della
tensione di fase L2 (indirizzo modbus 0x0004).
Output
Byte 1 0xFF (255) gruppo misure configurabili
Byte 2 0x02 (2) numero di misure
Byte 3 0x00 (0) primo indirizzo (MSB)
Byte 4 0x02 (2) primo indirizzo (LSB)
Byte 5 0x00 (0) secondo indirizzo (MSB)
Byte 6 0x04 (4) secondo indirizzo (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)
Tensione di fase L1 = 0x00005A8C = 23180 (cioè 231,80V).
Tensione di fase L2 = 0x00005ABB = 23227 (cioè 232,27V).
I valori ottenuti vanno divisi per 100, come indicato nella unità di misura nel
manuale modbus.
Configuarable measures (group 255)
xThe master device can decide which single measures are to be read
with maximum 8 measures at the same time.
xTo execute this operation the master device exchange memory must
be configured s follows:
oOUTPUT = 2 + (2 x measure Nr.)
oINPUT = 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.
xTo 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 (a value between 1 and 8).
xIn the following bytes it 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.
xIn input, the master can receive up to 34 bytes. The first one will hold
value 255 (group number), the seconi is the error status byte, where
every single bits indicates if 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.
xThe 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.