Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03)...

43
© ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

Transcript of Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03)...

Page 1: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 2.1 (2010-03)Technical Guides

AC500Fast counterAdvanced module

Scalable PLC AC500

Page 2: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast Counter Content

The fast counters in AC500 - overview

The fast counter in S500 - I/O - modules

The fast counter in DC551-CS31 module

The fast counter and interrupt functions in DC541-CM module

Page 3: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast Counter Coming up

The fast counters in AC500 - overview

The fast counter in S500 - I/O - modules

The fast counter in DC551-CS31 module

The fast counter and interrupt functions in DC541-CM module

Page 4: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Input signal of a fast counter

Inputs signals up to 300 kHz Fast counter operates independent of the cycle time. Fast counter functionality is provided by:

Digital input modules connected via I/O bus to PM5xx CPU up to 50kHzDC551 – CS31 module up to 50kHzCI592 – CS31 module up to 50kHzDC541 – CM module up to 50 kHzCD522 module (up to 300 KHz)PM55x, PM56x CPU up to 30kHz

taskexecution I O I OO I II I I IO O O

Fast Counter Purpose

cycle time

Page 5: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterIn AC500 (1)

Central extension: Fast counters available

De-central extension CS31:

CS31 Interface DC551 or CI592: Fast counter availableI/O bus: Up to 2 modules

CD522 only!

Central extension:

Fast counters are available in up to 10 modules on I/O bus and in up to 4 multifunction modules mounted in terminal base left to the CPU.

CS31 field bus

Page 6: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterIn AC500 (2)

Master‘s central extension: Fast counters availableSlave’s central extension: Fast counters available

De-central extension FBP, AC500 (as slave)

Central extension: Fast counters available

De-central extension FBP, S500:

PROFIBUS: up to 4 modulesCANopen: up to 2 modulesDeviceNet: up to 2 modulesCD522 only!

Page 7: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterModules with Fast Counter (1)

Central extension

Multifunction moduleDC541–CM

or

I/Os

interrupt module fast counter

I/Os

S500 I/O module

DC522, DC523,DC532, DI524

DX522

Central extension

fast counter

CPUPM55x, PM56x

fast counter

CPU I/Os

Central extension

Page 8: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterModules with Fast Counter (2)

Encoder + PWM ModuleCD522

fast counter I/Os

Central extensionDe-central extension

(PROFIBUS, CANopen,DeviceNet, CS31 bus)

DC551-CS31

or

CI592-CS31

fast counter

Connection to CS31 bus

I/Os

De-central extension

Page 9: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterData Exchange

The counter function is performed within a module containing the fast counter. The data exchange between the counter and the user program is performed by using the input and output operands.

Fast counter I/O operands are created automatically during set-up.

The fast counter library is included automatically into project if fast counter is configured.

CPU Module with fast counter

Image memory

%QD, %QB

%IW, %IB

Counting functionSet parameters

Actual counter parameters

Page 10: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterSet-up procedure

Counter Settings

The fast counter is activated and set by a parameter of the module.

Counter settings are to be made in the project software “Resources” \ “PLC Configuration”.

The amount of parameters depends on the module type.

Page 11: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterSet up procedure

Settings to be done:

Counter operation mode

Symbolic names for counter I/O operands

Setting parameters like:Start value

End value

Up/down …etc.

according to the module typeand operation mode

Page 12: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast Counter Coming up

The fast counters in AC500 - overview

The fast counter in S500 - I/O - modules

The fast counter in DC551-CS31 module

The fast counter and interrupt functions in DC541-CM module

Page 13: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Here you are able to select the operation mode of the fast counter

Select “Resources” \ “PLC Configuration” \ “AC500” \ “I/O Bus” \“DC532” \ “Fast Counter”

Fast CounterExample: Module DC532 (1)

Page 14: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

PLC configuration: Symbolic variables (not necessary but easier to read )

Fast CounterExample: Module DC532 (2)

Page 15: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Global variables: Byte to bit reduction for BOOL signals

Control byteStatus byte

Fast CounterExample: Module DC532 (3)

Page 16: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast Counter Coming up

The fast counters in AC500 - overview

The fast counter in S500 - I/O - modules

The fast counter in DC551-CS31 module

The fast counter and interrupt functions in DC541-CM module

Page 17: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

1. Right click “COM1-CS31-Bus“ and select “Append Subelement“

Fast CounterExample: Module DC551 (1)

PLC configuration DC551: 2. Select the DC551-CS31..+2FC

FC = Fast Counter

Page 18: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Address switchfor fast counteron DC551- CS31:(70 + 1 =) 71 (70 + module address)PLC configuration:

Select the operation mode of the fast counterand set the addresses like shown

has to be in accordancewith this setup

Fast CounterExample: Module DC551 (2)

Page 19: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

PLC configuration: Symbolic variables (not necessary but easier to read )

Fast CounterExample: Module DC551 (3)

Page 20: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Global variables: Byte to bit reduction for bool signals

Control byteStatus byte

Fast CounterExample: Module DC551 (4)

Page 21: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterFeatures (S500 Digital I/O Modules, DC551 and CI592)

Maximum counting frequency 50 kHz respectively depends on operating mode.

If using DC modules each counting input has to be externally circuited in series with a resistor of 470 / 1W (to avoid influences from deactivated module output).

The positive edge signals are counted if not noted differently.

When the counter reaches programmed end value the output CF = TRUE is generated permanently. CF is reset to FALSE by setting the counter again (set value) .

Page 22: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterOperating Modes–S500 I/O Modules, DC551 and CI592 (1)

Up counter

Counter disabled

0(1)

Counting input A

End value reached Output (if existing)

1

As (1) with

Enabling input B

2

Page 23: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterOperating Modes–S500 I/O Modules, DC551 and CI592 (2)

Up / down counter

As (3)

Inverted counting input of B

4

(4)

Counting input

With dynamic HWset input 5 (0-1 edge)

5

As (4)

Dynamic set input(1-0 edge)

6

(3) Two independentcounters

Counting input A, B

3

Page 24: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterOperating Modes–S500 I/O Modules, DC551 and CI592 (3)

Up / down counter for incremental encoder

(7)

Counting input A

Counting input B

Counting frequency 35 kHz

7

Reserved

8

As (7) but

X2 puls multiplication:counting A0-1 , 1-0edges

Counting frequency 30 kHz

9

As (7) but

X4 puls multiplication:counting A and B0-1 , 1-0edges

Counting frequency 15 kHz

10

Page 25: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast Counter Coming up

The fast counters in AC500 - overview

The fast counter in S500 - I/O - modules

The fast counter in DC551-CS31 module

The fast counter and interrupt functions in DC541-CM module

Page 26: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

The digital input/output module contains 8channels: C0 – C7Up to 4 DC541 can be operated by a PM57x, PM58x or PM59x CPU

Fast CounterModule DC541-CM: Fast Counter (1)

The counter module DC541 can be used alternatively in one of two operating modes:

fast counting device Interrupt input / output device

Page 27: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

The module functionality in both operating modes is independent of the program cycle.

The implementation of the module function is performed by function blocks. The library is loaded automatically into the project.

Visualizations are available.

Fast CounterModule DC541-CM: Fast Counter (2)

Page 28: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterDC541-CM – Counting Mode

DC541-CMPWM

8 channels

10 kHz

DC541_PWM

Input/output

DC541_IO

Incremental encoder

Tracks A, B, Zero

Touch trigger

50 kHz

1 channel

Remaining channels are usable for other modes

DC541_32BIT_CNT

Frequency output

8 channels

2.5 kHz max

Endless definednumber of pulses

DC 541_FREQ_OUT

Page 29: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterDC541-CM (2)

DC541-CMUp counter Up / down counter

endless counting

1 channel

Remaining channels are usable for other modes

DC541_FWD_CNT

50 kHz

2 channels

Remaining channels are usable for other modes

DC 541_32BIT_CNT

5 kHz

4 channels

Remaining channels are usable for other modes

DC 541_32BIT_CNT

2.5 kHz

8 channelsDC 541_32Bit_CNT

Page 30: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterDC541-CM (3)

DC541-CM

Time and frequency measurement

8 channels

Resolution 100 s

DC541_FREQ

Resolution 1 s (1 channel only)

DC541_FREQ_FAST

1 channel

Limit values display of counters on channels 0-3

DC541_LIMIT

Page 31: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

1. Insert the moduleDC541 in the configuration of the PLC (one of thecoupler slots)

2. Right click at the DC541 line

3. Select “AppendSubelement”and after that select the mode

Fast CounterExample: DC541_FWD_CNT(1)

Page 32: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

4. Left click at this line

5. Select the counter:In this case C0 is the input for the counter pulses

Fast CounterExample: DC541_FWD_CNT (2)

Page 33: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

3. Select the function

1. Left click here(Visualization)

2. Draw this square(drag and draw)

Fast CounterExample: DC541_FWD_CNT (3)

The function block DC541_FD_CNT can be visualized by an appropriate visualization object.

Page 34: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

4. Right click here

5. Click at “configure”

Fast CounterExample: DC541_FWD_CNT (4)

Page 35: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

6. Click at “placeholder”

7. Left click here and click F2

Fast CounterExample: DC541_FWD_CNT (5)

Page 36: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

8. Select the counterinstance

Fast CounterExample: DC541_FWD_CNT (6)

Page 37: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

The digital input/output module contains 8channels: C0 – C7Up to 4 DC541 can be operated by a PM5xxCPU

Fast CounterModule DC541-CM: Interrupt Mode (1)

The counter module DC541 can be used alternatively in one of two operating modes:

Fast counting device Interrupt input / output device

Page 38: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Interrupt input/output device

Interrupt, interrupt-start with jitter < 100 µs

Digital input and output

Reaction time maximum 500 µsec this means time between read interrupt-input and write interrupt-output. Also if input and output are on two different DC541 of the CPU

Fast CounterModule DC541-CM: Interrupt Mode (2)

Page 39: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterExample: DC541_INT (1)

Page 40: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterExample: DC541_INT (2)

It is possible to start one interrupt task per module.There are different types of interrupt tasks:

Ext_CouplerX_InputAny Ext_CouplerX_InputAny_high_prio

Task triggered by any interrupt Task triggered by any interruptfrom module with specific priority from module with highest priority.

The task execution time must not exceed approximately 400 µs

Page 41: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterExample: DC541_INT(3)

Page 42: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides

Fast CounterExample: DC541_INT_IN

Page 43: Scalable PLC AC500 AC500 Fast counter Advanced module · © ABB Group – Version 2.1 (2010-03) Technical Guides AC500 Fast counter Advanced module Scalable PLC AC500

© ABB Group – Version 1.0 (2009-02)Technical Guides