Saia PCD2.H110 User manual

SAIAPCD
Process Control Devices
PCD2.H110
Universal counting
and measuring module
English edition 26/755 E2

SAIA-Burgess Electronics Ltd.
Bahnhofstrasse 18
CH-3280 Murten(Switzerland)
http;//www.saia-burgess.com
BA: Electronic Controllers Telephone 026 / 672 71 11
Telefax 026 / 670 44 43
___________________________________________________________________________________________________________________________
SAIA-Burgess Companies
Switzerland SAIA-Burgess Electronics AG
Freiburgstrasse 33
CH-3280 Murten
026 672 77 77, Fax026 670 19 83
France SAIA-Burgess Electronics Sàrl.
10, Bld. Louise Michel
F-92230 Gennevilliers
01 46 88 07 70, Fax01 46 88 07 99
Germany SAIA-Burgess Electronics GmbH
Daimlerstrasse 1k
D-63303 Dreieich
06103 89 060, Fax06103 89 06 66
Nederlands SAIA-Bur
g
ess Electronics B.V.
Hanzeweg 12c
NL-2803 MC Gouda
0182 54 31 54, Fax0182 54 31 51
Austria SAIA-Burgess Electronics Ges.m.b.H.
Schallmooser Hauptstrasse 38
A-5020 Salzburg
0662 88 49 10, Fax0662 88 49 10 11
Belgium SAIA-Burgess Electronics Belgium
Avenue Roi Albert 1er, 50
B-1780 Wemmel
02 456 06 20, Fax02 460 50 44
Italy SAIA-Burgess Electronics S.r.l.
Via Cadamosto 3
I-20094 Corsico MI
02 48 69 21, Fax02 48 60 06 92
Hungary SAIA-Burgess Electronics AutomationKft.
Liget utca 1.
H-2040 Budaörs
23 501 170, Fax23 501 180
Representatives
Great Britain Canham Controls Ltd.
25 Fenlake Business Centre, Fengate
Peterborough PE1 5BQ UK
01733 89 44 89, Fax01733 89 44 88
Portugal INFOCONTROL Electronica e Automatismo LDA.
Praceta Cesário Verde,No 10 s/cv, Massamá
P-2745 Queluz
21 430 08 24, Fax21 430 08 04
Denmark Malthe Winje AutomationAS
Håndværkerbyen 57 B
DK-2670 Greve
70 20 52 01, Fax70 20 52 02
Spain Tecnosistemas Medioambientales, S.L.
Poligono Industrial El Cabril, 9
E-28864 Ajalvir, Madrid
91 884 47 93, Fax91 884 40 72
Norway Malthe Winje Automasjon AS
Haukelivn 48
N-1415 Oppegård
66 99 61 00, Fax66 99 61 01
Czech
Republic ICS Industrie Control Service, s.r.o.
Modranská 43
CZ-14700 Praha 4
2 44 06 22 79, Fax2 44 46 08 57
Sweden Malthe Winje Automation AB
Truckvägen14A
S-194 52 Upplands Våsby
08 795 59 10, Fax08 795 59 20
Poland SABUR Ltd.
ul. Druzynowa 3A
PL-02-590 Warszawa
22 844 63 70, Fax22 844 75 20
Suomi/
Finland ENERGEL OY
Atomitie 1
FIN-00370 Helsinki
09 586 2066, Fax09 586 2046
Australia Siemens Building Technologies Pty. Ltd.
Landis & Staefa Division
411 Ferntree GullyRoad
AUS-Mount Waverley, 3149 Victoria
Argentina MURTEN S.r.l.
Av. del Libertador 184, 4° “A”
RA-1001 Buenos Aires
054 11 4312 0172, Fax054 11 4312 0172
3 9544 2322, Fax3 9543 8106
After sales service
USA SAIA-Burgess Electronics Inc.
1335 BarclayBoulevard
Buffalo Grove, IL 60089, USA
847 215 96 00, Fax847 215 96 06
___________________________________________________________________________________________________________________________
Issue : 22.11.2000
Subjet to change without notice

SAIA-Burgess Electronics Ltd.
SAIA® Process Control Devices
Universal counting
and measuring module
PCD2.H110
SAIA-Burgess Electronics Ltd. 1999 all rights reserved
Edition 26/755 E2 - 04.99
Subject to technical changes

SAIA-Burgess Electronics Ltd.
Updates
Manual : PCD2.H110 - Universal counting and measuring module - Edition E2
Date Chapter Page Description

PCD2.H110 Table of contents
26/755 E2 (2H1-00-E.DOC) SAIA-Burgess Electronics Ltd. Page 1
Table of contents
Page
1. Introduction
1.1 General 1-1
1.2 Function and application 1-2
1.3 Main characteristics 1-3
1.4 Typical areas of application 1-4
1.5 Programming 1-5
2. Technical data
2.1 Technical data of the hardware 2-1
2.2 Electrical specification 2-3
2.3 Function specific data 2-4
3. Presentation
4. Terminals, cable and meaning of the LED's
5. Brief introduction
5.1 Getting started with programming in IL 5-2
5.2 Getting started with programming in FUPLA 5-5
6. Programming
6.1 Programming in IL with FBs 6-2
6.1.1 The IL package (Installation of the FBs) 6-2
6.1.2 The individual FBs 6-5
6.2 Programming in FUPLA with FBoxes
6.3 Programming in GRAFTEC with FBoxes
7. Error handling and diagnostics
7.1 Definition errors checked by the assembler 7-1
7.2 Error handling in run 7-2

Table of contents PCD2.H110
Page 2 SAIA-Burgess Electronics Ltd. (2H1-00-E.DOC) 26/755 E2
Page
8. PCD2.H110 for counting and motion control tasks
8.1 Block diagram of counter 8-1
8.2 Description of counter 8-2
8.3 Configuration of inputs 'EnableC',
'CCO', 'A', 'B' and the count mode 8-3
8.3.1 Configuration of the 'EnableC' input 8-3
8.3.2 Configuration of the 'CCO' output 8-4
8.3.3 Configuration of the inputs 'A' and 'B' 8-5
8.3.4 Configuration of count mode 8-6
8.4 Programmable counter functions 8-8
8.5 Programming principle 8-9
8.6 Application example no. 1:
Counter in GRAFTEC 8-13
8.7 Application example no. 2:
Motion control with incremental shaft encoder 8-18
8.8 Application example no.3:
Measurement with counting 8-26
9. PCD2.H110 for measuring tasks
9.1 Frequency measurement 9-1
9.1.1 Block diagram 9-1
9.1.2 Description of frequency measurement 9-2
9.1.3 Configuration of frequency measurement 9-3
9.1.4 Programming principle 9-4
9.1.5 Combination of counting and frequency measuring 9-6
9.2 Period length measurement 9-7
9.2.1 Block diagram 9-7
9.2.2 Description of period length measurement 9-8
9.2.3 Configuration of period length measurement 9-9
9.2.4 Programming priciple 9-10
9.3 Pulse length measurement 9-13
9.3.1 Block diagram 9-13
9.3.2 Description of pulse length measurement 9-14
9.3.3 Configuration of pulse length measurement 9-15
9.3.4 Programming principle 9-16

PCD2.H110 Table of contents
26/755 E2 (2H1-00-E.DOC) SAIA-Burgess Electronics Ltd. Page 3
Page
Appendix A: Summary ofall software elements for
programming in IL (FBs)
INIT Initialisation FB A-1
EXEC Execution FB A-3
LdCtPres Load counter preset A-4
LdRegPres Load register preset A-5
ModMsConf Measure mode configuration A-6
LdMsVal Load measure value A-7
RdCt Read counter A-9
RdMsImp Read measure in impulsion A-10
RdMsUnit Read measure in unit A-11
StartCt Start counter A-12
StartMs Start measure A-13
StopMs Stop measure A-14
RdIdent Read module identification A-15
Appendix B: Summary of all software elements for
programming in FUPLA (FBoxes)
in preparation

Table of contents PCD2.H110
Page 4 SAIA-Burgess Electronics Ltd. (2H1-00-E.DOC) 26/755 E2
Notes

PCD2.H110 Table of contents
26/755 E2 (2H1-00-E.DOC) SAIA-Burgess Electronics Ltd. Page 5
Please note:
A number of detailed manuals are available to aid installation and
operation of the SAIA PCD. These are for use by technically qualified
staff, who may also have successfully completed one of our workshops.
To obtain the best performance from your SAIA PCD, closely follow the
guidelines for assembly, wiring, programming and commissioning given
in these manuals. In this way, you will also become one of the many
enthusiastic SAIA PCD users.
If you have any technical suggestions or recommendations for
improvements to the manuals, please let us know. A form is provided on
the last page of this manual for your comments.
Summary
Hardware
PCD4 Hardware
PCD6
PCD4.H1..
PCD4.H2..
PCD4.H3..
Reference
Guide
(PG3)
PCD8.P1..
PCD7.D1..
PCA2.D1..
PCD7.D2..
Installation
Components
for RS 485-
Networks
FUPLA/
KOPLA
function
families
PCD1/2 series PCD4 series PCD6 series
General
Manuals
*)
*)
*)
*) Adapter module 4'717'4828'0
allows H modules to be used
with the PCD6.
User's
Guide
- PG4
- Modem
- S-Bus
- PROFIBUS
- Remote I/O
PCD4.H4..
Hardware
PCD1
PCD2
Serie xx7
PCD2.M220
PCD2.H110
PCD2.H150
PCD2.H210
PCD2.H31x

Table of contents PCD2.H110
Page 6 SAIA-Burgess Electronics Ltd. (2H1-00-E.DOC) 26/755 E2
Reliability and safety of electronic controllers
SAIA-Burgess Electronics Ltd. is a company which devotes the greatest
care to the design, development and manufacture of its products:
•state-of-the-art technology
•compliance with standards
•ISO 9001 certification
•international approvals: e.g. Germanischer Lloyd, UL,
Det Norske Veritas, CE mark ...
•choice of high-quality components
•quality control checks at various stages of production
•in-circuit tests
•run-in (burn-in at 85°C for 48h)
Despite every care, the excellent quality which results from this does
have its limits. It is therefore necessary, for example, to reckon with the
natural failure of components. For this reason SAIA-Burgess Electronics
Ltd. provides a guarantee accordingto the "General terms and conditions
of supply".
The plant engineer must in turn also contribute his share to the reliable
operation of an installation. He is therefore responsible for ensuring that
controller use conforms to the technical data and that no excessive
stresses are placed on it, e.g. with regard to temperature ranges,
overvoltages and noise fields or mechanical stresses.
In addition, the plant engineer is also responsible for ensuring that a
faulty product in no case leads to personal injury or even death, nor to
the damage or destruction of property. The relevant safety regulations
should always be observed. Dangerous faults must be recognized by
additional measures and any consequences prevented. For example,
outputs which are important for safety should lead back to inputs and be
monitored from software. Consistent use should be made of the
diagnostic elements of the PCD, such as the watchdog, exception
organization blocks (XOB) and test or diagnostic instructions.
If all these points are taken into consideration, the SAIA PCD will
provide you with a modern, safe programmable controller to control,
regulate and monitor your installation with reliability for many years.

PCD2.H110 Introduction
26/755 E2 (2H1-10-E.DOC) SAIA-Burgess Electronics Ltd. Page 1-1
1. Introduction
1.1 General
The standard equipment of SAIAPCD process control devices already
offers 1600 counting registers of 31 bits, although they can only capture
frequencies up to approx. 20 Hz. Via the interrupt inputs, 1 kHz can be
achieved and, with the ..H100 counting module, up to20 kHzare possible.
The new ..H110 counting module not only extends the frequency range to
100 kHz, but also allows accurate measurement of frequencies up to
100 kHz and the length of periods or pulses up to one hour.
Its two counting inputs, A and B, enable it to recognize the rotatiorial
direction of incremental shaft encoders, thus making the ..H110 module
also capable of axis control, as long as regulated motion is not required
from the module. For the regulated control of servo-motors with starting
and braking ramps, we recommend the PCD2.H3.. motion control module.
The new ..H110 counting and measuring module uses a modern FPGA
component (field programmable gate array), which can also be
programmed for other specific OEM tasks by means of plug-in PROM.
For this purpose, 4 inputs, 4 outputs and 2 x 4 LEDs are provided to the
outside.
Function blocks and a comprehensive manual are available to the user for
standard ..H110 functions.

Introduction PCD2.H110
Page 1-2 SAIA-Burgess Electronics Ltd. (2H1-10-E.DOC) 26/755 E2
1.2 Function and application
This low-cost module can be plugged into any I/O socket on a PCD1 or
PCD2.
The module can be used in different modes:
Block diagram as counting module
BUS PCD1/2
PROCESSOR PCD1/2
COUNTER
MODE
x1, x2, x4
AND
I/O LOGIC
START
UP/DOWN
CCOCCO
LATCH REGISTER
PRESET REGISTER
IN-A
IN-B
ENABLE
BUS INTERFACE
COUNTER
24 BITS
Block diagram for frequency measurement
BUS PCD1/2
PROCESSOR PCD1/2
COUNTER
16 BITS
COUNTER
16 BITS
I/O
LOGIC
START
ENABLE
TCO
CLK
1kHz MEASURE
TIME
LATCH REGISTER
IN-A
ENABLE
TCO
BUS INTERFACE
TACHOMETER
Block diagram for measuring period or pulse length
BUS PCD1/2
PROCESSOR PCD1/2
COUNTER
16 BITS
I/O
LOGIC
START
ENABLE
TCO
CLK
1MHz MULTIPLICATOR
(n
1s)
µ×
LATCH REGISTER
IN-A
ENABLE
TCO
ON OFF
BUS INTERFACE
TACHOMETER
Block diagram for special OEM versions
BUS PCD1/2
PROCESSOR PCD1/2
I/O
LOGIC
PROM WITH
SPECIAL APPLICATION
I 0
I 1
I 2
I 3
O 0
O 1
O 2
O 3
BUS INTERFACE
FPGA

PCD2.H110 Introduction
26/755 E2 (2H1-10-E.DOC) SAIA-Burgess Electronics Ltd. Page 1-3
1.3 Main characteristics
•Up to 16 PCD2.H110 modules in parallel operation can be inserted in
one PCD2, or up to 4 in one PCD1.
•Counting and measuring functions can be utilized simultaneously in
the same module.
As a counting module
•Counting frequency up to 100 kHz
•Counting range 0 ... 16 777 215 (24 bit)
•Preset value 0... 16 777 215 (24 bit)
•Up or down counting to preset value
•2 digital inputs A and B with recognition of rotational direction
•1 direct counter output CCO
•Selectable counting modes
For frequency measurement
•Frequency range 500 Hz to 100 kHz
•Measurement range 0 ... 65 535 (16 bit)
•Accuracy ≥1‰. (depending on measurement time)
•The fast TCO output can be used at the end of a measurement, e. g. to
trigger an interrupt
To measure period or pulse length
•Frequency range 0.27 mHz to 500 Hz
•Period or pulse lengths from 2 ms to 1h
•The fast TCO output can be used at the end of a measurement, e. g. to
trigger an interrupt.

Introduction PCD2.H110
Page 1-4 SAIA-Burgess Electronics Ltd. (2H1-10-E.DOC) 26/755 E2
1.4 Typical areas of application
For small, basic PCD1 and PCD2 controllers, use of the new ..H-modules
considerably extends the area of application. In particular, the ..H110
enables:
•fast pulse counting proportional to quantities (items, units of energy,
etc.), placing little load on the basic CPU
•unregulated axis control of any drives with incremental shaft
encoders
•quartz accuracy in determining velocity, rotary frequency, flow rate,
etc.
Applications:
•Automatic handling- and assembly machines
•Pick and place functions
•Palletising equipment
•Automatic angle control, e.g. of cameras, headlamps, aerials, etc.
•Motion control of static axes (set-up)

PCD2.H110 Introduction
26/755 E2 (2H1-10-E.DOC) SAIA-Burgess Electronics Ltd. Page 1-5
1.5 Programming
Pre-programmed functional blocks make it possible to simply enter the
parameters necessary for the desired count or measuring mode. These
FBs (IL) and FBoxes (FUPLA) are used by the PG4 (Windows
programming software). The present manual includes detailed
descriptions of each function block, with associated practical examples.
The use of the older programming tool "PG3" is possible only with
special FBs)
lnitialization command
INIT - Select the module number
- Counter configuration
- Counter preset
- Register preset
- Enable counter configuration
- CCO configuration
- IN-A configuration
- IN-B configuration
- Measuring configuration
- Measuring value
- Enable measuring configuration
- TCO configuration
Execution command
EXEC - Select the module number
- command
- Register for load value or result
The commands:
- LdCtPres Load counter preset
- LdRegPres Load register preset
- ModMsConf Measure mode configuration
- LdMsVal Load measure value
- RdCt Read counter
- RdMsImp Read measure in impulsion
- RdMsUnit Read measure in unit (Hz or ms)
- StartCt Start counter
- StartMs Start measure
- StopMs Stop measure
- RdIdent Read module identification

Introduction PCD2.H110
Page 1-6 SAIA-Burgess Electronics Ltd. (2H1-10-E.DOC) 26/755 E2
Notes

PCD2.H110 Technical data
26/755 E2 (2H1-20-E.DOC) SAIA-Burgess Electronics Ltd. Page 2-1
2. Technical data
2.1 Technical data for the hardware
Digital inputs
Total 4
Nominalvoltage:24 V
Low range:- 30 ... +5V
High range:+15 ... +30 V
Source mode only (positive logic)
Input current (typical) 6.5 mA
Inputfilter 150 kHz
Switching type galvanically connected
Digital outputs:
Total 2
Current range 5 to 500 mA
(Leakage current max.: 1 mA)
(Load resistancemin.: 48Ωin the
voltage range from 5 to 24 V)
Short-circuit protection no
Frequency ≤100 kHz
Voltagerange5 to 32 V(externalsupply)
Switching type galvanically connected
Potentialdrop (typically) <0.5 Vby 500 mA
Output delay less than 1 µs
with inductive loads, the delay is longer
due to the protective diode
Power supply
Internal supply
from PCD1/2 bus 5 VDC, max. 90 mA
Externalby user24 VDC (10 ... 32 VDC), max. 2 A
for all outputs smoothed ripple max. 10%
Operating conditions
Ambient temperature operation: 0 ... +50°C without forced
ventilation
storage: -20 ... +85°C
Interference immunity CE mark according to EN 50081-1 and
EN 50082-2

Technical data PCD2.H110
Page 2-2 SAIA-Burgess Electronics Ltd. (2H1-20-E.DOC) 26/755 E2
LED displays
Total 6
LED 0: Status of input "A"
LED 1: Status of input "B"
LED 2: Status of input "EnableC"
LED 3: Status of input "EnableM"
LED 4: Status of "CCO" output
LED 5: Status of "TCO" output
Programming
Based on PCD user program (PG4) and pre-programmed
functional blocks.
Ordering details
PCD2.H110 Universal counting and measuring module
PCD9.H11E Software library with function blocks

PCD2.H110 Technical data
26/755 E2 (2H1-20-E.DOC) SAIA-Burgess Electronics Ltd. Page 2-3
2.2 Electrical specification
Internal power consumption
+5V: max. 90 mA
Uext: 0 ... 10 mA (without load current)
External power supply
Terminals +/-: 10 ... 32 VDC smoothed, residial ripple max. 10%
TVSdiode 39 V±10%
max. 2 Afor outputsnot protected againstwrong polarity!
Digital inputs 4 digital inputs (E0 ... E3)
(see chapter 2.1)
Digital outputs2 digital outputs (A0 and A1)
(see chapter 2.1)

Technical data PCD2.H110
Page 2-4 SAIA-Burgess Electronics Ltd. (2H1-20-E.DOC) 26/755 E2
2.3 Function specific data
Number of systems 1
Counting range 0 ... 16 777 215 (24 bit)
Counting frequency up to 100 kHz
Data protection All data in this module is volatile
(non-volatile registers in the PCD
can be used)
Table of contents