Herunterladen Inhalt Inhalt Diese Seite drucken

B&R BRCOMP1-0 Anwenderhandbuch Seite 178

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

B&R COMPACT PLC
14.3 CMDC - COUNTER MODULE DRIVER (BRCOMP)
When using this function block, preselected values and new counter states are taken or updated at the
next END (program end).
CMDC
Function block length:
First Scan:
Inputs/Outputs
ENABLE
MODE
- 178 -
120 lines
Yes
[ADR] 2
[ADR] 2
[ADR] 2
[ADR]
Description
If the ENABLE input is set to 1, the function block is executed.
Sets the counter operating mode.
7 6 5 4 3 2 1 0
Event counter 0 always responds to the positive edge. This setting cannot
be changed.
If the zero signal from counter 0 is selected as the interrupt source, bit 7
must be set for the positive edge. Otherwise no interrupt is executed.
Bit 7 will only change if the status of bits 0 - 3 changes.
If counter 0 is used as the interrupt source, the preset value for counter 0
may only be a value in between 3 and 65535 (see section "14.6.8 Calling
Operating System Routines", point 3 for the transfer of preset values).
COUNTER MODULE
DRIVER C
1
ENABLE
1
MODE
RUN1/0
CLR1/0
PREDEF
2
DATA
Edge for Input Capture Interrupt
0
... Negative edge
1
... Positive edge
Reserved for later use
Interrupt source for Input Capture Input
00 ... Interrupt locked
01 ... Input D
10 ... Zero signal hardware counter 0
11 ... Reserved
Counter mode for counters 1 and 2
00 ... Event counter pos. edge
01 ... Event counter pos./ neg. edges
10 ... Reserved
11 ... Two channel counter (Encoder)
CMDC
1
ERROR
Address types
R, F, #
R, #

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Brcomp2-0

Inhaltsverzeichnis