Technical Forum

STEP 7 (TIA Portal)

HSC won't reset (= doesn't take NEW_CV on CV pulse)

Erstellt von JonBon am 01.05.2012 13:00 (5 Antworten)

« Vorheriges Thema Nächstes Thema »
Seite 1 von 1 (6 Objekte)
  01.05.2012, 13:00
Beigetreten am: 18.04.2012
Letzter Besuch: 06.05.2012
Beiträge: 2
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi,

I'm using the HSC 1 (Inputs: 0.0 and 0.1) to count pulses from an encoder (this works).

The problem:  I can't reset the counter.

I use the CTRL_HSC -block with:    - a pulse on 'CV'
                                                    - a DInt-value (=0), from a Datablock,  at 'NEW_CV'
                                                    - I have put a 1 at 'EN' too (but this shouldn't be necessary)

Extra information:
PLC S7-1200   CPU 1214C   (firmware v1.0)
TIA Portal v10.5 SP2
Settings of the HSC:      Counting ; AB Quadrature 1X ; Initial counter/reference value = 0.
I can't use the external reset, because I need that input for another counter (which I can't reset either)

Is there something I'm missing?

Thank you for your help.
Top
  01.05.2012, 13:45
Beigetreten am: 24.07.2008
Letzter Besuch: 20.05.2013
Beiträge: 2025
Bewertung:
Bewertung: Exzellent [4,31 von 5 / 354 mal bewertet]. (354) 
Benutzer mit speziellen Fachkenntnissen, die einzelne Konferenzen betreuen
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
JonBon wrote:
Hi,

I'm using the HSC 1 (Inputs: 0.0 and 0.1) to count pulses from an encoder (this works).

The problem:  I can't reset the counter.

I use the CTRL_HSC -block with:    - a pulse on 'CV'
                                                    - a DInt-value (=0), from a Datablock,  at 'NEW_CV'
                                                    - I have put a 1 at 'EN' too (but this shouldn't be necessary)

Extra information:
PLC S7-1200   CPU 1214C   (firmware v1.0)
TIA Portal v10.5 SP2
Settings of the HSC:      Counting ; AB Quadrature 1X ; Initial counter/reference value = 0.
I can't use the external reset, because I need that input for another counter (which I can't reset either)

Is there something I'm missing?

Thank you for your help.

Hi,

I don't have the software/documentation now to write with 100% of sure, but here is my suggestion:
you need to give the right HSC name, set the new value (0) and give a pulse in the trigger signtal.
Else, you need to save the STATUS variable when ERROR=1. tell us what hapens.
It should be enougth. if not, try

Denilson Pegaia
Siemens Industry Sector
Industry Automation and Drive Technologies Division
- Technical Support & Hotline -
Rua Werner Siemens, 111
05069-900 São Paulo
Hotline – Atenção ao Cliente
Tel.: +55 11 3833-4040
E-Mail: atencao.cliente.ac.br@siemens.com
Homepage Brasil: www.siemens.com.br
Manuais / FAQ’s / Downloads: http://www.Siemens.com.br/Servicos&Suporte
Top
  01.05.2012, 20:14
Beigetreten am: 30.12.2009
Letzter Besuch: 26.02.2013
Beiträge: 89
Bewertung:
Bewertung: Exzellent [5 von 5 / 10 mal bewertet]. (10) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
JonBon wrote:
Hi,

I use the CTRL_HSC -block with:    - a pulse on 'CV'
                                                    - a DInt-value (=0), from a Datablock,  at 'NEW_CV'
                                                    - I have put a 1 at 'EN' too (but this shouldn't be necessary)

Is there something I'm missing?

Thank you for your help.


You should not put a pulse on 'CV' of your CTRL_HSC.
You should put the CTRL_HSC in a separate FC or FB.
Then use a pulse to call  the FC or FB that includes the CTRL_HSC.
Just call the FC or FB with the parameters that you want to change and always enable the CTRL_HSC in this FC or FB by directly connecting it to left line without any contact.



=== Edited by Gorp @ 5/1/2012 8:31 PM [GMT ] ===
correction of the text


Always read the manuals first.
Then use the "information system" also known as "help".
If that does not bring you further, ask a question but... give all the details!
No need to thank, no need to rate.
Top
  02.05.2012, 15:29
Beigetreten am: 16.02.2011
Letzter Besuch: 17.05.2013
Beiträge: 222
Bewertung:
Bewertung: Exzellent [4,07 von 5 / 15 mal bewertet]. (15) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hello,

See this post


There is an sample there...

Regards

Gabriel de Oliveira
It Works? Rate It.
Top
  06.05.2012, 13:04
Beigetreten am: 18.04.2012
Letzter Besuch: 06.05.2012
Beiträge: 2
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Hi,

The problem was indeed adding the right HSC-name to the CTRL_HSC.

I had given the CTRL_HSC-block te same name as my HSC (-> not necessary).

But I had to add the right HSC-name to the HSC-input of that block.
-> problem solved

Thank you all for your fast help.

Top
  08.05.2012, 13:55
Beigetreten am: 10.05.2010
Letzter Besuch: 22.08.2012
Beiträge: 9
Bewertung:
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 
Bewertung: keine [0 von 5 / 0 mal bewertet]. (0) 

When i test this, the new value loads after one counting pulse!! Rnf:lblSmileyTooltip_


Signamics S110 forever...
Top
Seite 1 von 1 (6 Objekte)
Aktionen