Вы находитесь на странице: 1из 12

Application Example AC500

Scalable PLC
for Individual Automation


Fast Counter AC500-eCo





www.infoPLC.net
Application Example - 1 - AC500/Issue: 11.2011
Content
1 Disclaimer ..................................................................................................................2
1.1 For customers domiciled outside Germany/
Fr Kunden mit Sitz auerhalb Deutschlands........................................................................ 2
1.2 Nur fr Kunden mit Sitz in Deutschland ........................................................................ 2
2 Introduction ...............................................................................................................3
2.1 Hardware and Software requirement ............................................................................. 3
2.2 Connections .................................................................................................................... 3
3 Hardware configuration ............................................................................................4
4 PLC program..............................................................................................................5
4.1 Control Builder Plus........................................................................................................ 5
4.1.1 PS501 Configurator .................................................................................................5
4.1.2 AC500 eCo CPU......................................................................................................5
4.1.3 rtsinfo.......................................................................................................................6
4.1.4 IO Configuration.......................................................................................................6
4.1.5 IO Mapping..............................................................................................................7
5 PLC_PRG ...................................................................................................................8
5.1 Fast Counter .................................................................................................................... 8
5.2 Visualization .................................................................................................................... 9
www.infoPLC.net
Application Example - 2 - AC500/Issue: 11.2011
1 Disclaimer
1.1 For customers domiciled outside Germany/
Fr Kunden mit Sitz auerhalb Deutschlands
"Warranty, Liability:

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 the
files included within this file, irrespective of the legal ground, shall be excluded. The exclusion of liability shall
not apply in the case of intention or gross negligence. The present declaration shall be governed by and
construed in accordance with the laws of Switzerland under exclusion of its conflict of laws rules and of the
Vienna Convention on the International Sale of Goods (CISG)."

" Gewhrleistung und Haftung:

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

ABB unterliegt keiner Gewhrleistung. Die Haftung von ABB im Zusammenhang mit diesem
Anwendungsbeispiel oder den in dieser Datei enthaltenen Dateien - gleich aus welchem Rechtsgrund - ist
ausgeschlossen. Dieser Ausschlu gilt nicht im Falle von Vorsatz oder grober Fahrlssigkeit. Diese
Erklrung 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 fr
Programmierungen dar, sind aber keine fertigen Lsungen. Eine Gewhr kann nicht bernommen werden.

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

Die Haftung von ABB, gleich aus welchem Rechtsgrund, im Zusammenhang mit den Anwendungsbeispielen
oder den in dieser Datei enthaltenen Dateien wird ausgeschlossen. Der Haftungsausschlu gilt jedoch nicht
in Fllen des Vorsatzes, der groben Fahrlssigkeit, bei Ansprchen nach dem Produkthaftungsgesetz, im
Falle der Verletzung des Lebens, des Krpers oder der Gesundheit oder bei schuldhafter Verletzung einer
wesentlichen Vertragspflicht. Im Falle der Verletzung einer wesentlichen Vertragspflicht ist die Haftung
jedoch 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 Nachteil
des Nutzers ist hiermit nicht verbunden.

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

www.infoPLC.net
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 and
software 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
Application Example - 4 - AC500/Issue: 11.2011
3 Hardware configuration
In the following example we will take an AC500 eCo CPU/PM564. The red lines in the following picture are
the 24VDC (L+). The blue lines are ground (M). The orange line connects a digital output with a digital input
channel.
For this example we take the DO0 (digital output) and connect them with the DI0 (digital intput), this will show
the orange line. The blue line connects the pins: M for the power supply, pin number 20 (ZP) and the pin
number 1 (C0..5). The red line connects the L+pin with pin 19 (UP).


www.infoPLC.net
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 Confi gurator
The 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
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 example
1-1 Forward counter. If you want, you can choose one of ten other modes. Read more in chapter 9.3.2.






www.infoPLC.net
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 for
an input signal from entrance 0 and an output signal from counter_DO0.


www.infoPLC.net
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 AC500
configurator.

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
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 visualization
of block visu ONB_IO_CNT
EN1 Input/Output BOOL Enable counter 1
UD1 Input/Output BOOL Counter 1: up =FALSE, down =TRUE
EN_OUT1 Input/Output BOOL Enable output for control via PLC program (only in
mode 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 2
END2 Input/Output DWORD End value counter 2
www.infoPLC.net
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

ABB Automati on Products GmbH
Wallstadter Str. 59
D-68526 Ladenburg
Tel. : +49 62 21 / 701-1444
Fax : +49 62 21 / 701-1382
E-Mail : plc.support@de.abb.com


www.abb.com/plc
Doc. ki nd: No. o. p.:
Helpline document 11
Title: Lang.:
Fast Counter AC500-eCo EN

M
a
n
u
a
l

N
o
.

2
C
D
C

1
2
5

1
8
4

M
0
2
0
1

www.infoPLC.net

Вам также может понравиться