Lovato DME CD Protocol Manual

Modbus data concentrator

Advertisement

DME CD
DME CD
Concentratore dati
Data concentrator
PROTOCOLLO DI COMUNICAZIONE
MODBUS® COMMUNICATION PROTOCOL
MODBUS®
Doc. AHIT101A0510.doc
10/02/2011
P. 1 / 18

Advertisement

Table of Contents
loading

Summary of Contents for Lovato DME CD

  • Page 1 DME CD DME CD Concentratore dati Data concentrator PROTOCOLLO DI COMUNICAZIONE MODBUS® COMMUNICATION PROTOCOL MODBUS® Doc. AHIT101A0510.doc 10/02/2011 P. 1 / 18...
  • Page 2: Modbus Protocol

    PROTOCOLLO MODBUS® MODBUS® PROTOCOL Il concentratore dati DME_CD supporta i protocolli di The data concentrator DME_CD supports the comunicazione Modbus RTU® , Modbus ASCII® e communication protocols Modbus RTU®, Modbus Modbus TCP®. ASCII® and Modbus TCP®. Il concentratore dati DME_CD supporta i protocolli The data concentrator DME_CD supports the comunicazione sui moduli di espansione: communication...
  • Page 3: Modbus Rtu Protocol

    PROTOCOLLO MODBUS® RTU MODBUS® RTU PROTOCOL Quando si utilizza il protocollo Modbus® RTU, la If one selects the Modbus® RTU protocol, the struttura del messaggio di comunicazione è così communication message following costituita: structure: Indirizzo Funzione Dati Address Function Data ( 8 bit) (8 bit) (N x 8 bit)
  • Page 4 La risposta del DME_CD è la seguente: The DME_CD answer is the following: 7C C4 DA D7 7C C4 DA D7 Dove: Where: 01= indirizzo del DME_CD (Slave 01) 01 = DME_CD address (Slave 01) 04 = funzione richiesta dal Master 04 = Function requested by the master 04 = numero di byte inviati dal DME_CD 04 = Number of bytes sent by the DME_CD...
  • Page 5 FUNZIONE 06: PRESET SINGLE REGISTER FUNCTION 06: PRESET SINGLE REGISTER Questa funzione permette di scrivere nei registri. This function allows to write in the registers. Essa puo’ essere utilizzata solo con i registri di It can be used only with registers with address indirizzo superiore a 1000 Hex.
  • Page 6 Risposta Slave: Slave response: Indirizzo slave Slave address Funzione Function Contatore bytes 04 h Byte count 04 h Dato 1 (Tipo) Data 01 –Type Dato 2 (Revisione software) Data 02 – (Sw revision) Dato 3 (Revisione hardware) Data 03 – (Hardware revision) Dato 4 (Revisione parametri) Data 04 –...
  • Page 7 PROTOCOLLO MODBUS® ASCII MODBUS® ASCII PROTOCOL Il protocollo Modbus® ASCII viene utilizzato The Modbus® ASCII protocol is normally used in normalmente nelle applicazioni che richiedono di application that require to communicate through a comunicare via modem. couple of modems. Le funzioni e gli indirizzi disponibili sono gli stessi The functions and addresses available are the same della versione RTU, ma i caratteri trasmessi sono in as for the RTU version, but the transmitted...
  • Page 8 CALCOLO DEL CRC (CHECKSUM per RTU) CRC CALCULATION (CHECKSUM for RTU) Esempio di calcolo: Example of CRC calculation: Hex FFFF = CRC Frame = 0207h Frame = 0207h Inizializzazione CRC 1111 1111 1111 1111 CRC initialization 1111 1111 1111 1111 Carica primo byte 0000 0010 Load the first byte...
  • Page 9 TABELLA 2: TABLE 2: MISURE FORNITE DAL PROTOCOLLO DI COM. MEASURES SUPPLIED SERIAL COMMUNICATION PROTOCOL (Utilizzabili con funzioni 03 e 04) (To be used with functions 03 and 04) FORMATO Indirizzo UNITA’ MISURA WORDS MEASURE Address UNIT FORMAT 0100H Contatore totale 1 Total counter 1 UM/100 signed long...
  • Page 10 FORMATO Indirizzo UNITA’ MISURA WORDS MEASURE FORMAT Address UNIT 0200H Contatore 1 tar 01 Counter 1 tar 01 UM/100 signed long 0202H Contatore 1 tar 02 Counter 1 tar 02 UM/100 signed long 0204H Contatore 1 tar 03 Counter 1 tar 03 UM/100 signed long 0206H...
  • Page 11 FORMATO Indirizzo UNITA’ MISURA WORDS MEASURE FORMAT Address UNIT 0400H Contatore totale 1 Total counter 1 signed long 0402H Contatore totale 2 Total counter 2 signed long 0404H Contatore totale 3 Total counter 3 signed long 0406H Contatore totale 4 Total counter 4 signed long 0408H...
  • Page 12 FORMATO Indirizzo UNITA’ WORDS MISURA MEASURE Address UNIT FORMAT 2100H OR di tutti gli ingressi OR of all Inputs Unsigned int bool 2101H Ingresso 1 Input 1 Unsigned int bool 2102 Ingresso 2 Input 2 Unsigned int bool 2103 Ingresso 3 Input 3 Unsigned int bool...
  • Page 13 TABELLA 3: TABLE 3: COMANDI COMMANDS (Utilizzabili con funzione 06) (To be used with function 06) INDIRIZZO WORDS COMANDO COMMAND VALORE FORMATO ADDRESS VALUE FORMAT 2FF0H Azzera contatori parziali Reset partial counters Unsigned int Unsigned int 2FF0H Azzera contaore parziale Reset partial hour Unsigned int 2FF0H...
  • Page 14: Setup Parameters

    TABELLA 8: TABLE 8: PARAMETRI SETUP SETUP PARAMETERS (Utilizzabili con funzioni 04 e 06) (To be used with functions 04 and 06) CODE MENU MENU WORDS ADDRESS Generale General P01.n.01 Visualizzazione contatore Counter viewing ON (CNT01..08) 5000H+ (n -1) * 80H OFF (CNT09..16) P01.n.02 Descrizione del contatore...
  • Page 15 CODE MENU MENU WORDS ADDRESS Comunicazione Communication 6180H+ (n -1) * 80H P06.n.01 Indirizzo seriale nodo Serial node address 6182H+ (n -1) * 80H P06.n.02 Velocità seriale Serial speed 6184H+ (n -1) * 80H P06.n.03 Formato dati Data format 6186H+ (n -1) * 80H P06.n.04 Bit di stop Stop bits...
  • Page 16 CODE MENU MENU WORDS ADDRESS Ingressi Inputs P10.n .01 Funzione ingresso Input function 6E80H + (n -1) * 80H P10.n .02 Stato a riposo Normal status 6E82H + (n -1) * 80H P10.n .03 Ritardo ON ON delay 60000 6E84H + (n-1) * 80H P10.n .04 Ritardo OFF OFF delay...
  • Page 17: Schemi Di Collegamento

    Schemi di collegamento Wiring diagrams • DMECD TR A RS485 RS485 DMG210 n°31 DMG210 n°1 DMECD n°31 DMECD n°1 • EXM 10 11 RS 232 EXM 10 11 • EXM 10 12 RS485 RS232 EXM10 .. EXM10 .. CABLE 51C4 SET AS REPEATER RS232/RS485 CONV.
  • Page 18 • EXP 10 11 RS 232 Cable 51C2 RJ6/6 RS232 • EXP 10 12 RS 485 B SG RS485 RS485 EXP10 12 n°31 EXP10 12 n°1 Doc. AHIT101A0510.doc 10/02/2011 P. 18 / 18...

Table of Contents