Lika IF52 Скачать руководство пользователя страница 12

IF52

8 - Lettura della posizione encoder mediante interfaccia seriale

E'   possibile   leggere   in   qualsiasi   momento   la   posizione   SSI   dell'encoder
utilizzando l'interfaccia seriale. E' necessario un PC per la configurazione dei
parametri di comunicazione.

L'unità   IF52   utilizza   il   protocollo   di   comunicazione  standard   DRIVECOM
conforme alla norma ISO 1745.
Maggiori  dettagli  sul  protocollo  sono  disponibili  nel  documento  MAN  Serial
Protocol IFxx_LD25x_LD30x I_E.pdf che può essere scaricato dal sito web di Lika
Electronic.

Il codice di accesso seriale per la lettura della posizione encoder è  „ :8 “ .
(caratteri ASCII per i due punti e 8)

MAN IF52 I_E 1.1.odt8 - Lettura della posizione encoder mediante interfaccia
seriale

12 / 60

Содержание IF52

Страница 1: ...ontenute una morsettiera a 12 poli e due connettori D SUB femmina di cui uno 9 poli e l altro 25 poli La custodia si presta all installazione con sistema di fissaggio secondo le norme DIN in conformità allo standard EN 60715 Elenco sezioni 1 Norme di sicurezza 2 Identificazione 3 Introduzione 4 Istruzioni di montaggio 5 Connessioni elettriche 6 Impostazione degli switch DIL 7 Funzioni estese impos...

Страница 2: ...essioni elettriche esclusivamente in assenza di tensione rispettare le istruzioni relative alle connessioni riportate nella sezione 5 Connessioni elettriche a pagina 5 in conformità alla normativa 2014 30 UE sulla compatibilità elettromagnetica rispettare le seguenti precauzioni prima di maneggiare e installare il dispositivo eliminare la presenza di carica elettrostatica dal proprio corpo e dagli...

Страница 3: ...seriale RS 232 L unità è stata progettata per ospitare in un alloggiamento di dimensioni contenute una morsettiera a 12 poli e due connettori D SUB femmina di cui uno 9 poli e l altro 25 poli La custodia si presta all installazione con sistema di fissaggio secondo le norme DIN in conformità allo standard EN 60715 Encoder e sensori compatibili E possibile collegare all unità IF52 encoder monogiro e...

Страница 4: ...tore IF52 deve essere installato e protetto all interno di un quadro elettrico Dispone di sistema di fissaggio secondo le norme DIN e può perciò essere agevolmente montato su guide DIN mediante le clip predisposte nella parte posteriore che non richiedono ulteriori supporti MAN IF52 I_E 1 1 odt 4 Istruzioni di montaggio 4 60 ...

Страница 5: ...limentazione dell unità alla messa a terra I terminali GND 4 e 6 sono collegati internamente A seconda della tensione d ingresso e del carico dell uscita di tensione ausiliaria il consumo totale dell unità arriva a circa 200 mA NC non collegato 5 1 Collegamento dell encoder in modalità Master Raccomandiamo di collegare la calza del cavo dell encoder a GND e alla messa a terra su entrambi i lati MA...

Страница 6: ...ferenziale senza potenziale di riferimento 5 3 Ingresso HOLD E possibile inviare un segnale ALTO a questo ingresso per congelare il dato sull uscita parallela La funzione HOLD diventa attiva 500 µsec dopo il fronte di salita del segnale e rimane attiva per la durata del segnale Con impostazione da PC la polarità del segnale può essere invertita diventando cioè attiva sul fronte di discesa del segn...

Страница 7: ...ll incirca di 1V senza carico 5 5 Uscita DATA STABLE L uscita del bit 25 può essere configurata come segnale DATA STABLE per mezzo dello switch DIL 6 FUNZIONE PIN 25 A si veda la sezione 6 Impostazione degli switch DIL a pagina 9 In questo caso un segnale con livello logico BASSO indica che i dati sull uscita parallela sono fissi e non cambieranno Il fronte di salita del segnale garantisce ancora ...

Страница 8: ... è equipaggiato con una interfaccia seriale RS 232 La comunicazione seriale permette la lettura della posizione dell encoder e l impostazione dei parametri e delle variabili da PC secondo la necessità MAN IF52 I_E 1 1 odt 5 Connessioni elettriche 8 60 ...

Страница 9: ...rata nella Figura sopra si riferisce a un encoder SSI con risoluzione di 25 bit e uscita in codice Gray in modalità operativa Master L uscita parallela opera con cicli di aggiornamento fissi e il pin 25 è utilizzato per indicare che i dati in uscita sono fissi NOTA Le modifiche nell impostazione degli switch diventano effettive solo alla successiva riaccensione del dispositivo MAN IF52 I_E 1 1 odt...

Страница 10: ...zando un cavo seriale RS 232 cablato secondo lo schema disponibile nella sezione 5 6 Interfaccia seriale RS 232 a pagina 8 Avviare il software OS3 x apparirà la seguente schermata Nel caso in cui i campi di testo e le segnalazioni colorate rimanessero vuoti e nell intestazione comparisse il messaggio OFFLINE sarà necessario controllare le impostazioni della porta seriale Per fare questo premere il...

Страница 11: ... OUTPUT VALUE oscilla mostrando valori in incremento e in decremento Nel caso in cui la barra colorata oppure il visualizzatore del valore percentuale dovessero saltare da un valore all altro o oscillare sarà necessario controllare nuovamente le impostazioni dello switch DIL 7 3 Pulsante HOLD Il pulsante HOLD funziona in parallelo al segnale d ingresso hardware del morsetto 10 HOLD e permette di c...

Страница 12: ...IF52 utilizza il protocollo di comunicazione standard DRIVECOM conforme alla norma ISO 1745 Maggiori dettagli sul protocollo sono disponibili nel documento MAN Serial Protocol IFxx_LD25x_LD30x I_E pdf che può essere scaricato dal sito web di Lika Electronic Il codice di accesso seriale per la lettura della posizione encoder è 8 caratteri ASCII per i due punti e 8 MAN IF52 I_E 1 1 odt8 Lettura dell...

Страница 13: ...azione sostituisce la posizione reale dell encoder con un ciclo ripetitivo di conteggio ESEMPIO Se si imposta questo registro a 2 048 la rappresentazione interna della posizione si muove all interno del range 0 2 047 Quando si supera il limite inferiore di zero con un conteggio decrescente di nuovo appare il valore 2 047 Al contrario quando si oltrepassa il limite superiore 2 047 con un conteggio ...

Страница 14: ...ntenda apportare modifiche alla configurazione meccanica Come mostrato nella Figura qui sotto è necessario impostare il registro Round Loop alla risoluzione completa dell encoder e quindi spostare la transizione zero impostando il parametro SSI Offset di conseguenza MAN IF52 I_E 1 1 odt 9 Parametri di impostazione 14 60 ...

Страница 15: ...de Questo registro imposta il modo di linearizzazione 0 Linearizzazione disabilitata i registri da P1 a P16 non incidono sulle caratteristiche d uscita 1 Linearizzazione nel range 0 100 2 Linearizzazione sul range completo da 100 a 100 Si vedano gli esempi nella sezione 10 2 3 Programmazione libera della linearizzazione a pagina 24 Linear In E il valore massimo originario trasmesso dal dispositivo...

Страница 16: ... uso della funzione di soppressione dei bit bit blanking function alla pagina seguente Deve essere impostato a 01 perché siano considerati tutti i bit encoder SSI High Bit Questo registro definisce il bit che si deve considerare più alto MSB quando si utilizzi la funzione di soppressione dei bit bit blanking function Si veda il paragrafo Considerazioni sull uso della funzione di soppressione dei b...

Страница 17: ...rotazione da 0 a 180º e di nuovo lo stesso numero di informazioni 0 4 095 nella successiva seconda parte di rotazione da 180º a 360º La risoluzione rimane invariata per quanto concerne il numero di informazioni per giro D altro canto però possiamo mantenere invariato a 13 il registro SSI High Bit e impostare invece il registro SSI Low Bit a 02 In questo secondo caso andiamo a sopprimere il bit più...

Страница 18: ... è di 1 3 µsec con impostazione a 0 000 In modalità Slave la pausa tra i protocolli SSI dipende dal Master remoto e il registro SSI Wait Time imposta il ciclo di valutazione dei telegrammi dati Se per esempio si imposta questo registro a 100 msec il sistema prenderà in considerazione un solo telegramma ogni 100 msec anche qualora il Master avesse trasmesso molti più telegrammi Soprattutto nel caso...

Страница 19: ...tivi Quando invece la funzione ROUND LOOP è abilitata il valore in SSI Offset sposta la posizione dello zero meccanico ma sempre nell ambito di valori positivi Si veda anche il registro Round Loop e il relativo esempio SSI Hold polarity Imposta la polarità del segnale HOLD disponibile tramite il morsetto 10 Si veda il paragrafo 5 3 Ingresso HOLD a pagina 6 0 il segnale HOLD è attivo ALTO 1 il segn...

Страница 20: ...do si modifica il valore in questo registro da 0 a 1 i dati nell uscita parallela saranno invertiti Parallel value Il valore numerico impostato in questo parametro appare direttamente sull uscita parallela sempre che il registro Parallel Mode sia stato prima impostato a un valore maggiore di 2 Il codice di acceso seriale del parametro Parallel value è 48 il valore può essere modificato in qualunqu...

Страница 21: ... inviati quando si utilizza l uscita seriale per la trasmissione ciclica dei dati sotto la gestione del timer si veda il parametro Serial Timer xxxxxx è il valore di misura che viene trasmesso La lunghezza del valore trasmesso dipende dal suo valore corrente Entrambi i formati di stampa sono visualizzati nella seguente tabella Serial Timer Imposta il tempo di ciclo per la trasmissione ciclica quan...

Страница 22: ...parametro Serial Timer Non appena riceve un carattere l unità passa automaticamente alla MODALITA PC e lavora secondo il protocollo Quando non riceve alcun carattere per un periodo di 20 secondi l unità torna di nuovo automaticamente alla MODALITA STAMPANTE e inizia nuovamente la trasmissione dei dati ciclica Serial Value Imposta il codice del registro il cui valore viene trasmesso in modalità cic...

Страница 23: ...valore parallelo senza scaling né linearizzazione Quando si vuole convertire il dato encoder SSI in un valore parallelo senza scaling né linearizzazione impostare i parametri come segue ESEMPIO Linearisation Mode 0 Round Loop 0 Parallel Mode 0 codice d uscita Binario 1 Codice d uscita Gray 2 Codice d uscita BCD Parallel inversion 0 segnale ALTO polarità dati d uscita normale 1 segnale BASSO polari...

Страница 24: ...cita Binario 1 Codice d uscita Gray 2 Codice d uscita BCD Parallel inversion 0 segnale ALTO polarità dati d uscita normale 1 segnale BASSO polarità dati d uscita invertita Linear In 65 536 Linear Out 10 000 P1 x 000 0 P1 y 000 0 P2 x 100 0 P2 y 100 0 10 2 3 Programmazione libera della linearizzazione Quando dovete elaborare i dati provenienti dall encoder SSI trasformandoli per ottenerne la rappre...

Страница 25: ...te impostazioni devono essere espresse in percentuale della scala completa Impostare ora i valori desiderati nei registri da P1 y a P16 y Questi sono i valori che l uscita parallela andrà a generare al posto dei valori dell asse X Per fare un esempio il valore impostato in P2 y sarà sostituito al valore encoder P2 x ecc NOTA Per ottenere una linearizzazione coerente i registri X devono essere impo...

Страница 26: ...IF52 Questo permette all utilizzatore di definire anche curve non simmetriche nei piani cartesiani rispetto all asse zero MAN IF52 I_E 1 1 odt 10 Funzioni di conversione e di linearizzazione 26 60 ...

Страница 27: ...ina cliccare sui singoli campi per avviare il test Tra le funzioni disponibili posizione attuale dell encoder impostazione degli switch DIL tensioni di alimentazione interne stato uscita parallela Inoltre si possono registrare i seguenti registri utilizzando la funzione MONITOR MAN IF52 I_E 1 1 odt 11 Funzioni di test 27 60 ...

Страница 28: ...ud Rate 100 1000000 100000 7 0 10 SSI Wait Time 0 10 000 0 5 3 11 SSI Offset 0 99999999 0 8 0 12 SSI Hold polarity 0 1 0 1 0 13 SSI Error Bit 0 25 0 2 0 14 SSI Error Bit Polarity 0 1 0 1 0 15 P1 x 100 000 100 000 100000 6 3 A0 P1 y 100 000 100 000 100000 6 3 A1 P16 x 100 000 100 000 100000 6 3 D0 P16 y 100 000 100 000 100000 6 3 D1 Direction 0 1 0 1 0 46 Parallel inversion 0 1 1 1 0 47 Parallel va...

Страница 29: ...Pagina lasciata bianca intenzionalmente ...

Страница 30: ...faccia 1 0 07 08 2012 Prima release 1 1 13 07 2018 Revisione generale correzione impostazione switch DIL nuove impostazioni RS 232 Lika Electronic Via S Lorenzo 25 36010 Carrè VI Italy Tel 39 0445 806600 Fax 39 0445 806699 info lika biz www lika biz ...

Страница 31: ...el format The unit has been designed as a compact module with 12 screw terminals and two 9 position and 25 position D SUB connectors female The housing is suitable for standard DIN rail mounting according to EN 60715 standard Table of contents 1 Safety summary 2 Identification 3 Introduction 4 Mounting instructions 5 Electrical connections 6 DIL switch settings 7 Extended functions with PC set up ...

Страница 32: ...se requirements 1 2 Electrical safety Turn OFF power supply before connecting the device connect according to explanation in section 5 Electrical connections on page 5 in compliance with 2014 30 EU norm on electromagnetic compatibility following precautions must be taken before handling and installing the equipment discharge electrical charge from your body and tools which may come in touch with t...

Страница 33: ... It is also possible to convert serial RS 232 data into a parallel format The unit has been designed as a compact module with 12 screw terminals and two 9 position and 25 position D SUB connectors female The housing is suitable for standard DIN rail mounting according to EN 60715 standard Applicable encoders and sensors Single turn or multi turn absolute encoders and all similar sensors using a st...

Страница 34: ...onnected IF52 converter must be installed and protected inside the electric panel It provides DIN rail mounting and can quickly snap onto a DIN rail with built in DIN rail clips that require no additional brackets or supports MAN IF52 I_E 1 1 odt 4 Mounting instructions 34 60 ...

Страница 35: ...to be connected to earth potential GND terminals 4 and 6 are connected internally Depending on the input voltage and the load of the auxiliary voltage output the total power consumption of the unit is about 200 mA NC not connected 5 1 Encoder connections with Master operation We recommend the shield to be connected to GND and earth potential on both sides MAN IF52 I_E 1 1 odt 5 Electrical connecti...

Страница 36: ...operation 5 3 HOLD input A HIGH signal sent to this input freezes the parallel output data The HOLD function becomes active 500 µsec after the rising edge of the signal and remains active for the duration of the signal With PC setup the polarity of the signal can be inverted i e becoming active in the falling edge of the LOW signal see SSI Hold polarity register on page 49 The HOLD input provides ...

Страница 37: ...utput in HIGH state is approx 1 volt unloaded 5 5 DATA STABLE output The output for bit 25 can be configured as a DATA STABLE signal by means of the DIL switch 6 PIN 25 FUNCTION A see section 6 DIL switch settings on page 39 In this case a LOW state indicates that parallel output data is stable and will not change The rising edge of the signal still guarantees stable data and can be used for remot...

Страница 38: ...terface The unit provides an RS 232 interface Serial communication allows to read out the encoder position and to set parameters and variables via PC according to need MAN IF52 I_E 1 1 odt 5 Electrical connections 38 60 ...

Страница 39: ...ings shown above are suitable for Master operation of a 25 bit SSI encoder with Gray coded output The parallel output operates with fixed updating time and pin 25 is used to indicate valid and stable output data NOTE Changes in the switch settings will become effective only after the next power up cycle MAN IF52 I_E 1 1 odt 6 DIL switch settings 39 60 ...

Страница 40: ...converter using a serial RS 232 cable having the wire connection as shown in section 5 6 Serial interface on page 38 Start the OS3 x software then the following screen will appear In case your text and colour fields remain empty and the headline shows the message OFFLINE then you must check your serial settings To do this press the COMMS command in the menu bar Ex factory the unit features the fol...

Страница 41: ...st show increasing or decreasing encoder values Should the color bar or the percentage display jump or hunt please check once more for correct setting of the DIL switch 7 3 HOLD key The HOLD key operates in parallel to the hardware input terminal 10 HOLD and allows freezing the parallel output from the PC screen Indicator in the RS field of the INPUTS box indicates that the HOLD function is active...

Страница 42: ...eters IF52 uses the DRIVECOM communication standard according to ISO 1745 Details about this protocol can be found in the file MAN Serial Protocol IFxx_LD25x_LD30x I_E pdf which is available for download from Lika Electronic website The serial access code for the actual encoder position is 8 ASCII characters colon and 8 MAN IF52 I_E 1 1 odt 8 Serial readout of the actual encoder position 42 60 ...

Страница 43: ...her settings will replace the real encoder position with a repeating cycle count EXAMPLE When we set this register to 2 048 the internal position register will only move in a range between 0 and 2 047 When we exceed the lower limit zero with reverse direction again 2 047 will appear When we exceed the upper limit 2 047 with forward direction we restart at 0 again The zero position of the round loo...

Страница 44: ...hen you do not want to change the mechanical configuration As shown in the subsequent Figure you need to set the Round Loop register to the full encoder resolution and then shift the zero transition by setting the SSI Offset correspondingly MAN IF52 I_E 1 1 odt 9 Parameter settings 44 60 ...

Страница 45: ... BCD format Linearisation Mode This register sets the linearisation mode 0 Linearisation off registers P1 to P16 do not affect the output characteristics 1 Linearisation in a range of 0 100 2 Linearisation over full range 100 to 100 See examples in the section 10 Scaling and linearisation functions on page 53 Linear In This is the original max value provided by the input source In the example of p...

Страница 46: ...SI High Bit This register defines the highest bit MSB for evaluation when the bit blanking function is used See Hint for the use of the bit blanking function below in this page It must be set to the total number of encoder bits for evaluation of the full encoder range EXAMPLE In the following example a 13 bit encoder is shown with SSI High Bit set to 12 and SSI Low Bit set to 03 resulting in evalu...

Страница 47: ... sets the communication speed of the SSI interface with SSI encoders Setting range 100 Hz to 1MHz You are free to set any desired frequency between 0 1 kHz and 1000 0 kHz For technical reasons however in the upper frequency range with Master operation the unit will only generate one of the following frequencies accurately 1000 0 kHz 888 0 kHz 800 0 kHz 727 0 kHz 666 0 kHz 615 0 kHz 571 0 kHz 533 0...

Страница 48: ... setting it must be 0 directly corresponds to the time pattern of updates The Figure below explains the timing with use of fixed updating cycles mode when the SSI Wait Time item is set to 3 msec With fixed updating cycles work mode the SSI Wait Time item is limited to 90 msec max NOTE The shortest time allowed for fixed updating cycles is 2 msec due to internal processing times SSI Wait Time set t...

Страница 49: ...nal is active HIGH 1 HOLD signal is active LOW 9 4 SSI error settings SSI Error Bit This register defines the position of the error bit if available for the encoder you use Errors indicated by the encoder can be read out via serial code 9 semicolon nine error indication 2000hex In case of error the ERROR BIT ACTIVE items in the OUTPUTS box will appear red in your PC screen It is also possible to u...

Страница 50: ...o this item appears directly at the parallel output provided that the Parallel Mode register has been set to a value greater than 2 previously The serial access code of the Parallel value item is 48 and the setting can be changed at any time via serial network This function may be useful for testing the operation and wiring of the parallel output 9 7 RS 232 settings Unit Number You can choose any ...

Страница 51: ...99 If 0 is set cyclic transmission is disabled and the unit will send data only upon request PC MODE NOTE The serial port of the unit can operate in either PC MODE or PRINTER MODE In PC MODE the unit receives a request string and responds with a corresponding data string For details about the protocol see the specific manual MAN Serial Protocol IFxx_LD25x_LD30x I_E pdf it can be downloaded from th...

Страница 52: ... factory default to 09 it corresponds to register codes 0 to 9 and 10 to 19 register codes 0 to 9 See the following Figure for information about registers The most important register codes are Register ASCII SSI Value HW 0 SSI Value 9 Display Value 8 Parallel Value 2 IF52 overview MAN IF52 I_E 1 1 odt 9 Parameter settings 52 60 ...

Страница 53: ...s EXAMPLE Linearisation Mode 0 Round Loop 0 Parallel Mode 0 Binary output 1 Gray coded output 2 BCD output Parallel inversion 0 HIGH signal normal output polarity 1 LOW signal inverted output polarity Settings of Linearisation registers are not important in this case 10 2 2 Converting the SSI encoder data to the parallel output using both scaling and linearisation When you need to convert the SSI ...

Страница 54: ...risation set the parameters as follows EXAMPLE In the example a 16 bit SSI encoder provides 65 536 information to be transformed into a programmable curve Linearisation Mode 1 Round Loop 0 Parallel Mode 0 Binary output 1 Gray coded output 2 BCD output Parallel inversion 0 HIGH signal normal output polarity 1 LOW signal inverted output polarity P1 x P16 x as required P1 y P16 y as required This pro...

Страница 55: ...ad of the x values As an example the value set next to P2 y will be used instead of the encoder value P2 x etc NOTE X registers must use continuously increasing settings i e P1 x item must have the lowest setting and P16 x item must have the highest setting All entries use a percentage format which is xx xxx of the full scale Setting 0 000 means zero output while setting 100 000 means full scale o...

Страница 56: ...e to verify the following data by clicking on the corresponding field actual encoder position DIL switch settings internal supply voltages parallel output state Furthermore the following registers can be recorded by using the MONITOR function MAN IF52 I_E 1 1 odt 11 Testing functions 56 60 ...

Страница 57: ...0 1000000 100000 7 0 10 SSI Wait Time 0 10 000 0 5 3 11 SSI Offset 0 99999999 0 8 0 12 SSI Hold polarity 0 1 0 1 0 13 SSI Error Bit 0 25 0 2 0 14 SSI Error Bit Polarity 0 1 0 1 0 15 P1 x 100 000 100 000 100000 6 3 A0 P1 y 100 000 100 000 100000 6 3 A1 P16 x 100 000 100 000 100000 6 3 D0 P16 y 100 000 100 000 100000 6 3 D1 Direction 0 1 0 1 0 46 Parallel inversion 0 1 1 1 0 47 Parallel value 999 99...

Страница 58: ...This page intentionally left blank ...

Страница 59: ...This page intentionally left blank ...

Страница 60: ... HW SW Interface 1 0 07 08 2012 First issue 1 1 13 07 2018 General review DIL switch settings correction new RS 232 settings Lika Electronic Via S Lorenzo 25 36010 Carrè VI Italy Tel 39 0445 806600 Fax 39 0445 806699 info lika biz www lika biz ...

Отзывы: