7CM211.7 Datasheet
7CM211.7 Datasheet
11.1 CM211
Product ID CM211
General Information
C-UL-US Listed In preparation
B&R ID Code $C3
Module Type B&R 2003 I/O module
Amount 1)
CP430, EX270, EX470, EX770 2
CP470, CP770, CP474, CP476, CP774 4
EX477, EX777 4
External Voltage Monitoring Yes (LED: OK), supply voltage >18 V
Electrical Isolation
Analog - PLC No
Digital - PLC No
Digital - Analog No
Power Consumption Max. 1.5 W
Product ID CM211
Analog Inputs
Input Type Asymmetric
Number of Inputs 2
Input Signal - Nominal ±10 V / 0 - 20 mA can be set for each channel with switch
Maximum Continuous Overload (without damage) ±15 V / ±50 mA
Digital Converter Resolution 12 bit
Data Format Delivered to the Application Program 16 bit 2s complement
Value Range
Voltage
+10 V $7FFF
0V $0000
-10 V $8001
Current
20 mA $7FFF
0 mA $0000
Measurement Range Monitoring
Open Inputs $7FFF
Range Exceeded (neg.)
Voltage $8001
Current $0000
Range Exceeded (pos.) $7FFF
General Error $8000
Conversion Method Successive approximation
Conversion Time <4 ms for both channels, the channels are converted cyclically
Input Impedance in Signal Range for voltage input ≥1 MΩ
input impedance in signal range for current input 95 - 200 Ω
(load)
Measurement Precision at 25 °C Voltage Current
Offset ±2.62 mV ±5.29 µA
Gain ±0.2 % 2) ±0.2 % 2)
Offset Drift ±2 mV/°C ±5.9 µA/°C
Gain Drift ±65 ppm/°C 3) ±75 ppm/°C 3)
LSB Value (12 Bit) ±2.53 mV ±0.09 mV ±5.09 µA ±0.2 µA
Non-Linearity ±2 LSB
Input Filter Cut-off Frequency 500 Hz
Analog Outputs
Number of Outputs 2
Output Signal ±10 V
Load Max. ±10 mA
Digital Converter Resolution 12 bit
Data Format in Application Program 16 bit 2s complement
Product ID CM211
Value Range
+10 V $7FFF
0V $0000
-10 V $8001
Conversion Time <4 ms for both channels
Load Impedance ≥1 kΩ
Measurement Precision at 25 °C
Offset ±5.14 mV
Gain ±0.2 % 2)
Offset Drift ±1.2 mV/°C
Gain Drift ±40 ppm / °C 3)
LSB Value (12 Bit) ±5.01 mV ±0.13 mV
Non-Linearity ±3.5 LSB
Short Circuit Protection Yes
Digital Inputs
Number of Inputs 8
Type of Inputs 3 x event counters, 3 x period measurement, 3 x gate measurement, 2 x incremental
encoder ABR (+24 V), 1 x comparator
Input Voltage
Minimum 18 VDC
Nominal 24 VDC
Maximum 30 VDC
Input Current at Nominal Voltage Approx. 4 mA
Wiring Sink
Switching Threshold
LOW Range <5V
HIGH Range > 15 V
Delay 0 to 1
with SW Filter <4 ms (default)
without SW Filter < 0.01 ms
Delay 1 to 0
with SW Filter <4 ms (default)
without SW Filter < 0.01 ms
Status Display 8 Green LEDs
Product ID CM211
Incremental Encoder Operation
Signal Form Square wave pulse
Evaluation 4-fold, cyclic counter
Input Frequency 20 kHz
Count Frequency 80 kHz
Counter Size 32 bit
Input 5 Channel A2
Input 6 Channel B2
Input 7 Channel R2
Input 8 Reference enable switch 2
Event Counter Operation
Signal Form Square wave pulse
Evaluation Each edge, cyclic counter
Input Frequency 20 kHz
Count Frequency 40 kHz
Counter Size 16 bit
Input 2 Counter 1
Input 3 Counter 2
Input 5 Counter 3
Period measurement
Signal Form Square wave pulse
Evaluation Positive edge - Positive edge
Input Frequency 20 kHz
Internal Counter Frequency 16 MHz, 4 MHz, 1 MHz, 250 kHz
External Counter Frequency Max. 20 kHz
Counter Size 16 bit
Input 3 Period channel 1
Input 4 Period channel 2
Input 7 Period channel 3
Input 2 External counter frequency for channels 1 and 2
Input 5 External counter frequency for channel 3
Gate measurement
Signal Form Square wave pulse
Evaluation Positive edge - Negative edge
Input Frequency 10 kHz
Internal Counter Frequency 16 MHz, 4 MHz, 1 MHz, 250 kHz
External Counter Frequency Max. 20 kHz
Counter Size 16 bit
Gate Pause 50 µs
Input 3 Gate channel 1
Input 4 Gate channel 2
Input 7 Gate channel 3
Input 2 External counter frequency for channels 1 and 2
Input 5 External counter frequency for channel 3
Product ID CM211
Comparator
LED Description
OK This orange LED is lit when the external supply voltage for the outputs is within the
defined range (> 18 VDC).
LED 1 - 8, green Logical status of the respective digital input.
LED 1 - 8, orange Control status of the respective digital output.
Analog Inputs
Digital Inputs
Analog Outputs
Digital Outputs
General Information
The design of the combination module CM211 corresponds to an adapter module AF101 with
four screw-in modules installed and a digital mixed module.
Module Addresses
Because of this special module design, the combination module CM211 requires two module
addresses.
A CPU, a combination module CM211 and a digital input module DI435 are used in the example
shown below. The module address assignments are to be made as shown in the diagram.
Variable Declaration
To avoid conflicts in the register, the settings listed below must be used in the variable
declaration for the module address and for the slot. In this case, the module is accessed with
module addresses 1 and 2.
Counter Inputs
Section "Module Design" explains that the combination module corresponds to an adapter
module AF101 with four screw-in modules and a digital mixed module. Two of the four screw-in
modules are used for counter inputs.
The counter inputs on the screw-in module installed in slot 3 can be configured using software.
The desired function is set by defining bits 12 and 13 in configuration word 14. One of three
functions can be selected.
The counter inputs on the screw-in module installed in slot 4 can be configured using software.
The desired function is set by defining bits 12 and 13 in configuration word 14. One of three
functions can be selected.
11.1.9 Timing
The following three factors must be taken into consideration for timing when a B&R 2003 CPU
is used as controller:
All combination modules, AF modules and digital I/O modules are processed during this time.
The internal bus cycle for a CM211 is calculated as follows:
During this time, all digital data points on the combination module CM211 are updated or read in
internally.
tdig_IO_AF ≤ 1 ms
During this time, all analog data points on the combination module CM211 are updated or read
in internally.
This time determines how long the CPU requires to process the I/O data passed on by the
combination module CM211. The CPU is loaded considerably by the analog I/O data.
tIO_CPU = 12 * 70 µs = 840 µs
tIO_CPU = 12 * 50 µs = 600 µs
Task Class
A legend sheet can be slid into the front of the module from above. The module circuit is shown
on the back. The inputs/outputs can be labelled on the front.
11.1.11 Connections
Ground Screw
Terminal Block X1
Terminal Block X2
The combination module CM211 has two analog inputs which may be used as either voltage or
current input. Mixed operation is also possible.
Mode Switch
An input can be used as either voltage or current input. The selection is made with the respective
mode switch on the bottom of the housing. Place the switch in the respective position for the
desired signal:
Module Wiring
The period can be measured from a signal connected to input 3, 4 or 7. The resolution is 16 bit.
The frequency of the signal to be measured can be a maximum of 20 kHz. An internal or external
counter frequency can be selected for the measurement.
Pulse counting is started by a rising edge on the input and stopped by the next rising edge. The
count is placed in a temporary register. The counter is started again by the same rising edge.
During period measurement, the count stored last (the period) can be read by the active
application program. The value in the temporary register is only updated after at the end of the
active measurement. If a counter overflow occurs (broken line or incorrect counter frequency),
the value is limited to $7FFF.
A signal connected to input 3, 4 or 7 can be evaluated using gate measurement. The resolution
is 16 bit. The frequency of the signal to be measured can be a maximum of 10 kHz. The signal
to be measured is also called the gate frequency. The pause between two gate measurements
must be larger than 50 µs.
Pulse counting is started by a rising edge on the gate and stopped by a falling edge. The count
is placed in a temporary register when the falling edge occurs. The counter is started again by
the next rising edge.
During gate measurement, the count stored last (the gate) can be read by the active application
program. The value in the temporary register is only updated after at the end of the active
measurement (falling edge). If a counter overflow occurs (incorrect counter frequency), the value
is limited to $7FFF.
Automation Studio™ Support: See Automation Studio™ Help starting with V 1.40
Accessing screw-in modules is also explained in the sections "AF101" and "CPU". Data access
takes place using data and configuration words. The following table provides an overview of
which data and configuration words are used for the analog inputs.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 INT16 Analog In 1 ● Analog input value channel 1
Data word 1 INT16 Analog In 2 ● Analog input value channel 2
Configuration word 12 WORD Transp. In 24 ● Module status
Configuration word 14 WORD Transp. In 28 ● Module Type
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2. Analog input data cannot be packed. Only the first object from this group of four will be created
and sent.
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Bit Description
12 - 15 x ... Not defined, masked out
11 0 ... Converter values ready
1 ... Converter values not yet ready
6 - 10 x ... Not defined, masked out
5 0 ... Channel 2: Current measurement
1 ... Channel 2: Voltage measurement
4 0 ... Channel 1: Current measurement
1 ... Channel 1: Voltage measurement
2-3 x ... Not defined, masked out
1 0 ... Channel 2: No error
1 ... Channel 2: Error present
0 0 ... Channel 1: No error
1 ... Channel 1: Error present
x x x x x x x x x x x
15 8 7 0
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Automation Studio™ Support: See Automation Studio™ Help starting with V 1.40
Accessing screw-in modules is also explained in the sections "AF101" and "CPU".
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used for the analog outputs.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 INT16 Analog Out 1 ● Analog output value channel 1
Data word 1 INT16 Analog Out 2 ● Analog output value channel 2
Configuration word 14 WORD Transp. In 28 ● Module Type
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2. Analog output data cannot be packed. Only the second object from this group of four will be
created.
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
The 16 bit standardized values for voltage are written to the module output channel.
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Automation Studio™ Support: See Automation Studio™ Help starting with V 1.40
Accessing screw-in modules is also explained in the sections "AF101" and "CPU".
The module CM211 is equipped with a maximum of two incremental encoders. The incremental
encoders are distributed on slots 3 and 4.
Incremental encoder 1 (slot 3) with PLC 2003 CPU and remote slaves
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used for the first incremental encoder.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 WORD Transp. In 0 ● Module status
Data word 1 INT32 Transp. In 2 ● Counter value
Configuration word 4 INT32 Transp. In 8 ● Counter value with pos. edge on the reference input 1)
INT32 Transp. Out 8 ● Threshold value 1 / min. latch difference 1)
Configuration word 6 INT32 Transp. In 12 ● Counter value with neg. edge on the reference input 1)
INT32 Transp. Out 12 ● Threshold value 2 / force value1)
Configuration word 8 WORD Transp. Out 16 ● Incremental encoder control1)
Configuration word 12 WORD Transp. In 24 ● Module status
Configuration word 14 WORD Transp. In 28 ● Module type
WORD Transp. Out 28 ● Module configuration
Table 29: CM211 variable declaration for incremental encoder operation using the CPU and remote slaves
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used for the first incremental encoder.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 INT32 Transp. In 0 ● Counter value
Data word 2 WORD Transp. In 4 ● Module status
Configuration word 4 INT32 Transp. In 8 ● Counter value with pos. edge on the reference input 1)
INT32 Transp. Out 8 ● Threshold value 1 / min. latch difference 1)
Configuration word 6 INT32 Transp. In 12 ● Counter value with neg. edge on the reference input 1)
INT32 Transp. Out 12 ● Threshold value 2 / force value1)
Configuration word 8 WORD Transp. Out 16 ● Incremental encoder control1)
Configuration word 12 WORD Transp. In 24 ● Module status
Configuration word 14 WORD Transp. In 28 ● Module type
WORD Transp. Out 28 ● Module configuration
Table 30: CM211 variable declaration for incremental encoder operation using CAN slaves
B&R 2000 users have to exchange the two counter status words so that the high word
is first (Motorola format)
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2.
Table 31: CM211 access using CAN identifier, incremental encoder operation
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Data word 0 includes the module status time constant for the counter value.
Bit Description
12 - 15 x ... Not defined, masked out
11 0 ... Counter value not taken
1 ... Counter value is taken with the first positive edge on the reference input
10 0 ... Counter value not taken
1 ... Counter value is taken with the first negative edge on the reference input
8-9 x ... Not defined, masked out
7 0 ... Referencing is taking place
1 ... Counter is referenced (resetting takes place when the reference command
is received)
6 Changes state each time referencing takes place
5 0 ... Supply voltage < 18 V
1 ... Supply voltage > 18 V, outputs OK
4 Output status of the comparator
3 Level of encoder input A
2 Level of encoder input B
1 Level of the reference enable switch
0 Level of the reference pulse
x x x x x x
15 8 7 0
After setting bit 11 in configuration word 8, the configuration words receive the latched counter
value with the first positive edge on the reference input. The value is valid if bit 11 is set in data
word 0. The maximum delay, from the edge on the input to the value is latched, is 50 µs.
Either threshold value 1 or the minimum latch difference is defined with configuration words 4+5.
2) Minimum Latch Difference (32 Bit) - Starting with Rev. D0: D0:
Definition of the minimum latch difference for latching counters. This is done using bit 8 in
configuration word 8.
After setting bit 10 in configuration word 8, the configuration words receive the latched counter
value with the first negative edge on the reference input. The value is valid if bit 10 is set in data
word 0. The maximum delay, from the edge on the input to the value is latched, is 50 µs.
Either threshold value 2 (32 bit) or the force value (32 bit) is defined with configuration words
6+7. The definition of the force value is possible starting with rev. D0. The force value is defined
using bit 8 in cofiguration word 8. The maximum delay, until the the force value definition is
accepted, is 1 ms.
Bit Description
14 - 15 0
13 0 ... No effect on the incremental encoder
1 ... Inverts the reference enable switch for forcing
Using bit 13, the polarity of the reference enable switch can be inverted.
12 0 ... No effect on the incremental encoder
1 ... Forcing the counter with the reference enable switch
With a positive edge on bit 12, bit 7 is deleted in data word 0 and positive
edge creation for the reference enable switch is activated. When the edge is
recognized, the counter is set to the predefined value (default 0). In data
word 0, bit 7 is set and bit 6 is inverted.
The precision is limited compared to latch operation.
11 0 ... Counter value not taken
1 ... Counter value is taken with the first positive edge on the reference input (see
configuration words 4+5) 1) 1)
10 0 ... Counter value not taken
1 ... Counter value is taken with the first negative edge on the reference input
(see configuration words 6+7) 1)
9 0/1 ...Start output state for the latch input filter
With bit 9, the start condition for edge creation and filtering of the latch signal
can be defined. If the state of bit 9 is not the same as the current state of the
reference input, an edge change is recognized internally and evaluated
using the filter.
8 0 ... No effect on the incremental encoder
1 ... With a positive edge, configuration words 4+5 are used as minimum latch
value and configuration words 6+7 are used as force value
0-7 0
0 0 0 0 0 0 0 0 0 0
15 8 7 0
1) The counter value is only taken once. Bit 10 and bit 11 must be reset for the value to be taken again. Bit 10 and bit 11 can be set again
in configuration word 8 after the corresponding bit in the module status bit has gone to 0.
Bit 0 in configuration word 14 must be 0. That means, the comparator is switched off.
General:
The same internal interrupts or inputs are used for referencing, comparator operation and
latching the counter value. Therefore the following priority is defined:
1. Homing
2. Comparator
3. Latching
Make sure there is a clean transition between the types of operation. That means the respective
control bits are not allowed to be activated at the same time.
Latching is started by a positive edge on bit 10 or bit 11 in configuration word 8. The current
counter value is taken as comparison value for the minimum latch difference.
If the minimum latch difference is set to 0 (default), the counter value is latched immediately
when the respective edge occurs on the reference input.
If the minimum latch difference is not set to 0, the counter value is placed in temporary memory
when the respective edge occurs on the reference input.
The value is only accepted and bit 10 or bit 11 in data word 0 is only set if the difference is
larger than the minimum latch difference.
Configuration word 12 contains the module status (current status unlatched). The module status
is written to data word 0.
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Bit Description
14 - 15 0
13 0 ... Incremental Encoder Operation
12 0 ... Incremental Encoder Operation
11 0 ... No effect on count direction
1 ... Count direction inverted as compared to counter wiring
10 0 ... Number format: 32 bit with sign
1 ... Number format: 32 bit without sign - cyclic operation
In continuous operation, the internal order of the threshold values are kept.
If a counter overflow occurs, the behavior of the comparator does not have
to be changed. Comparator operation takes place without consideration of
the sign.
8-9 0 ... Incremental encoder operation with 4-fold evaluation
7 0 ... No effect on reference pulse
1 ... Reference pulse is inverted. This setting is used for encoders with a high
pulse.
6 0 ... Set counter immediately to 0. In data word 0 (module status), bit 7 is
immediately set to 1 and the counter is cleared.
1 ... Counter remains functioning. In data word 0 (module status), bit 7 is
immediately set to 0 (referencing required).
5 0 ... Ignore reference enable switch (referencing using reference pulse). Setting
refers to bit 4
1 ... Actively switch reference enable switch (referencing using reference pulse
and reference enable switch)
4 0 ... No effect on counter
1 ... Clear counter (reference)
3 0 ... Comparator off
Output 1 is handled as defined in the variable declaration for digital outputs.
1 ... Comparator on
2 0 ... The comparator output is set to the level given in bit 0, if threshold value 1
≤ counter ≤ threshold value 2
1 ... The comparator output is set to the inverted level given in bit 0, if threshold
value 1 ≤ counter ≤ threshold value 2
1 0
0 Level of the comparator output
0 0 0 0 0 0 0
15 8 7 0
Incremental encoder 2 (slot 4) with PLC 2003 CPU and remote slaves
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used for the second incremental encoder.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 WORD Transp. In 0 ● Module status
Data word 1 INT32 Transp. In 2 ● Counter value
Configuration word 4 INT32 Transp. In 8 ● Counter value with pos. edge on the reference input 1)
INT32 Transp. Out 8 ● Threshold value 1 2) / min. latch difference 1)
Configuration word 6 INT32 Transp. In 12 ● Counter value with neg. edge on the reference input 1)
INT32 Transp. Out 12 ● Threshold value 2 2) / force value 1)
Configuration word 8 WORD Transp. Out 16 ● Incremental encoder control1)
Configuration word 12 WORD Transp. In 24 ● Module status
Configuration word 14 WORD Transp. In 28 ● Module Type
WORD Transp. Out 28 ● Module configuration
Table 32: CM211 variable declaration for incremental encoder operation using the CPU and remote slaves
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used for the second incremental encoder.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 INT32 Transp. In 0 ● Counter value
Data word 2 WORD Transp. In 4 ● Module status
Configuration word 4 INT32 Transp. In 8 ● Counter value with pos. edge on the reference input 1)
INT32 Transp. Out 8 ● Threshold value 1 2) / min. latch difference 1)
Configuration word 6 INT32 Transp. In 12 ● Counter value with neg. edge on the reference input 1)
INT32 Transp. Out 12 ● Threshold value 2 2) / force value 1)
Configuration word 8 WORD Transp. Out 16 ● Incremental encoder control1)
Configuration word 12 WORD Transp. In 24 ● Module status
Configuration word 14 WORD Transp. In 28 ● Module Type
WORD Transp. Out 28 ● Module configuration
Table 33: CM211 variable declaration for incremental encoder operation using CAN slaves
B&R 2000 users have to exchange the two counter status words so that the high word
is first (Motorola format)
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2.
Table 34: CM211 access using CAN identifier, incremental encoder operation
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Data word 0 includes the module status time constant for the counter value.
Bit Description
12 - 15 x ... Not defined, masked out
11 0 ... Counter value not taken
1 ... Counter value is taken with the first positive edge on the reference input
10 0 ... Counter value not taken
1 ... Counter value is taken with the first negative edge on the reference input
8-9 x ... Not defined, masked out
7 0 ... Referencing is taking place
1 ... Counter is referenced (resetting takes place when the reference command
is received)
6 Changes state each time referencing takes place
5 0 ... Supply voltage < 18 V
1 ... Supply voltage > 18 V, outputs OK
4 x ... Not defined, masked out
3 Level of encoder input A
2 Level of encoder input B
1 Level of the reference enable switch
0 Level of the reference pulse
x x x x x x x
15 8 7 0
After setting bit 11 in configuration word 8, the configuration words receive the latched counter
value with the first positive edge on the reference input. The value is valid if bit 11 is set in data
word 0. The maximum delay, from the edge on the input to the value is latched, is 50 µs.
Either threshold value 1 or the minimum latch difference is defined with configuration words 4+5.
2) Minimum Latch Difference (32 Bit) - Starting with Rev. D0: D0:
Definition of the minimum latch difference for latching counters. This is done using bit 8 in
configuration word 8.
After setting bit 10 in configuration word 8, the configuration words receive the latched counter
value with the first negative edge on the reference input. The value is valid if bit 10 is set in data
word 0. The maximum delay, from the edge on the input to the value is latched, is 50 µs.
Either threshold value 2 or the minimum force value is defined with configuration words 4+5.
1) Threshold value 2 (32 bit) - Starting with rev. G0:
The force value is defined using bit 8 in cofiguration word 8. The maximum delay, until the
the force value definition is accepted, is 1 ms.
Bit Description
14 - 15 0
13 0 ... No effect on the incremental encoder
1 ... Inverts the reference enable switch for forcing
Using bit 13, the polarity of the reference enable switch can be inverted.
12 0 ... No effect on the incremental encoder
1 ... Forcing the counter with the reference enable switch
With a positive edge on bit 12, bit 7 is deleted in data word 0 and positive
edge creation for the reference enable switch is activated. When the edge is
recognized, the counter is set to the predefined value (default 0). In data
word 0, bit 7 is set and bit 6 is inverted.
The precision is limited compared to latch operation.
11 0 ... Counter value not taken
1 ... Counter value is taken with the first positive edge on the reference input (see
configuration words 4+5) 1) 1)
10 0 ... Counter value not taken
1 ... Counter value is taken with the first negative edge on the reference input
(see configuration words 6+7) 1)
9 0/1 ...Start output state for the latch input filter
With bit 9, the start condition for edge creation and filtering of the latch signal
can be defined. If the state of bit 9 is not the same as the current state of the
reference input, an edge change is recognized internally and evaluated
using the filter.
8 0 ... No effect on the incremental encoder
1 ... With a positive edge, configuration words 4+5 are used as minimum latch
value and configuration words 6+7 are used as force value
0-7 0
0 0 0 0 0 0 0 0 0 0
15 8 7 0
1) The counter value is only taken once. Bit 10 and bit 11 must be reset for the value to be taken again. Bit 10 and bit 11 can be set again
in configuration word 8 after the corresponding bit in the module status bit has gone to 0.
Bit 0 in configuration word 14 must be 0. That means, the comparator is switched off.
General:
The same internal interrupts or inputs are used for referencing, comparator operation and
latching the counter value. Therefore the following priority is defined:
1. Homing
2. Comparator
3. Latching
Make sure there is a clean transition between the types of operation. That means the respective
control bits are not allowed to be activated at the same time.
Latching is started by a positive edge on bit 10 or bit 11 in configuration word 8. The current
counter value is taken as comparison value for the minimum latch difference.
If the minimum latch difference is set to 0 (default), the counter value is latched immediately
when the respective edge occurs on the reference input.
If the minimum latch difference is not set to 0, the counter value is placed in temporary memory
when the respective edge occurs on the reference input.
The value is only accepted and bit 10 or bit 11 in data word 0 is only set if the difference is
larger than the minimum latch difference.
Configuration word 12 contains the module status (current status unlatched). The module status
is written to data word 0.
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Bit Description
14 - 15 0
13 0 ... Incremental Encoder Operation
12 0 ... Incremental Encoder Operation
11 0 ... No effect on count direction
1 ... Count direction inverted as compared to counter wiring
10 Starting with revision G0:
0 ... Number format: 32 bit with sign
1 ... Number format: 32 bit without sign - cyclic operation
In continuous operation, the internal order of the threshold values are kept.
If a counter overflow occurs, the behavior of the comparator does not have
to be changed. Comparator operation takes place without consideration of
the sign.
8-9 0 ... Incremental encoder operation with 4-fold evaluation
7 0 ... No effect on reference pulse
1 ... Reference pulse is inverted. This setting is used for encoders with a high
pulse.
6 0 ... Set counter immediately to 0. In data word 0 (module status), bit 7 is
immediately set to 1 and the counter is cleared.
1 ... Counter remains functioning. In data word 0 (module status), bit 7 is
immediately set to 0 (referencing required).
5 0 ... Ignore reference enable switch (referencing using reference pulse). Setting
refers to bit 4
1 ... Actively switch reference enable switch (referencing using reference pulse
and reference enable switch)
4 0 ... No effect on counter
1 ... Clear counter (reference)
3 Starting with revision G0:
0 ... Comparator off
Output 1 is handled as defined in the variable declaration for digital outputs.
1 ... Comparator on
2 Starting with revision G0:
0 ... The comparator output is set to the level given in bit 0, if threshold value 1
≤ counter ≤ threshold value 2
1 ... The comparator output is set to the inverted level given in bit 0, if threshold
value 1 ≤ counter ≤ threshold value 2
1 0
0 Starting with revision G0:
Level of the comparator output
0 0 0 0 0 0 0
15 8 7 0
Automation Studio™ Support: See Automation Studio™ Help starting with V 1.40
Accessing screw-in modules is also explained in the sections "AF101" and "CPU".
The module CM211 is equipped with a maximum of two event counters. The event counters are
distributed on slots 3 and 4.
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used for event counters 1 and 2.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 WORD Transp. In 0 ● Module status
Data word 1 WORD Transp. In 2 ● Counter value of counter 1
Data word 2 WORD Transp. In 4 ● Counter value of counter 2
Configuration word 5 WORD Transp. Out 10 ● Threshold value 1 for counter 2
Configuration word 7 WORD Transp. Out 14 ● Threshold value 2 for counter 2
Configuration word 14 WORD Transp. In 28 ● Module type
WORD Transp. Out 28 ● Module configuration
Table 35: CM211 variable declaration for event counter 1 and 2 (slot 3)
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2.
Table 36: CM211 access using the CAN identifier, event counter 1 and 2 (slot 3)
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Data word 0 includes the module status time constant for both counter values.
Bit Description
6 - 15 x ... Not defined, masked out
5 0 ... Supply voltage < 18 V
1 ... Supply voltage > 18 V, outputs OK
4 Output status of the comparator
3 Level of the encoder input for counter 1
2 Level of the encoder input for counter 2
0-1 x ... Not defined, masked out
x x x x x x x x x x x x
15 8 7 0
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Bit Description
14 - 15 0
13 0 ... Event Counter Operation
12 1 ... Event Counter Operation
11 0 ... No effect on count direction
1 ... Count direction inverted as compared to counter wiring
10 0 ... Number format: 16 bit without sign
1 ... Number format: 16 bit without sign - cyclic operation
In continuous operation, the internal order of the threshold values are kept.
If a counter overflow occurs, the behavior of the comparator does not have
to be changed.
9 0
8 0 ... Counter 1 and 2: Only count positive edges
1 ... Counter 1 and 2: Count both edges
6-7 0
5 0 ... No effect on counter 2
1 ... Immediately clear counter 2
4 0 ... No effect on counter 1
1 ... Immediately clear counter 1
3 0 ... Comparator off
Output 1 is handled as defined in the variable declaration for digital outputs.
1 ... Comparator on
2 0 ... The comparator output is set to the level given in bit 0, if threshold value 1
≤ counter ≤ threshold value 2
1 ... The comparator output is set to the inverted level given in bit 0, if threshold
value 1 ≤ counter ≤ threshold value 2
1 0
0 Level of the comparator output
0 0 0 1 0 0 0 0
15 8 7 0
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used for event counter 3.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 WORD Transp. In 0 ● Module status
Data word 1 WORD Transp. In 2 ● Counter value of counter 3
Configuration word 5 WORD Transp. Out 10 ● Threshold value 1 for counter 31)
Configuration word 7 WORD Transp. Out 14 ● Threshold value 2 for counter 31)
Configuration word 14 WORD Transp. In 28 ● Module type
WORD Transp. Out 28 ● Module configuration
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2.
Table 38: CM211 access using the CAN identifier, event counter 3 (slot 4)
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Data word 0 includes the module status time constant for the counter value.
Bit Description
4 - 15 x ... Not defined, masked out
3 Level of the encoder input for counter 3
0-2 x ... Not defined, masked out
x x x x x x x x x x x x x x x
15 8 7 0
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Bit Description
14 - 15 0
13 0 ... Event Counter Operation
12 1 ... Event Counter Operation
11 0 ... No effect on count direction
1 ... Count direction inverted as compared to counter wiring
10 Starting with revision G0:
0 ... Number format: 16 bit without sign
1 ... Number format: 16 bit without sign - cyclic operation
In continuous operation, the internal order of the threshold values are kept.
If a counter overflow occurs, the behavior of the comparator does not have
to be changed.
9 0
8 0 ... Counter 3: Only count positive edges
1 ... Counter 3: Count both edges
5-7 0
4 0 ... No effect on counter 3
1 ... Immediately clear counter 3
3 Starting with revision G0:
0 ... Comparator off
Output 1 is handled as defined in the variable declaration for digital outputs.
1 ... Comparator on
2 Starting with revision G0:
0 ... The comparator output is set to the level given in bit 0, if threshold value 1
≤ counter ≤ threshold value 2
1 ... The comparator output is set to the inverted level given in bit 0, if threshold
value 1 ≤ counter ≤ threshold value 2
1 0
0 Starting with revision G0:
Level of the comparator output
0 0 0 1 0 0 0 0 0
15 8 7 0
Automation Studio™ Support: See Automation Studio™ Help starting with V 1.40
Accessing screw-in modules is also explained in the sections "AF101" and "CPU".
The module CM211 is equipped with a maximum of three channels for gate and period
measurement. The channels are distributed on slots 3 and 4.
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 WORD Transp. In 0 ● Module status
Data word 1 WORD Transp. In 2 ● Counter value gate / period 1
Data word 2 WORD Transp. In 4 ● Counter value gate / period 2
Configuration word 14 WORD Transp. In 28 ● Module type
WORD Transp. Out 28 ● Module configuration
Table 39: CM211 variable declaration for gate and period measurement (slot 3)
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2.
Table 40: CM211 access using the CAN identifier gate and period measurement 3 (slot 3)
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Data word 0 includes the module status time constant for both counter values.
Bit Description
3 - 15 x ... Not defined, masked out
2 Level of the encoder input for gate / period 1
1 x ... Not defined, masked out
0 Level of the encoder input for gate / period 2
x x x x x x x x x x x x x x
15 8 7 0
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Bit Description
14 - 15 0
13 1 ... Gate / period measurement
12 1 ... Gate / period measurement
11 0 ... Channel 2: No effect on counter value
1 ... Channel 2: Set counter value to zero (retrigger)
10 0 ... Channel 1: No effect on counter value
1 ... Channel 1: Set counter value to zero (retrigger)
8-9 0
7 0 ... Channel 2: Gate measurement
1 ... Channel 2: Period measurement
4-6 Channel 2: Definition of counter frequency
0 ... Internal 16 MHz
1 ... Internal 4 MHz
2 ... Internal 1 MHz
3 ... Internal 250 kHz
4 ... External only rising edges
5 ... External, both edges
3 0 ... Channel 1: Gate measurement
1 ... Channel 1: Period measurement
0-2 Channel 1: Definition of counter frequency
0 ... Internal 16 MHz
1 ... Internal 4 MHz
2 ... Internal 1 MHz
3 ... Internal 250 kHz
4 ... External only rising edges
5 ... External, both edges
0 0 1 1 0 0
15 8 7 0
Data access takes place using data and configuration words. The following table provides an
overview of which data and configuration words are used.
VD
VD VD
Data Access Module R W Description
Data Type Chan.
Type
Data word 0 WORD Transp. In 0 ● Module status
Data word 1 WORD Transp. In 2 ● Counter value gate / period 3
Configuration word 14 WORD Transp. In 28 ● Module type
WORD Transp. Out 28 ● Module configuration
Table 41: CM211 variable declaration for gate and period measurement (slot 4)
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
In the example below, the combination module CM211 is accessed with module addresses 1 and
2.
Table 42: CM211 access using the CAN identifier gate and period measurement 4 (slot 3)
B&R 2000 users have to exchange the data so that the high data is first (Motorola format)
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Data word 0 includes the module status time constant for the counter value.
Bit Description
1 - 15 x ... Not defined, masked out
0 Level of the encoder input for gate / period 3
x x x x x x x x x x x x x x x
15 8 7 0
Bit Description
8 - 15 Module code = $40
0-7 x ...Not defined, masked out
0 1 0 0 0 0 0 0 x x x x x x x x
15 8 7 0
Bit Description
14 - 15 0
13 1 ... Gate / period measurement
12 1 ... Gate / period measurement
11 0
10 0 ... Channel 3: No effect on counter value
1 ... Channel 3: Set counter value to zero (retrigger)
4-9 0
3 0 ... Channel 3: Gate measurement
1 ... Channel 3: Period measurement
0-2 Channel 3: Definition of counter frequency
0 ... Internal 16 MHz
1 ... Internal 4 MHz
2 ... Internal 1 MHz
3 ... Internal 250 kHz
4 ... External only rising edges
5 ... External, both edges
0 0 1 1 0 0 0 0 0 0 0
15 8 7 0
Automation Studio™ Support: See Automation Studio™ Help starting with V 1.40
VD
VD VD
Name Module R W Description
Data Type Chan.
Type
Digital inputs 1 - 8 BIT Digit. In 1 ... 8 ● Level of the digital inputs
Digital outputs 1 - 8 BIT Digit. Out 1 ... 8 ● Level of the digital outputs
Module status BYTE Status In 0 ● Module status
Access via CAN Identifiers is used if the slave is being controlled by a device from another
manufacturer. Access via CAN Identifiers is described in an example in Chapter 4, "Module
Addressing". The transfer modes are explained in Chapter 5, "CAN Bus Controller Functions" .
Digital Inputs
A maximum of eight digital I/O modules can be run in the packed mode.
The CM211 modules uses two module addresses. If two CM211 modules are used, only four
additional digital I/O modules can be used.
The following example shows the structure of the CAN object if two CM211 and four DI435
modules are used.
Table 44: CM211 access using CAN identifier, digital inputs, packed
The following example shows the structure of the CAN object if one CM211 and two DI435
modules are used.
Table 45: CM211 access using CAN identifier, digital inputs, unpacked
Digital Outputs
A maximum of eight digital I/O modules can be run in the packed mode.
The CM211 modules uses two module addresses. If two CM211 modules are used, only four
additional digital I/O modules can be used.
The following example shows the structure of the CAN object if two CM211 and four DO722
modules are used.
Table 46: CM211 access using CAN identifier, digital outputs, packed
The following example shows the structure of the CAN object if one CM211 and two DO722
modules are used.
Table 47: CM211 access using CAN identifier, digital outputs, unpacked
For more information on ID allocation, see Chapter 5 , "CAN Bus Controller Functions".
Module status
Bit Description
7 0 ... No supply voltage or supply voltage too low for digital inputs/outputs
1 ... Module voltage OK
6 Digital module = 0
5 0 ... No error
1 ... Error (short circuit, over-temperature, etc.)
0-4 Module code = $17
0 1 0 1 1 1
7 0