AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

download AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

of 12

Transcript of AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    1/12

    Application Example AC500

    Scalable PLCfor Individual Automation

    Fast Counter AC500-eCo

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    2/12

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    3/12

    Application Example - 2 - AC500/Issue: 11.2011

    1 Disclaimer

    1.1 For customers domiciled outside Germany/Fr Kunden mit Sitz auerhalb Deutschlands

    "Warranty, Liabilit y:

    The user shall be solely responsible for the use of this application example described within this file.ABB shall be under no warranty whatsoever. ABB's liability in connection with this application example or thefiles included within this file, irrespective of the legal ground, shall be excluded. The exclusion of liability shallnot apply in the case of intention or gross negligence. The present declaration shall be governed by andconstrued in accordance with the laws of Switzerland under exclusion of its conflict of laws rules and of theVienna Convention on the International Sale of Goods (CISG)."

    "Gewhrleistung und Haftung:

    Der Nutzer ist allein fr die Verwendung des in dieser Datei beschriebenen Anwendungsbeispielsverantwortlich.

    ABB unterliegt keiner Gewhrleistung.

    Die Haftung von ABB im Zusammenhang mit diesemAnwendungsbeispiel oder den in dieser Datei enthaltenen Dateien - gleich aus welchem Rechtsgrund - istausgeschlossen. Dieser Ausschlu gilt nicht im Falle von Vorsatz oder grober Fahrlssigkeit. DieseErklrung unterliegt Schweizer Recht unter Ausschlu der Verweisungsnormen und des UN-Kaufrechts(CISG)."

    1.2 Nur fr Kunden mit Sitz in Deutschland

    "Gewhrleistung und Haftung:

    Die in diesem Anwendungsbeispiel enthaltenen Dateien beschreiben eine mgliche Anwendung der

    Steuerung AC500 bzw. zeigen eine mgliche Einsatzart der Steuerung. Sie stellen nur Beispiele frProgrammierungen dar, sind aber keine fertigen Lsungen. Eine Gewhr kann nicht bernommen werden.

    Der Nutzer ist fr die ordnungsgeme, insbesondere vollstndige und fehlerfreie Programmierung derSteuerungen selbst verantwortlich. Im Falle der teilweisen oder ganzen bernahme derProgrammierbeispiele knnen gegen ABB keine Ansprche geltend gemacht werden.

    Die Haftung von ABB, gleich aus welchem Rechtsgrund, im Zusammenhang mit den Anwendungsbeispielenoder den in dieser Datei enthaltenen Dateien wird ausgeschlossen. Der Haftungsausschlu gilt jedoch nichtin Fllen des Vorsatzes, der groben Fahrlssigkeit, bei Ansprchen nach dem Produkthaftungsgesetz, imFalle der Verletzung des Lebens, des Krpers oder der Gesundheit oder bei schuldhafter Verletzung einerwesentlichen Vertragspflicht. Im Falle der Verletzung einer wesentlichen Vertragspflicht ist die Haftungjedoch auf den vertragstypischen, vorhersehbaren Schaden begrenzt, soweit nicht zugleich ein anderer der

    in Satz 2 dieses Unterabsatzes erwhnten Flle gegeben ist. Eine nderung der Beweislast zum Nachteildes Nutzers ist hiermit nicht verbunden.

    Es gilt materielles deutsches Recht unter Ausschlu des UN-Kaufrechts."

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    4/12

    Application Example - 3 - AC500/Issue: 11.2011

    2 Introduction

    This document demonstrates how to include a fast counter in to an AC500-PM564.

    2.1 Hardware and Software requirement

    NOTICE

    The following configuration is used in this document. The newer version of hardware andsoftware should work, however it should be tested by the user himself.

    Hardware Software

    AC500 CPU:PM564 ETH, FW: V2.1.3 PS501 Control Builder Plus: V2.1.0

    Ethernet cable

    2.2 Connections

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    5/12

    Application Example - 4 - AC500/Issue: 11.2011

    3 Hardware conf iguration

    In the following example we will take an AC500 eCo CPU/PM564. The red lines in the following picture arethe 24VDC (L+). The blue lines are ground (M). The orange line connects a digital output with a digital inputchannel.

    For this example we take the DO0 (digital output) and connect them with the DI0 (digital intput), this will showthe orange line. The blue line connects the pins: M for the power supply, pin number 20 (ZP) and the pinnumber 1 (C0..5). The red line connects the L+ pin with pin 19 (UP).

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    6/12

    Application Example - 5 - AC500/Issue: 11.2011

    4 PLC program

    This chapter will show you how to configure the different parameters.

    4.1 Control Builder Plus

    4.1.1 PS501 ConfiguratorThe PLC program was written with the ABB Configurator PS501 V2.1.0

    4.1.2 AC500 eCo CPU

    Using the AC500 eCo CPU PM564 ETH V2.1

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    7/12

    Application Example - 6 - AC500/Issue: 11.2011

    4.1.3 rtsinfo

    Its very important that you use the firmware V2.1.3.

    4.1.4 IO Configuration

    Choose fast Counter in the channel configuration. Now, we have to pick out a counter mode. For example1-1 Forward counter. If you want, you can choose one of ten other modes. Read more in chapter 9.3.2.

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    8/12

    Application Example - 7 - AC500/Issue: 11.2011

    4.1.5 IO Mapping

    Insert an input and output symbol in the IO mapping. For this example you have to insert counter_DI0 foran input signal from entrance 0 and an output signal from counter_DO0.

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    9/12

    Application Example - 8 - AC500/Issue: 11.2011

    5 PLC_PRG

    The PLC program is given in this example as text and could be written with the actual version of the AC500configurator.

    5.1 Fast Counter

    Two POUs are created: PLC_PRG(PRG) and fast_counter(PRG).

    All needed settings can changed in the visualization. Be careful, in this example is only counter 1 enabled.

    For more informations read the help and search after ONB_IO_CNT.

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    10/12

    Application Example - 9 - AC500/Issue: 11.2011

    5.2 Visualization

    This picture shows the settings and the actual count from a fast forward counter.

    Instance ONB_IO_CNT Instance name

    EN Input BOOL Enabling of the block processing

    CHANNEL Input BYTE Number of fast counter on Onboard I/O

    EN_VISU Input BOOL Enabling of control via the integrated visualizationof block visu ONB_IO_CNT

    EN1 Input/Output BOOL Enable counter 1UD1 Input/Output BOOL Counter 1: up = FALSE, down = TRUE

    EN_OUT1 Input/Output BOOL Enable output for control via PLC program (only inmode 1 and mode 2)

    SET1 Input/Output BOOL Set input counter 1

    START1 Input/Output DWORD Start value counter 1

    END1 Input/Output DWORD End value counter 1

    EN2 Input/Output BOOL Enable counter 2

    UD2 Input/Output BOOL Counter 2: up = FALSE, down = TRUE

    EN_OUT2 Input/Output BOOL Reserved (for enable output counter 2)

    SET2 Input/Output BOOL Set input counter 2

    START2 Input/Output DWORD Start value counter 2END2 Input/Output DWORD End value counter 2

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    11/12

    Application Example - 10 - AC500/Issue: 11.2011

    DONE Output BOOL Ready message

    ERR Output BOOL Error message of the block

    ERNO Output WORD Error number

    STATE Output WORD Status display of the block

    CF1 Output BOOL Overflow counter 1

    ACT1 Output DWORD Present counter value (counter 1 content)

    CF2 Output BOOL Overflow counter 2

    ACT2 Output DWORD Present counter value (counter 2 content)

    www.infoPLC.net

  • 8/11/2019 AC500 - Contador de Alta Velocidad (Encoder) en AC500 ECo CPUPM564

    12/12

    ABB Automation Products GmbHWallstadter Str. 59D-68526 LadenburgTel. : +49 62 21 / 701-1444Fax : +49 62 21 / 701-1382E-Mail : [email protected]

    www.abb.com/plc

    Doc. kind: No. o. p.:

    Helpline document 11

    Title: Lang.:

    Fast Counter AC500-eCo EN

    ManualNo.2

    CDC

    125184M0201

    www.infoPLC.net