1 Beschreibung 3.1 Optionsplatine RS232 Diese Anleitung beschreibt die Schnittstellen Die RS232 – Schnittstelle ermöglicht eine Optionen RS232/RS485 und ihre Protokolle. Punkt – zu – Punkt – Verbindung. Eine Datenflusssteuerung wird nicht unterstützt. 2 Wichtige Hinweise Anschlussbelegung Lesen Sie sowohl diese Bedienungsanleitung über die Schnittstellen Optionen als auch die Bedienungsanleitung des...
4 CR/LF-Protokoll Im CR/LF – Protokoll kann das Gerät abhängig von der eingestellten Datenquelle Datenwerte an ein Slave– Gerät übertragen. 4.1 Übertragung Die Datenbytes sind ASCII-kodiert. Adresse 1: im Gerät eingestellte Slave – Adresse Adresse 2: um 1 erhöhte Slave – Adresse Datenwert: 6-stellig (+ Dezimalpunkt) Text:...
5.3 Timeout Empfängt das Master – Gerät innerhalb einer 0,5 sec keine Antwort, so kann er die letzte Anfrage verwerfen. 5.4 Nachrichtenzyklus Ein Nachrichtenzyklus 0,5 sec wird unterstützt. 5.5 Byte-Reihenfolge Das Modbus – Protokoll benutzt das Big Endian Format. 5.6 Aufbau einer Nachricht Slave - Adresse Funktionscode Daten 1 Byte 1 Byte...
Maschinengenauigkeit Die relative Maschinengenauigkeit gibt an, welche relativen Fehler beim Runden ( Wandeln ) maximal entstehen können. Beim Float – Wert ( single floating point ) liegt die Maschinengenauigkeit = 5,96 * 10 5.8.2 Integer Format ( 32 Bit ) Das ganzzahlige Integer Format wird in der Darstellung als Zweierkomplement eingesetzt.
5.10 Lesen mehrerer Register 5.11 Schreiben mehrerer Register Mit diesem Befehl können 16 Bit Register gelesen Mit diesem Befehl können 16 Bit Register werden. geschrieben werden. Befehl ( Master ): gültiger Wert im Hex- Format Feldname Wert LSB: least significant byte MSB: most significant byte Slave - Adresse Funktion Schreiben...
5.12 Identifizierung 5.13 Fehlerprotokoll Mit diesem Befehl kann die Slave – Identifizierung Der Slave sendet keine Antwort, wenn er die vom gelesen werden. Master gesendete Nachricht mit Übertragungsfehler empfangen hat. Sowohl die Slave ID als auch die Erkannte Übertragungsfehler sind: Software-Version werden im ASCII-Format übertragen.
5.14 Register Alle Datenwerte erstrecken sich über 2 MODBUS-Register und können nur als Gesamtwert angesprochen werden. Float Register ( 4 Byte ) Adresse Wert Zugriff Beschreibung Hinweis Schreiben eines beliebigen 0000 Hauptzähler Wertes setzt den Hauptzähler zurück. Schreiben eines Wertes setzt 0002 Nebenzähler Hauptzähler und Nebenzähler...
Página 12
Integer Register ( 4 Byte ) Adresse Wert Zugriff Beschreibung Hinweis Schreiben eines beliebigen Wertes 8000 Hauptzähler setzt den Hauptzähler zurück. Schreiben eines Wertes setzt 8002 Nebenzähler Hauptzähler und Nebenzähler zurück. 8004 Vorwahl 1 Vorwahl 1 8006 Vorwahl 2 Vorwahl 2 8008 Multiplikationsfaktor Multiplikationsfaktor...
Allgemeine Hinweise: Lesen/Schreiben: Register müssen nach dem oben beschriebenen Register Layout angefordert werden. Register können also nur vollständig und entsprechend dem erlaubten Zugriff gelesen und geschrieben werden. Schreiben: Schreibbefehle, die aufgrund von Formatfehlern oder Bereichsüberschreitungen nicht ausgeführt werden können, folgt eine Fehlerantwort mit dem Fehlercode Gerätefehler. Lesen / Schreiben: Ist das Gerät im Programmiermenü...
Página 17
Table of Contents Description Important notice Interface Optional RS232 board Optional RS485 board Device connection recommended by the Modbus Organization [1] Interface configuration Programming CR/LF protocol Transmission 4.1.1 Transmission principle for data source main counter, batch counter or totalizer 4.1.2 Transmission principle for data source main and batch counter / main counter and totalizer...
1 Description 3.1 Optional RS232 board These operating instructions describe the optional The RS232 interface allows a point to point RS232/RS485 interfaces and their protocols. connection. No data flow control is supported. 2 Important notice Connections Read both these operating instructions relating to the optional interfaces and the operating instructions of the...
4 CR/LF protocol In the CR/LF protocol, the device can transmit data values to a slave device according to the data source set. Master Data address X (Data address X + 1) Bus RS485 Slave display Slave display Slave Address X Address X + 1 printer 4.1 Transmission...
4.1.2 Transmission principle for data source main and batch counter / main counter and totalizer Transmission: main and secondary counter Address 1 Space Text Space Sign Data value Carriage Return Line Feed 2 bytes 1 byte 4 bytes 1 byte 1 byte 6 or 7 bytes 1 byte...
5.3 Timeout If the Master device does not receive a response within 0.5 seconds, it can discard the last request. 5.4 Message cycle A message cycle 0.5 sec. is supported. 5.5 Byte order The Modbus protocol uses the Big Endian format. 5.6 Structure of a message Slave Address Function code Data 1 byte...
Machine precision The relative machine precision indicates the maximum relative error that can be generated during rounding (conversion). For the Float values (single floating point), the machine precision is = 5,96 * 10 5.8.2 Integer format (32 bits) The Integer format is used in the representation as a two’s complement. The device interprets the transmitted integer value.
5.10 Reading several registers 5.11 Writing several registers This instruction allows reading 16-bit registers. This instruction allows writing 16-bit registers. Instruction (Master): valid value in Hex-Format LSB: least significant byte Field name Value MSB: most significant byte Slave address Instruction (Master): Function Write Start at register address (MSB) Field name...
5.12 Identification 5.13 Error protocol This instruction allows reading the identification of The Slave sends no response if it receives a the Slave. message sent by the Master including transmission errors. Both the Slave ID and the Detected transmission errors: software version are transmitted in ASCII format.
5.14 Registers All data values extend over 2 MODBUS registers and can only be processed as a whole. Float register (4 bytes) Address Value Access Description Note Writing any value resets the main 0000 Main counter counter. Writing a value resets the main 0002 Secondary counter counter and the secondary...
Página 27
Integer register (4 bytes) Address Value Access Description Note Writing any value resets the main 8000 Main counter counter. Writing a value resets the main 8002 Secondary counter counter and the secondary counter. 8004 Preset 1 Preset 1 8006 Preset 2 Preset 2 8008 Multiplication factor...
General guidelines: Read/Write: registers must be requested in compliance with the register layout described above. So registers can only be read and written as a whole and according to the authorized access. Write: writing instructions that cannot be performed because of format or over-range errors generate an error response with the error code Device error.
5.15 Message transmission examples 5.15.1 Example Read Register address (Float): 0000 (main counter) Set Slave address: Read data value: 3F80 0000 Master message: Slave address Function Register address Number of registers 0000 0002 C40B Slave response: Slave address Function Number of bytes Data value 3F80 0000 F7CF...
6 Parameter sets 8 Frequencies (typical) The following settings apply to parameter sets 1 to NOTE: switching level of the inputs Switching level with AC power supply: HTL level Low: 0..4 VDC High: 12..30 VDC PR.TIME 5V level Low: 0..2 VDC SOURCE MAIN High:...
8.2 Frequency meter HTL level, rectangular signal shape 1:1 AC power supply typ.Low 2.5V typ.High DC power supply 12V typ.Low typ.High DC power supply 24V typ.Low 2.5V typ.High 5V level, rectangular signal shape 1:1 typ.Low 1.0V typ.High 4.0V 55 kHz 9 kHz A - B;...
Página 33
Sommaire Description Informations importantes Interface Option carte RS232 Option carte RS485 Raccordement d’appareil recommandé par l’organisation Modbus [1] Configuration de l’interface Programmation Protocole CR/LF Transmission 4.1.1 Principe de transmission pour les sources de données compteur principal, compteur de lots ou totalisateur 4.1.2 Principe de transmission pour les sources de données compteur principal et de lots / compteur principal et totalisateur...
1 Description 3.1 Option carte RS232 Ces instructions décrivent les options d’interface L’interface RS232 permet une liaison de point à RS232/RS485 et leurs protocoles. point. Elle ne supporte pas de procédure de contrôle du flux de données. 2 Informations importantes Raccordement Lisez attentivement aussi bien ces instructions sur les options...
3.4 Configuration de l’interface 3.5 Programmation Menu principal de Configuration Esclave MODBUS (RTU) programmation de l’interface. Protocoles d’interface Vitesse Format Interface Adresse de trans. des données Protocole MODBUS 1 bit de début Protocole CR/LF 8 bits de données RS232 9600 1-247 Adresse Esclave Parité...
4 Protocole CR/LF Avec le protocole CR/LF, l’appareil peut transmettre des données à un appareil esclave en fonction de la source de données sélectionnée. Maître Adresse des données X (Adresse des données X + 1) Bus RS485 Afficheur esclave Afficheur esclave Imprimante Adresse X Adresse X + 1...
4.1.2 Principe de transmission pour les sources de données compteur principal et de lots / compteur principal et totalisateur Transmission : compteur principal ou secondaire Adresse 1 Espace Texte Espace Signe Valeur Retour chariot Saut de ligne 2 octets 1 octet 4 octets 1 octet 1 octet...
5.3 Timeout Si l’appareil maître ne reçoit aucune réponse dans un laps de temps de 0,5 seconde, il peut rejeter la dernière demande. 5.4 Temps de cycle des messages Le système supporte un temps de cycle des messages 0,5 sec. 5.5 Succession des octets Le protocole Modbus utilise le format Big Endian.
Précision machine La précision machine relative spécifie les erreurs relatives maximales pouvant survenir lors de l’arrondi (conversion). Pour une valeur Float (single floating point), la précision machine est de = 5,96 * 10 5.8.2 Format Integer (entier - 32 bits) Le format entier Integer est utilisé...
5.10 Lecture de plusieurs registres 5.11 Ecriture de plusieurs registres Cette instruction permet la lecture de registres à Cette instruction permet l’écriture de registres à 16 bits. 16 bits. Instruction (maître) : valeur valide au format Nom de champ Valeur LSB: least significant byte (octet de poids le plus faible) Adresse esclave...
5.12 Identification 5.13 Protocole en cas d’erreur Cette instruction permet la lecture de Si l’esclave reçoit un message envoyé par le l’identification de l’esclave. maître comportant des erreurs de transmission, il n’envoie pas de réponse. L’identifiant de l’esclave et la Erreurs de transmission reconnues : version de logiciel sont tous deux transmis au format ASCII.
5.14 Registres Toutes les valeurs de données s’étendent sur 2 registres MODBUS et ne peuvent être lus et écrits que sous la forme d’une valeur globale. Registres Float (point décimal flottant - 4 octets) Adresse Valeur Accès Description Remarque L’écriture d’une valeur quelconque 0000 Compteur principal repositionne le compteur principal.
Página 43
Registres Integer (entier - 4 octets) Adresse Valeur Accès Description Remarque L’écriture d’une valeur quelconque 8000 Compteur principal repositionne le compteur principal. L’écriture d’une valeur repositionne Compteur 8002 le compteur principal et le compteur secondaire secondaire. 8004 Présélection 1 Présélection 1 8006 Présélection 2 Présélection 2...
Remarques d’ordre général : Lecture/écriture : les registres doivent être appelés selon la structure de registres décrite ci-dessus. Les registres ne peuvent donc être lus et écrits qu’en intégralité et en fonction des conditions d’accès. Ecriture : les instructions d’écriture qui ne peuvent pas être exécutées du fait d’erreurs de format ou de dépassement de la plage autorisée, génèrent une réponse d’erreur avec le code d’erreur Défaut appareil.
5.15 Exemples de transmissions de messages 5.15.1 Exemple de lecture Adresse du registre (Float) : 0000 (compteur principal) Adresse esclave définie : Valeur de donnée lue : 3F80 0000 Message émis par le maître : Adresse esclave Fonction Adresse registre Nombre de registres 0000 0002...
6 Jeux de paramètres 8 Fréquences (typiques) Les réglages suivants s’appliquent aux jeux de NOTA : niveau de commutation des entrées paramètres 1 à 3. Niveau de commutation pour alimentation AC : Niveau HTL Bas : 0..4 VDC Haut : 12..30 VDC PR.TIME Niveau 5V...
8.2 Fréquencemètre Niveau HTL, forme de signal rectangulaire 1:1 Alimentation AC typ. Bas 2,5V typ. Haut Alimentation DC 12V typ. Bas typ. Haut Alimentation DC 24V typ. Bas 2,5V typ. Haut Niveau 5V, forme de signal rectangulaire 1:1 typ. Bas 1,0V typ.
Página 49
Indice Contatore a preselezione a LED Descrizione Avvertenze importanti Interfaccia Platina opzionale RS232 Platina opzionale RS485 Collegamento consigliato dall’Organizzazione Modbus [1] Configurazione dell‘interfaccia Programmazione Protocollo CR/LF Trasmissione 4.1.1 Principio di trasmissione per fonte di dati contatore principale, contatore di partite o totalizzatore 4.1.2 Principio di trasmissione per fonte di dati contatore principale e contatore di partite/ contatore principale e totalizzatore...
1 Descrizione 3.1 Platina opzionale RS232 Questo manuale descrive le opzioni di interfaccia L’interfaccia RS232 – consente un collegamento RS232/RS485 e i rispettivi protocolli. punto a punto. Non è supportato un controlloo del flusso di dati. 2 Avvertenze importanti Collegamento Leggere sia questo manuale d’uso riguardo alle opzioni di interfaccia che il manuale d’uso...
3.4 Configurazione dell‘interfaccia 3.5 Programmazione Menu principale per la Configurazione Slave MODBUS (RTU) programmazione dell’Interfaccia. Protocolli dell’interfaccia Interfaccia Vel. di trasm. Formato dati Indirizzo Protocollo MODBUS 1 bit di inizio 8 bit di dati Protocollo CR/LF RS232 9600 1-247 Parità Indirizzo Slave 1 bit d’arresto CR/LF: 1 –...
4 Protocollo CR/LF Nel protocollo CR/LF l’apparecchio può, a seconda della fonte di dati impostata, trasmettere dei dati di valori a un’aparecchio Slave. Master Indirizzo dati X (Indirizzo dati X + 1) Bus RS485 Display Slave Display Slave Stampante Indirizzo X Indirizzo X + 1 Slave 4.1 Trasmissione...
4.1.2 Principio di trasmissione per fonte di dati contatore principale e contatore di partite/ contatore principale e totalizzatore Trasmissione: contatore principale e secondario Indirizzo 1 Spazio Testo Spazio Segno Valore dati Carriage Return Line Feed 2 byte 1 byte 4 byte 1 byte 1 byte 6 o 7 byte...
5.3 Timeout Se l’apparecchio Master non riceve risposta entro 0,5 secondi, può scartare l’ultima richiesta. 5.4 Ciclo d’informazione È’ supportato un ciclo d’informazione 0,5 sec. 5.5 Ordine dei byte Il protocollo Modbus utilizza il formato Big Endian. 5.6 Struttura di un messaggio Indirizzo Slave Codice di funzione Dati 1 byte 1 byte...
Precisione macchina La precisione macchina relativa indica quali errori relativi possono sorgere al massimo nell’arrotondare (convertire). Nel valore Float (single floating point) la precisione macchina è di = 5,96 * 10 5.8.2 Formato Integer (integro - 32 bit) Il formato integro viene utilizzato nella rappresentazione come complemento a due. L’apparecchio interpreta il valore integro trasmesso.
5.10 Lettura di più registri 5.11 Scrittura di più registri Con questo comando si possono leggere registri a Con questo comando si possono scrivere registri a 16 bit. 16 bit: Comando (Master): valore valido nel formato Nome del campo Valore LSB: least significant byte (byte meno significativo) Indirizzo Slave...
5.12 Identificazione 5.13 Protocollo errore Con questo comando si può leggere Lo slave non invia alcuna risposta, se ha ricevuto l’identificazione dello slave. l’informazione del Master con errori di trasmissione. Sia l’ID Slave sia la versione- Gli errori di trasmissione riconosciuti sono: Software sono trasmessi in formato ASCII.
5.14 Registri Tutti i valori di dati si estendono su 2 registri MODBUS e possono esser considerati soltanto come un valore globale. Registri Float (4 byte) Indirizzo Valore Accesso Descrizione Osservazioni Contatore La scrittura di un qualsiasi valore 0000 principale ripristina il contatore principale Contatore La scrittura di un valore ripristina i...
Página 59
Registri Integer (integro - 4 byte) Indirizzo Valore Accesso Descrizione Osservazioni Contatore La scrittura di un qualsiasi valore 8000 principale ripristina il contatore principale Contatore La scrittura di un valore ripristina i 8002 secondario contatori principale e secondario. 8004 Preselezione 1 Preselezione 1 8006 Preselezione 2...
Indicazioni generali: Lettura/scrittura: i registri devono essere richiesti secondo la struttura di registro sopra descritta. I registri quindi possono essere letti e scritti soltanto in maniera completa e conforme all’accesso consentito. Scrittura: i comandi di scrittura, che non possono essere eseguiti a causa di errori di formato o di superamenti di campo, generano una risposta di errore con il codice errore Errore Apparecchio.
5.15 Esempi per la trasmissione di messaggi 5.15.1 Esempio di lettura Indirizzo registro (Float): 0000 (contatore principale) Indirizzo Slave impostato: Valore di dati letto : 3F80 0000 Messaggio Master: Indirizzo Slave Funzione Indirizzo Registro Numero dei registri 0000 0002 C40B Risposta Slave: Indirizzo Slave Funzione...
6 Gruppi di parametri 8 Frequenze (tipiche) Le seguenti impostazioni valgono per i gruppi di NOTA: livello di commutazione delle entrate parametri 1 - 3. Livello di commutazione con alimentazione AC: Livello HTL basso: 0..4 VDC alto: 12..30 VDC PR.TIME Livello 5V basso: 0..2 VDC...
8.2 Frequenziometro Livello HTL, forma di segnale rettangolare 1:1 Alimentazione AC tip. basso 2,5V tip.alto Alimentazione DC 12V tip.basso Tip.alto Alimentazione DC 24V tip.basso 2,5V tip.alto Livello 5V, forma di segnale rettangolare 1:1 tip.basso 1,0V tip.alto 4,0V 55 kHz 9 kHz A - B;...
Página 65
Sumario Descripción Informaciones importantes Interfaz Opción tarjeta RS232 Opción tarjeta RS485 Conexión de aparato recomendada por la organización Modbus [1] Configuración de la interfaz Programación Protocolo CR/LF Transmisión 4.1.1 Principio de transmisión para las fuentes de datos contador principal, contador de lotes o calculadora 4.1.2 Principio de transmisión para las fuentes de datos contador principal y de lotes/ contador principal y totalizador...
1 Descripción 3.1 Opción tarjeta RS232 Estas instrucciones describen las opciones de La interfaz RS232 permite una conexión de punto interfaz RS232/RS485 y sus protocolos. a punto. No soporta ningún procedimiento de control del flujo de datos. 2 Informaciones importantes Conexión Lea atentamente tanto estas instrucciones sobre las opciones...
3.4 Configuración de la interfaz 3.5 Programación Menú principal de programación Configuración esclavo MODBUS (RTU) de la interfaz. Protocoles de interface Velocidad Formato Interfaz Dirección de trans. de los datos Protocolo MODBUS 1 bit inicial Protocolo CR/LF 8 bits de datos RS232 9600 1-247...
4 Protocolo CR/LF Con el protocolo CR/LF, el aparato puede transmitir datos a un aparato esclavo en función de la fuente de datos seleccionada. Maestro Dirección de datos X (Dirección de datos X + 1) Bus RS485 Visualizador esclavo Visualizador esclavo Impresora Dirección X Dirección X + 1...
4.1.2 Principio de transmisión para las fuentes de datos contador principal y de lotes/ contador principal y totalizador Transmisión: contador principal o secundario Dirección 1 Espacio Texto Espacio Signo Valor Vuelta carro Salto de línea 2 bytes 1 byte 4 bytes 1 byte 1 byte 6 o 7 bytes...
5.3 Timeout Si el aparato maestro no recibe ninguna respuesta en un lapso de tiempo de 0,5 segundos, puede rechazar la última demanda. 5.4 Tiempo de ciclo de los mensajes El sistema soporta un tiempo de ciclo de mensajes 0,5 seg. 5.5 Sucesión de los bytes El protocolo Modbus utiliza el formato Big Endian.
Precisión máquina La precisión máquina relativa especifica los errores relativos máximos que pueden sobrevenir durante el redondeado (conversión). Para un valor Float (single floating point), la precisión máquina es de = 5,96 * 10 5.8.2. Formato Integer (entero - 32 bits) El formato entero Integer se utiliza en la representación como un complemento de dos.
5.10 Lectura de varios registros 5.11 Escritura de varios registros Esta instrucción permite leer registros de 16 bits. Esta instrucción permite escribir registros de 16 bits. Instrucción (maestro): valor válido al formato Hex LSB: least significa byte Nombre de campo Valor (byte de peso más bajo) MSB: most significa byte...
5.12 Identificación 5.13 Protocolo en caso de error Esta instrucción permite leer la identificación del Si el esclavo recibe un mensaje enviado por el esclavo. maestro que contiene errores de transmisión, no envía ninguna respuesta. El identificador del esclavo y la Errores de transmisión reconocidos: versión del software se transmiten los dos al formato...
5.14 Registros Todos los valores de datos se extienden en 2 registros MODBUS y sólo pueden leerse y escribirse en forma de un valor global. Registros Float (punto decimal flotante - 4 bytes) Dirección Valor Acceso Descripción Observación La escritura de cualquier valor 0000 Contador principal recoloca el contador principal.
Página 75
Registros Integer (entero - 4 bytes) Dirección Valor Acceso Descripción Observación La escritura de cualquier valor 8000 Contador principal recoloca el contador principal. La escritura de un valor recoloca el Contador 8002 contador principal y el contador secundario secundario. 8004 Preselección 1 Preselección 1 8006...
Observaciones de carácter general: Lectura/escritura: los registros deben llamarse según la estructura de registros descrita anteriormente. Por tanto, los registros sólo pueden leerse y escribirse en su integralidad y en función de las condiciones de acceso. Escritura: las instrucciones de escritura que no pueden ejecutarse debido a errores de formato o de rebasamiento del campo autorizado, generan una respuesta de error con el código de error Fallo aparato.
5.15 Ejemplos de transmisión de mensajes 5.15.1 Ejemplo de lectura Dirección del registro (Float): 0000 (contador principal) Dirección esclavo definido: Valor de dato leído: 3F80 0000 (1dec) Mensaje emitido por el maestro: Dirección esclavo Función Dirección registro Número de registros 0000 0002 C40B...
6 Juegos de parámetros 8 Frecuencias (típicas) Los siguientes ajustes se aplican a los juegos de NOTA: nivel de conmutación de las entradas parámetros 1 a 3. Nivel de conmutación para alimentación AC: Nivel HTL Bajo: 0..4 VDC Alto: 12..30 VDC PR.TIME Nivel 5V Bajo:...
8.2 Frecuencímetro Nivel HTL, forma de señal rectangular 1:1 Alimentación AC típ. Bajo 2,5V típ. Alto 22V Alimentación DC 12V típ. Bajo 2V típ. Alto 10V Alimentación DC 24V típ. Bajo 2,5V típ. Alto 22V Nivel 5V, forma de señal rectangular 1:1 típ.