EasyManua.ls Logo

VIPA SSM-BG41 - Page 65

VIPA SSM-BG41
286 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Manual BG41/BG42/BG43 Interface modules
Rev. 99/49 3-37
3.2.8.6 Application of counter modules with VIPA data handling blocks
Possible data handling blocks
Initialization FB100, FB101, FB12
Cycle FB10, FB11
3.2.8.7 General
The interfaces of the building blocks BG41, BG42 and BG43 can be used as counters. For this the
procedure "ZÄHLER" must be selected with the FB 100 or the FB101. Note, that a counter module
is connected to the corresponding interface.
With the counter module impulses can be counted or frequencies or pulse widths can be measured.
Connect the input pulse at the 25-pole sub D socket. Carry or Borrow are available as outputs for
each counter.
The module contains as a counter block the triple counter TMCT 12316 from Texas-Instruments.
For each of the three counters, 8 different modes can be set independently from each other on a 16-
bit register.
Counter 1 and Counter 2 can be cascaded to a 32-bit counter.
3.2.8.8 Programming the counter modules
If the counter module is to be used for one or more interfaces of the building blocks BG41, BG42 or
BG43 the counter procedure is to be set with FB 100 or FB 101.
By selecting the procedure "Counter", the following parameters are passed to the building block:
= Building block’s addresses
= Channel number on which the counter module is to be operated (depending on building
block1,2or3).
= Code for the counter procedure (Code: 05)
Together with the FB100 or the FB101, FB12 is to be loaded into the start OB. The counter mode is
selected with the FB12.
If the procedure driver has been activated for the counter module, further parameters have to be
transferred to the module.
On transferring the parameters it is determined how the counter module is to be operated and which
information you wish to receive or transfer to it:
You can
= read the counter status
= read the counter reading
= give the counter a default value
= allow the counter to operate in a certain mode
The parameters can be transferred by means of VIPA data handling blocks (HTB) or directly
transferred by the use of commands.

Table of Contents

Related product manuals